gpt4 book ai didi

mongodb - Ubuntu机器上的XFS或ext4文件系统mongodb服务器?

转载 作者:IT老高 更新时间:2023-10-28 13:10:35 28 4
gpt4 key购买 nike

由于 XFS 是 MongoDb 从以下链接推荐的:https://docs.mongodb.com/manual/administration/production-notes/

MongoDB on Linux

Kernel and File Systems

When running MongoDB in production on Linux, you should use Linux kernel version 2.6.36 or later, with either the XFS or EXT4 filesystem. If possible, use XFS as it generally performs better with MongoDB.

With the WiredTiger storage engine, use of XFS is strongly recommended to avoid performance issues that may occur when using EXT4 with WiredTiger.

With the MMAPv1 storage engine, MongoDB preallocates its database files before using them and often creates large files. As such, you should use the XFS or EXT4 file systems. If possible, use XFS as it generally performs better with MongoDB.

来自 Ubuntu 的链接:https://askubuntu.com/questions/690360/help-me-choose-the-best-filesystem-for-my-pc

Ext4 文件系统推荐用于所有 Linux 操作系统,因为它向后兼容其前身,您可以将 Ext2 和 Ext3 挂载为 Ext4 文件系统分机4

reduces file fragmentation
employs delayed allocation which helps with flash memory life as well as fragmentation.
Good choice for SSDs and HDD

XFS

Good for a media file server because of constant throughput for large files.
Most distributions require separate /boot partition because XFS and GRUB can be unpredictable
Performance with small files is not as good.

那么在 ubuntu 16.04 上哪个更适合用于 mongodb.

最佳答案

XFS 为 better in general使用 WT,作为 MongoDB production notes建议。

我针对 AWS EC2 上的 MongoDB 运行了 XFS 和 EXT4 的性能基准测试,以找出您想知道的确切内容。 Here是我的结果。观察结果是,当您的机器具有 XFS 可以利用的多个内核和快速磁盘时,XFS 很有用。在中低端系统上,文件系统并没有什么不同。

关于mongodb - Ubuntu机器上的XFS或ext4文件系统mongodb服务器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42431954/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com