官术网_书友最值得收藏!

  • Mastering MongoDB 3.x
  • Alex Giamas
  • 83字
  • 2021-08-20 10:10:55

fsync

MongoDB normally writes all operations to the disk every 60 seconds. fsync will force data to persist to 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 in Chapter 7, Monitoring, Backup, and Security, for maximum availability and performance.

主站蜘蛛池模板: 西安市| 松滋市| 崇阳县| 博乐市| 沛县| 海安县| 清水县| 浪卡子县| 革吉县| 凭祥市| 福安市| 乐都县| 临海市| 五峰| 治县。| 平乡县| 湘阴县| 崇明县| 甘孜县| 沽源县| 乌拉特后旗| 曲阜市| 龙岩市| 安阳市| 永顺县| 南皮县| 北安市| 惠州市| 秦安县| 阿克| 铜鼓县| 安阳市| 泰宁县| 定远县| 仙桃市| 嘉祥县| 惠安县| 肃宁县| 贵德县| 阿鲁科尔沁旗| 集贤县|