问题描述
该笔记将记录:与 Ceph Cluster 相关的性能调优方法,以及相关问题的解决办法;
解决方案
存储系统的优化方法如下:
1)增加并行度;
2)降低服务时间;
硬件环境调优
操作系统调优
服务参数调优
针对参数调优配置,从如下方向入手:
1)服务端参数优化;
2)客户端参数优化;
内存分析
通常用于内存泄漏等等 BUG 排查的场景中;
ceph tell osd.0 heap start_profiler
…(经过一段时间运行,或者手动产生一些负载)
ceph tell osd.0 heap stats
# 导出文件,并通过google-perftools 查看
ceph tell osd.0 heap dump
pprof –text /usr/bin/ceph-osd /var/log/ceph/osd.0.profile.001.heap