]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
thrasher: improve documentation a little
authorGreg Farnum <gregory.farnum@dreamhost.com>
Thu, 25 Aug 2011 22:27:30 +0000 (15:27 -0700)
committerGreg Farnum <gregory.farnum@dreamhost.com>
Thu, 25 Aug 2011 22:27:30 +0000 (15:27 -0700)
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
teuthology/task/thrashosds.py

index 83be97bbcef33927e67dc8552259fbb8bc221f97..feb82f13b2c002b781f8e13d8d339895241e5321 100644 (file)
@@ -8,9 +8,12 @@ log = logging.getLogger(__name__)
 def task(ctx, config):
     """
     "Thrash" the OSDs by randomly marking them out/down (and then back
-    in) until the task is ended.
-
+    in) until the task is ended. This loops, and every opDelay seconds it
+    randomly chooses to add or remove an OSD (even odds) unless there are
+    fewer than minOut OSDs out of the cluster, or more than minIn OSDs in
+    the cluster.
     All commands are run on mon0 and it stops when __exit__ is called.
+
     The config is optional, and is a dict containing some or all of:
     minIn: (default 2) the minimum number of OSDs to keep in the cluster
     minOut: (default 0) the minimum number of OSDs to keep out of the cluster