.. 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.
CEPH_ARGS+="--debug_osd=20 "
setup $dir || return 1
run_mon $dir a || return 1
+ # Must do this before starting ceph-mgr
+ ceph config-key set mgr/balancer/upmap_max_deviation 1
run_mgr $dir x || return 1
for i in $(seq 0 $(expr $OSDS - 1))
do
def do_upmap(self, plan):
self.log.info('do_upmap')
max_iterations = int(self.get_config('upmap_max_iterations', 10))
- max_deviation = int(self.get_config('upmap_max_deviation', 1))
+ max_deviation = int(self.get_config('upmap_max_deviation', 5))
ms = plan.initial
if len(plan.pools):
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
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;