.. option:: --upmap-deviation <max-deviation>
- max deviation from target [default: 1]
+ max deviation from target [default: 5]
.. option:: --upmap-pool <poolname>
If it cannot find any additional changes to make it will stop early
(i.e., when the pool distribution is perfect).
- The ``max-deviation`` value defaults to `1`. If an OSD PG count
+ The ``max-deviation`` value defaults to `5`. If an OSD PG count
varies from the computed target number by less than or equal
to this amount it will be considered perfect.
done
ceph osd set-require-min-compat-client luminous
+ ceph config set mgr mgr/balancer/upmap_max_deviation 1
ceph balancer mode upmap || return 1
ceph balancer on || return 1
ceph config set mgr mgr/balancer/sleep_interval 5
{
'name': 'upmap_max_deviation',
'type': 'int',
- 'default': 1,
+ 'default': 5,
'min': 1,
'desc': 'deviation below which no optimization is attempted',
'long_desc': 'If the number of PGs are within this count then no optimization is attempted',
writing commands to <file> [default: - for stdout]
--upmap-max <max-count> set max upmap entries to calculate [default: 10]
--upmap-deviation <max-deviation>
- max deviation from target [default: 1]
+ max deviation from target [default: 5]
--upmap-pool <poolname> restrict upmap balancing to 1 or more pools
--upmap-save write modified OSDMap with upmap changes
--upmap-active Act like an active balancer, keep applying changes until balanced
marking OSD@147 as out
writing upmap command output to: c
checking for upmap cleanups
- upmap, max-count 11, max deviation 1
+ upmap, max-count 11, max deviation 5
pools rbd
prepared 11/11 changes
$ cat c
marking all OSDs up and in
writing upmap command output to: c
checking for upmap cleanups
- upmap, max-count 11, max deviation 1
+ upmap, max-count 11, max deviation 5
pools rbd
prepared 11/11 changes
$ cat c
cout << " writing commands to <file> [default: - for stdout]" << std::endl;
cout << " --upmap-max <max-count> set max upmap entries to calculate [default: 10]" << std::endl;
cout << " --upmap-deviation <max-deviation>" << std::endl;
- cout << " max deviation from target [default: 1]" << std::endl;
+ cout << " max deviation from target [default: 5]" << std::endl;
cout << " --upmap-pool <poolname> restrict upmap balancing to 1 or more pools" << std::endl;
cout << " --upmap-save write modified OSDMap with upmap changes" << std::endl;
cout << " --upmap-active Act like an active balancer, keep applying changes until balanced" << std::endl;
bool health = false;
std::string upmap_file = "-";
int upmap_max = 10;
- int upmap_deviation = 1;
+ int upmap_deviation = 5;
bool upmap_active = false;
std::set<std::string> upmap_pools;
int64_t pg_num = -1;