The pg_num from 1024 reduce to 32 spend much time, is there way to shorten the time?
ceph version is 16.2.13; The pg_num is 1024, and the target_pg_num is 32; there is no any data in the pool of ".rgw.buckets.index", but it spend much time to reduce the pg num.
If you can stop the rgws, you can make a new pool with 32 PGs and then rados cppool this one over the new one, then rename them so this one has the right name (and application) and start the rgws again. Den mån 5 juni 2023 kl 16:43 skrev Louis Koo <zhucan.k8s@gmail.com>:
ceph version is 16.2.13;
The pg_num is 1024, and the target_pg_num is 32; there is no any data in the pool of ".rgw.buckets.index", but it spend much time to reduce the pg num. _______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
-- May the most significant bit of your life be positive.
Thanks for your responses, I want to know why it spend much time to reduce the pg num?
I suspect the target_max_misplaced_ratio (default 0.05). You could try setting it to 1 and see if it helps. This has been discussed multiple times on this list, check out the archives for more details. Zitat von Louis Koo <zhucan.k8s@gmail.com>:
Thanks for your responses, I want to know why it spend much time to reduce the pg num? _______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
Can you send along the responses from "ceph df detail" and ceph "ceph osd pool ls detail" Respectfully, *Wes Dillingham* wes@wesdillingham.com LinkedIn <http://www.linkedin.com/in/wesleydillingham> On Tue, Jun 6, 2023 at 1:03 PM Eugen Block <eblock@nde.ag> wrote:
I suspect the target_max_misplaced_ratio (default 0.05). You could try setting it to 1 and see if it helps. This has been discussed multiple times on this list, check out the archives for more details.
Zitat von Louis Koo <zhucan.k8s@gmail.com>:
Thanks for your responses, I want to know why it spend much time to reduce the pg num? _______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
_______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
ceph df detail: [root@k8s-1 ~]# ceph df detail --- RAW STORAGE --- CLASS SIZE AVAIL USED RAW USED %RAW USED hdd 600 GiB 600 GiB 157 MiB 157 MiB 0.03 TOTAL 600 GiB 600 GiB 157 MiB 157 MiB 0.03 --- POOLS --- POOL ID PGS STORED (DATA) (OMAP) OBJECTS USED (DATA) (OMAP) %USED MAX AVAIL QUOTA OBJECTS QUOTA BYTES DIRTY USED COMPR UNDER COMPR device_health_metrics 1 1 0 B 0 B 0 B 0 0 B 0 B 0 B 0 158 GiB N/A N/A N/A 0 B 0 B os-gwbtwlltuklwxrpl.rgw.buckets.index 2 230 0 B 0 B 0 B 11 0 B 0 B 0 B 0 158 GiB N/A N/A N/A 0 B 0 B os-gwbtwlltuklwxrpl.rgw.control 3 8 0 B 0 B 0 B 8 0 B 0 B 0 B 0 158 GiB N/A N/A N/A 0 B 0 B os-gwbtwlltuklwxrpl.rgw.log 4 8 3.7 KiB 3.7 KiB 0 B 180 420 KiB 420 KiB 0 B 0 158 GiB N/A N/A N/A 0 B 0 B os-gwbtwlltuklwxrpl.rgw.meta 5 8 1.9 KiB 1.9 KiB 0 B 7 72 KiB 72 KiB 0 B 0 158 GiB N/A N/A N/A 0 B 0 B .rgw.root 6 8 4.9 KiB 4.9 KiB 0 B 16 180 KiB 180 KiB 0 B 0 158 GiB N/A N/A N/A 0 B 0 B os-gwbtwlltuklwxrpl.rgw.buckets.non-ec 7 8 0 B 0 B 0 B 0 0 B 0 B 0 B 0 158 GiB N/A N/A N/A 0 B 0 B os-gwbtwlltuklwxrpl.rgw.otp 8 8 0 B 0 B 0 B 0 0 B 0 B 0 B 0 158 GiB N/A N/A N/A 0 B 0 B os-gwbtwlltuklwxrpl.rgw.buckets.data 9 32 0 B 0 B 0 B 0 0 B 0 B 0 B 0 317 GiB N/A N/A N/A 0 B 0 B ceph osd pool ls detail: [root@k8s-1 ~]# ceph osd pool ls detail pool 1 'device_health_metrics' replicated size 3 min_size 2 crush_rule 1 object_hash rjenkins pg_num 1 pgp_num 1 autoscale_mode on last_change 25 flags hashpspool stripe_width 0 pg_num_max 32 pg_num_min 1 application mgr_devicehealth pool 2 'os-gwbtwlltuklwxrpl.rgw.buckets.index' replicated size 3 min_size 2 crush_rule 5 object_hash rjenkins pg_num 217 pgp_num 209 pg_num_target 32 pgp_num_target 32 autoscale_mode off last_change 322 lfor 0/322/320 flags hashpspool stripe_width 0 compression_mode none pg_num_min 8 target_size_ratio 0.5 application rook-ceph-rgw pool 3 'os-gwbtwlltuklwxrpl.rgw.control' replicated size 3 min_size 2 crush_rule 7 object_hash rjenkins pg_num 8 pgp_num 8 autoscale_mode on last_change 36 flags hashpspool stripe_width 0 compression_mode none pg_num_min 8 target_size_ratio 0.5 application rook-ceph-rgw pool 4 'os-gwbtwlltuklwxrpl.rgw.log' replicated size 3 min_size 2 crush_rule 6 object_hash rjenkins pg_num 8 pgp_num 8 autoscale_mode on last_change 35 flags hashpspool stripe_width 0 compression_mode none pg_num_min 8 target_size_ratio 0.5 application rook-ceph-rgw pool 5 'os-gwbtwlltuklwxrpl.rgw.meta' replicated size 3 min_size 2 crush_rule 2 object_hash rjenkins pg_num 8 pgp_num 8 autoscale_mode on last_change 35 flags hashpspool stripe_width 0 compression_mode none pg_num_min 8 target_size_ratio 0.5 application rook-ceph-rgw pool 6 '.rgw.root' replicated size 3 min_size 2 crush_rule 4 object_hash rjenkins pg_num 8 pgp_num 8 autoscale_mode on last_change 35 flags hashpspool stripe_width 0 compression_mode none pg_num_min 8 target_size_ratio 0.5 application rook-ceph-rgw pool 7 'os-gwbtwlltuklwxrpl.rgw.buckets.non-ec' replicated size 3 min_size 2 crush_rule 8 object_hash rjenkins pg_num 8 pgp_num 8 autoscale_mode on last_change 35 flags hashpspool stripe_width 0 compression_mode none pg_num_min 8 target_size_ratio 0.5 application rook-ceph-rgw pool 8 'os-gwbtwlltuklwxrpl.rgw.otp' replicated size 3 min_size 2 crush_rule 3 object_hash rjenkins pg_num 8 pgp_num 8 autoscale_mode on last_change 36 flags hashpspool stripe_width 0 compression_mode none pg_num_min 8 target_size_ratio 0.5 application rook-ceph-rgw pool 9 'os-gwbtwlltuklwxrpl.rgw.buckets.data' erasure profile os-gwbtwlltuklwxrpl.rgw.buckets.data_ecprofile size 3 min_size 2 crush_rule 9 object_hash rjenkins pg_num 32 pgp_num 32 autoscale_mode off last_change 70 flags hashpspool,ec_overwrites stripe_width 8192 compression_mode none target_size_ratio 0.5 application rook-ceph-rgw I tested under a smaller ceph cluster with 6 osds, and set the pg num of the index pool to 256, the reduce it to 32, it still slowly.
Sure: https://docs.ceph.com/en/latest/rados/operations/balancer/#throttling Zitat von Louis Koo <zhucan.k8s@gmail.com>:
ok, I will try it. Could you show me the archive doc? _______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
I had set it from 0.05 to 1 with "ceph config set mon target_max_misplaced_ratio 1.0", it's still invalid.
Hi,
On 7 Jun 2023, at 10:02, Louis Koo <zhucan.k8s@gmail.com> wrote:
I had set it from 0.05 to 1 with "ceph config set mon target_max_misplaced_ratio 1.0", it's still invalid.
Because is setting for a mgr, not for mon, try `ceph config set mgr target_max_misplaced_ratio 1` Cheers, k
Thanks, other question is how to know where this option is set, mon or mgr?
participants (5)
-
Eugen Block
-
Janne Johansson
-
Konstantin Shalygin
-
Louis Koo
-
Wesley Dillingham