ceph-性能调优
Posted createyuan
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ceph-性能调优相关的知识,希望对你有一定的参考价值。
查看并修改运行时参数的,好像也没用
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-性能调优的主要内容,如果未能解决你的问题,请参考以下文章