码迷,mamicode.com
首页 > 其他好文 > 详细

ceph-性能调优

时间:2019-05-11 21:08:04      阅读:308      评论:0      收藏:0      [点我收藏+]

标签:show   bsp   commit   force   client   ceph   tle   size   ble   

 

查看并修改运行时参数的,好像也没用

ceph daemon osd.0 config show | less
ceph daemon osd.* help

ceph daemon osd.2 config get mon_osd_full_ratio
ceph tell osd.* injectargs

 

需要调整的参数,在ceph.conf中写入到global,但用空格代替_。

filestore_op_threads = 10
filestore_journal_writeahead = true
filestore_fiemap = true
filestore_wbthrottle_enable = false
filestore_fd_cache_size = 1024
filestore_commit_timeout = 30000
filestore_min_sync_interval = 5
filestore_max_sync_interval = 10
filestore_queue_max_ops = 25000
filestore_queue_max_bytes = 1048576000
journal_force_aio = true
journal_max_write_bytes = 1073714824
journal_max_write_entries = 10000
osd_pg_object_context_cache_count = 1024
osd_client_message_size_cap = 2147483648
osd_client_message_cap = 5000
rbd_cache_size = 2684354560
rbd_cache_max_dirty = 2684354560
rbd_cache_max_dirty_age = 5

===========================

下面是默认值,有些就是,所以不用设置

需要调整的
filestore_op_threads = 2
filestore_journal_parallel=false
filestore_journal_writeahead=false
filestore_fiemap = false
filestore_wbthrottle_enable=true
filestore_fd_cache_size = 128
filestore_omap_header_cache_size = 1024
filestore_commit_timeout=600
filestore_min_sync_interval = 0.01
filestore_max_sync_interval = 5
filestore_queue_max_ops = 5
filestore_queue_max_bytes = 104857600

不需要调整的
journal_dio = true
journal_aio = true
journal_force_aio = false
journal_max_write_bytes = 10485760
journal_max_write_entries = 100
osd_pg_object_context_cache_count = 64
osd_client_message_size_cap = 524288000
osd_client_message_cap = 100
rbd_cache = true
rbd_cache_size = 33554432
rbd_cache_max_dirty = 25165824
rbd_cache_max_dirty_age = 1

没有这些参数
journal_queue_max_ops = 50000
journal_queue_max_bytes = 10485760000

===========================

这个有些用

osd client message size cap = 2147483648
rbd cache size = 2684354560
rbd cache max dirty = 2684354560
rbd cache max dirty age = 5

ceph-性能调优

标签:show   bsp   commit   force   client   ceph   tle   size   ble   

原文地址:https://www.cnblogs.com/createyuan/p/10850012.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!