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

  • Home
  • SEARCH
  • 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 7861605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T22:47:58+00:00 2026-06-02T22:47:58+00:00

I’d like to setup an experiment to evaluate how Mongo performs using various technologies

  • 0

I’d like to setup an experiment to evaluate how Mongo performs using various technologies capable of Snapshots.

  • R1Soft HotCopy on ext3
  • R1Soft HotCopy on xfs
  • LVM with ext3
  • LVM with xfs
  • btrfs

It needs to be disk IO bound and so I need to ensure all my writes are synchronous in nature – otherwise I will need to create a dataset that will breach RAM and Swap constraints, but I believe enabling a filesystem flush on every insert will ensure that each operation is flushed before the next.

> db.runCommand({getlasterror:1,j:true})

What else could I do to really exercise the IO nature of a MongoDB process?

  • I could interleave reads and writes.

I will test something like constant insertion rate and observe how the process behaves during the following periods

  1. No snapshot-related activity or presence.
  2. When the snapshot is being taken and committed.
  3. When the snapshot is being read by a backup script.
  4. When the snapshot is redundant but active.
  5. When the snapshot is being decommissioned.

I’m looking to ensure that whilst the activity and hardware it kept constant, a relative benchmark of performance is encountered.

Thanks for any tips.

  • 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-02T22:48:00+00:00Added an answer on June 2, 2026 at 10:48 pm

    Rob, this is great. The results of this should benefit everyone.

    I wanted to note some things that might be helpful during your testing typical snapshot operations for production deployments of MongoDB.

    Taking Snapshots

    The main problem with taking a snapshot on a live server, as you have pointed out, is IO contention. To avoid this, most will deploy a replica set with 3+ members.

    Often, in this scenario, one of the secondaries is either fsync and locked during a snapshot, configured as a hidden member, or simply taken offline. This allows for a snapshot to be taken while a hot backup (the other secondary) is still available for automatic failover.

    This also ensures two other things. First, that a snapshot can be done in a timely fashion (production load not affecting backup time) and second, that the load required to take the snapshot does not affect production reads (in the case where reading from secondaries is allowed — slaveOk).

    Backup Mechanics

    The above point about snapshot strategy is important because most people overlook the fact that secondaries have the same write load as a primary.

    MongoDB does not have multi-master replication. Only one server (in the set/shard) is active for writes (the primary, or master) at a given time.

    However, while the primary is receiving writes and reads, the secondaries tail the oplog (a capped collection) of that primary. The secondaries issue periodic requests to see if there is more data waiting to be read from this tailable cursor. When there is, those oplog entries are read from the primary and written (yes — this takes a write lock) to the secondary.

    The secondaries then apply the new entries in the oplog to their own copy of the data (yes — this takes a write lock).

    You probably know all this, but just keep it in mind when doing this awesome research.

    Good luck!

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I would like to count the length of a string with PHP. The string
For some reason, after submitting a string like this Jack’s Spindle from a text
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I've got a string that has curly quotes in it. I'd like to replace
I am reading a book about Javascript and jQuery and using one of the
I would like to run a str_replace or preg_replace which looks for certain words
I am trying to render a haml file in a javascript response like so:
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and

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.