From: Greg Farnum Date: Thu, 25 Aug 2011 22:27:30 +0000 (-0700) Subject: thrasher: improve documentation a little X-Git-Tag: 1.1.0~2838 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fb33ef3c69f6e5237c85c18b691f03545d1fce05;p=teuthology.git thrasher: improve documentation a little Signed-off-by: Greg Farnum --- diff --git a/teuthology/task/thrashosds.py b/teuthology/task/thrashosds.py index 83be97bb..feb82f13 100644 --- a/teuthology/task/thrashosds.py +++ b/teuthology/task/thrashosds.py @@ -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