Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7958427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:25:15+00:00 2026-06-04T04:25:15+00:00

In Mongo, it’s possible to have a database residing in only one server (but

  • 0

In Mongo, it’s possible to have a database residing in only one server (but without sharding)?

  • I’d like to use Mongo to store our application logs, but I’d like to have them on a different machine than the rest of the data.

  • In this way if we start to send too many log messages, only the machine with the logging database will be slowed down.

  • Ideally it should be transparent to the application, and which-machine-has-which-database should be managed by the MongoS process.

Nb: We don’t want to shard our entire database yet, since we are ok with the performances at this point, we’d like only to isolate the db with the logging collections.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T04:25:17+00:00Added an answer on June 4, 2026 at 4:25 am

    Yes, you can use 2 mongoD with 2 different servers, one with your actual database and one with the logging database.

    The trick is to shard each of the db, but none of the collections.

    Then with the movePrimary command you can choose where those unsharded collections will be actually stored.

    (see: http://www.mongodb.org/display/DOCS/movePrimary+Command)

    In your case, you’ll do:

    db.adminCommand({movePrimary:applicationdb, to:application_shard})
    db.adminCommand({movePrimary:loggingdb, to:logging_shard})
    

    However notice that when you’ll decide to shard your applicationdb, mongo will automatically start to propagate your data also to the loggingdb_shard

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have got mongo db using only one collection and consuming average cpu usage
Lets say I have mongo documents like this: Question 1 { answers:[ {content: 'answer1'},
I have documents in Mongo that contain questionnaire-like data (company's name, address, phone numbers,
I use mongo, and I have a little problem here. I want to get
I like Mongo for simple things so I was hoping to use it for
Which protocol does the Mongo extension for PHP use for communication with the server?
Which protocol does the Mongo extension for PHP use for communication with the server?
Can Mongo IDs have the same value in different collections in the same database?
I have mongo collection like below { auther : xyz , location : zzz
i have a mongo collection like this: { A2_AboutMe: , A2_Attributes: |av|nv|, A2_Birthday: ,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.