您好,登錄后才能下訂單哦!
這篇文章將為大家詳細講解有關ceph配置參數如何優化,小編覺得挺實用的,因此分享給大家做個參考,希望大家閱讀完這篇文章后可以有所收獲。
ceph的配置文件/etc/ceph.conf中可配置參數很多,可以通過以下命令查看:
root@osd2:/var/run/ceph# ceph --admin-daemon ceph-mon.osd2.asok config show|wc -l 759
一直想對一些參數進行修改以達到優化性能的目的。以前一篇文章和其它一些資料為基礎,總結一下可優化的配置。
1. keep FD
filestore_fd_cache_size = 204800 filestore_omap_header_cache_size = 204800
2. sparse read/write
filestore_fiemap = true
3. drop default limits
#默認值 "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", #修正值 filestore_wbthrottle_xfs_bytes_start_flusher = 500000000 filestore_wbthrottle_xfs_indoes_start_flusher = 500 filestore_wbthrottle_xfs_indoes_hard_limit = 500000 filestore_wbthrottle_xfs_ios_start_flusher = 50000 filestore_wbthrottle_xfs_bytes_hard_limit = 500000000 filestore_wbthrottle_xfs_ios_hard_limit = 500000
#默認值 "filestore_queue_max_ops": "50", "filestore_queue_max_bytes": "104857600", "filestore_queue_committing_max_ops": "500", "filestore_queue_committing_max_bytes": "104857600", #修正值 filestore_queue_max_ops = 5000 filestore_queue_max_bytes = 1024000000 filestore_queue_committing_max_ops = 50000
#默認值 "journal_queue_max_ops": "300", "journal_queue_max_bytes": "33554432", #修正值 journal_queue_max_ops = 500000 journal_queue_max_bytes = 10240000000
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 = 4 osd disk threads = 2 filestore op threads = 4
關于“ceph配置參數如何優化”這篇文章就分享到這里了,希望以上內容可以對大家有一定的幫助,使各位可以學到更多知識,如果覺得文章不錯,請把它分享出去讓更多的人看到。
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。