您好,登錄后才能下訂單哦!
這篇文章將為大家詳細(xì)講解有關(guān)ceph配置參數(shù)如何優(yōu)化,小編覺(jué)得挺實(shí)用的,因此分享給大家做個(gè)參考,希望大家閱讀完這篇文章后可以有所收獲。
ceph的配置文件/etc/ceph.conf中可配置參數(shù)很多,可以通過(guò)以下命令查看:
root@osd2:/var/run/ceph# ceph --admin-daemon ceph-mon.osd2.asok config show|wc -l 759
一直想對(duì)一些參數(shù)進(jìn)行修改以達(dá)到優(yōu)化性能的目的。以前一篇文章和其它一些資料為基礎(chǔ),總結(jié)一下可優(yōu)化的配置。
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
#默認(rèn)值 "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
#默認(rèn)值 "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
#默認(rèn)值 "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
關(guān)于“ceph配置參數(shù)如何優(yōu)化”這篇文章就分享到這里了,希望以上內(nèi)容可以對(duì)大家有一定的幫助,使各位可以學(xué)到更多知識(shí),如果覺(jué)得文章不錯(cuò),請(qǐng)把它分享出去讓更多的人看到。
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。