Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to optimize ceph configuration parameters

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article will explain in detail how to optimize the configuration parameters of ceph for everyone. Xiaobian thinks it is quite practical, so share it with you for reference. I hope you can gain something after reading this article.

There are many configurable parameters in the ceph configuration file/etc/ceph.conf, which can be viewed by the following command:

root@osd2:/var/run/ceph# ceph --admin-daemon ceph-mon.osd2.asok config show|wc -l759

Some parameters have been modified to optimize performance. Based on a previous article and other sources, summarize the configurations that can be optimized.

1. keep FD

filestore_fd_cache_size = 204800filestore_omap_header_cache_size = 204800

2. sparse read/write

filestore_fiemap = true

3. drop default limits

#Implicit values "filestore_wbthrottle_xfs_bytes_start_flusher": "41943040","filestore_wbthrottle_xfs_bytes_hard_limit": "419430400","filestore_wbthrottle_xfs_ios_start_flusher": "500","filestore_wbthrottle_xfs_ios_hard_limit": "5000","filestore_wbthrottle_xfs_inodes_start_flusher": "500","filestore_wbthrottle_xfs_inodes_hard_limit":"5000",#corrected filestore_wbthrottle_xfs_bytes_start_flusher = 5000000filestore_wbthrottle_xfs_indoes_start_flusher = 500filestore_wbthrottle_xfs_indoes_hard_limit = 50000filestore_wbthrottle_xfs_ios_start_flusher = 50000filestore_wbthrottle_xfs_bytes_hard_limit = 500000filestore_wbthrottle_xfs_ios_hard_limit = 500000#default value "filestore_queue_max_ops":"50","filestore_queue_max_bytes": "104857600","filestore_queue_committing_max_ops": "500","filestore_queue_committing_max_bytes": "104857600",#correction value filestore_queue_max_ops = 5000filestore_queue_max_bytes = 10240000filestore_queue_committing_max_ops = 50000#default value "journal_queue_max_ops":"300","journal_queue_max_bytes": "33554432",#correction value journal_queue_max_ops = 50000journal_queue_max_bytes = 102400000

4. use rbd cache

rbd cache = true

5. speed cache

filestore_fd_cache_random = true

6. async messenger

ms_type = async(no)ms_async_op_threads = 5(no)ms_dispatch_throttle_bytes = 104857600000

7. op thread

osd op threads = 4osd disk threads = 2filestore op threads = 4

About "how to optimize ceph configuration parameters" this article is shared here, I hope the above content can be of some help to everyone, so that you can learn more knowledge, if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report