Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的 MongoDB 最近在 IO Wait 上使用了大量 CPU。我相信通过切换到 XFS 文件系统应该可以解决这些问题。如何在不损坏任何当前数据的情况下成功地做到这一点?我在 Ubuntu 18.04 上。我的磁盘目前是 ext4。
如何将mongodb从ext4切换到xfs:
很简单:使用 xfs 添加 SECONDARY 成员,在该成员完成复制后,您可以切换到该成员并使用 ext4 fs 删除另一个成员。
如果切换会解决 IO:也许添加更多 RAM 会更有帮助