fsync

MongoDB normally writes all operations to the disk every 60 seconds. fsync will force data to persist to the disk immediately and synchronously.

If we want to take a backup of our databases, we need to apply a lock as well. Locking will block all writes and some reads while fsync is operating.

In almost all cases, it's better to use journaling and refer to our techniques for backup and restore, which will be covered in Chapter 8, Monitoring, Backup, and Security, for maximum availability and performance.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset