When running a suite with 50 jobs, it will schedule about 100 instance
creation within less than a minute. It is likely to exceed the API
quotas of the OpenStack provider (number of instance creation per
minute) and lead to instance creation failures.
Set the teuthology-suite to be called with --throttle 15 by default,
that is about 60 / 15 = 4 * 2 = ~8 server creation per minute.
http://tracker.ceph.com/issues/12977 Fixes: #12977
Signed-off-by: Loic Dachary <loic@dachary.org>
'the keywords in the comma separated keyword '
'string specified. ')
)
+ parser.add_argument(
+ '--throttle',
+ help=('When scheduling, wait SLEEP seconds between jobs. '
+ 'Useful to avoid bursts that may be too hard on '
+ 'the underlying infrastructure or exceed OpenStack API '
+ 'limits (server creation per minute for instance).'),
+ type=int,
+ default=15,
+ )
return parser.parse_args(argv)
'--timeout', '234',
'--filter', 'trasher',
'--filter-out', 'erasure-code',
+ '--throttle', '3',
]
argv = (self.options +
['--upload',