配置ceph.conf

本章节的操作仅需在主节点ceph1节点上执行。
- 新建“/root/ceph-mycluster/”目录。
1
mkdir /root/ceph-mycluster && cd /root/ceph-mycluster
- 配置ceph.conf。
- 打开“/root/ceph-mycluster/ceph.conf”文件。
1
vi /root/ceph-mycluster/ceph.conf
- 按“i”进入编辑模式,在文件中添加如下内容。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
[global] mon_max_pg_per_osd = 3000 mon_max_pool_pg_num = 300000 ms_bind_before_connect = true ms_dispatch_throttle_bytes = 2097152000 throttler_perf_counter = false bluefs_buffered_io=false bluestore_default_buffered_read = false bluestore_default_buffered_write = false osd_pool_default_pg_autoscale_mode = off osd_pool_default_size = 2 osd_min_pg_log_entries = 10 osd_max_pg_log_entries = 10 bluestore_cache_size_ssd = 6G osd_memory_target = 8G mon_allow_pool_delete = true rgw_frontends = beast port=10000 num_threads=1024 rgw_override_bucket_index_max_shards = 8000 # = 预计桶内最大对象数/100000 rgw_dynamic_resharding = false
- 按“Esc”键退出编辑模式,输入:wq!,按“Enter”键保存并退出文件。
- 打开“/root/ceph-mycluster/ceph.conf”文件。
父主题: 部署前环境分析与配置