ceph配置参数如何优化
这篇文章将为大家详细讲解有关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配置参数如何优化”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。
网页题目:ceph配置参数如何优化
URL网址:http://pwwzsj.com/article/gjhosh.html