]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
thrashosds: allow primary-affinity thrashing to be disabled
authorSage Weil <sage@inktank.com>
Mon, 17 Feb 2014 21:16:42 +0000 (13:16 -0800)
committerSage Weil <sage@inktank.com>
Mon, 17 Feb 2014 21:16:42 +0000 (13:16 -0800)
Signed-off-by: Sage Weil <sage@inktank.com>
teuthology/task/ceph_manager.py
teuthology/task/thrashosds.py

index 7f2ce9bfcf82c328916845f8d912d3a1276c069d..bd8285a26b7f133e5e6faf7b404c843a433a05dd 100644 (file)
@@ -266,7 +266,8 @@ class Thrasher:
             actions.append((self.in_osd, 1.7,))
         if len(self.dead_osds) > mindead:
             actions.append((self.revive_osd, 1.0,))
-        actions.append((self.primary_affinity, 1.0,))
+        if self.config.get('thrash_primary_affinity', True):
+            actions.append((self.primary_affinity, 1.0,))
         actions.append((self.grow_pool, self.config.get('chance_pgnum_grow', 0),))
         actions.append((self.fix_pgp_num, self.config.get('chance_pgpnum_fix', 0),))
         actions.append((self.test_pool_min_size, chance_test_min_size,))
index 2bdd73d14fbc6e1d7937d101f4289069d9c8b5a3..c5f26dcb740c81af586eae80432fe0bfe639db63 100644 (file)
@@ -63,6 +63,8 @@ def task(ctx, config):
     revive_timeout: (75) number of seconds to wait for an osd asok to
        appear after attempting to revive the osd
 
+    thrash_primary_affinity: (true) randomly adjust primary-affinity
+
     chance_pgnum_grow: (0) chance to increase a pool's size
     chance_pgpnum_fix: (0) chance to adjust pgpnum to pg for a pool
     pool_grow_by: (10) amount to increase pgnum by