]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
thrashosds: adds a sighup_delay option, defaulted to 0.1
authorAndrew Schoen <aschoen@redhat.com>
Tue, 28 Jul 2015 19:11:14 +0000 (14:11 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 28 Jul 2015 19:46:35 +0000 (14:46 -0500)
This will call Thrasher.do_sighup which picks a random osd and sends a
signal.SIGHUP to it, delaying for the value of sighup_delay between each
time it picks a new osd to signal.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
tasks/thrashosds.py

index 8c21544025269bd5197d6eb742a20c16389aadfd..cf0a65759fa515f62e67ac75432a08c3631d5e39 100644 (file)
@@ -84,6 +84,9 @@ def task(ctx, config):
 
     clean_wait: (0) duration to wait before resuming thrashing once clean
 
+    sighup_delay: (0.1) duration to delay between sending signal.SIGHUP to a
+                  random live osd
+
     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.
@@ -112,6 +115,8 @@ def task(ctx, config):
         config = {}
     assert isinstance(config, dict), \
         'thrashosds task only accepts a dict for configuration'
+    # add default value for sighup_delay
+    config['sighup_delay'] = config.get('sighup_delay', 0.1)
     overrides = ctx.config.get('overrides', {})
     teuthology.deep_merge(config, overrides.get('thrashosds', {}))