Signed-off-by: Samuel Just <sam.just@inktank.com>
self.revive_timeout = self.config.get("revive_timeout", 75)
if self.config.get('powercycle'):
self.revive_timeout += 120
+ self.clean_wait = self.config.get('clean_wait', 0)
num_osds = self.in_osds + self.out_osds
self.max_pgs = self.config.get("max_pgs_per_pool_osd", 1200) * num_osds
self.ceph_manager.wait_for_recovery(
timeout=self.config.get('timeout')
)
+ time.sleep(self.clean_wait)
self.choose_action()()
time.sleep(delay)
self.all_up()
chance_inject_pause_short: (1) chance of injecting short stall
chance_inject_pause_long: (0) chance of injecting long stall
+ clean_wait: (0) duration to wait before resuming thrashing once clean
+
powercycle: (false) whether to power cycle the node instead
of just the osd process. Note that this assumes that a single
osd is the only important process on the node.