On Wed, 1 May 2019 at 01:58, Dan van der Ster <d...@vanderster.com> wrote:
> On Tue, Apr 30, 2019 at 8:26 PM Igor Podlesny <ceph-u...@poige.ru> wrote:
[...]
> All of the clients need to be luminous our newer:
>
> # ceph osd set-require-min-compat-client luminous
>
> You need to enable the module:
>
> # ceph mgr module enable balancer

(Enabled by default according to the docs.)
>
> You probably don't want to it run 24/7:
>
> # ceph config-key set mgr/balancer/begin_time 0800
> # ceph config-key set mgr/balancer/end_time 1800

oh, that's handy.

> The default rate that it balances things are a bit too high for my taste:
>
> # ceph config-key set mgr/balancer/max_misplaced 0.005
> # ceph config-key set mgr/balancer/upmap_max_iterations 2
>
> (Those above are optional... YMMV)

Yep, but good to know!
>
> Now fail the active mgr so that the new one reads those new options above.
>
> # ceph mgr fail <the active one>
>
> Enable the upmap mode:
>
> # ceph balancer mode upmap
>
> Test it once to see that it works at all:
>
> # ceph balancer optimize myplan
> # ceph balancer show myplan
> # ceph balancer reset
>
> (any errors, start debugging -- use debug_mgr = 4/5 and check the
> active mgr's log for the balancer details.)
>
> # ceph balancer on
>
> Now it'll start moving the PGs around until things are quite well balanced.
> In our clusters that process takes a week or two... it depends on
> cluster size, numpgs, etc...
>
> Hope that helps!

Thank you :)

-- 
End of message. Next message?
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to