From ca16b9a8c40621901deea68a4d3667afab888c2b Mon Sep 17 00:00:00 2001 From: lub Date: Sat, 7 Dec 2019 22:51:33 +0100 Subject: [PATCH] add target_size_ratio settings --- bootstrap.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bootstrap.sh b/bootstrap.sh index a29a0f5..d19f2d1 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -50,10 +50,12 @@ docker run -d --rm --net=ceph -v /cephfs:/cephfs:shared -v /ceph/client/etc/ceph #set cephfs autoscaling -docker exec ceph_mon ceph mgr module enable pg_autoscaler docker exec ceph_mon ceph fs set cephfs max_mds 2 +docker exec ceph_mon ceph mgr module enable pg_autoscaler docker exec ceph_mon ceph osd pool set cephfs_data pg_autoscale_mode on +docker exec ceph_mon ceph osd pool set cephfs_data target_size_ratio .8 docker exec ceph_mon ceph osd pool set cephfs_metadata pg_autoscale_mode on +docker exec ceph_mon ceph osd pool set cephfs_metadata target_size_ratio .2 #status