]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
openstack: throttling helps the instance running the cluster 642/head
authorLoic Dachary <ldachary@redhat.com>
Mon, 14 Sep 2015 12:04:27 +0000 (14:04 +0200)
committerLoic Dachary <ldachary@redhat.com>
Sat, 26 Sep 2015 09:49:23 +0000 (11:49 +0200)
The instance throttling (not launching more than X instances per minute)
helps the instance running the teuthology cluster when running multiple
workers. The workload does not spike when launching a suite and that
allows to run more workers on a machine with the same hardware configuration.

Signed-off-by: Loic Dachary <loic@dachary.org>
teuthology/openstack/__init__.py

index 72cb9576da6dcc94f365dfa4218772d00bcaa1db..cfaf52199e170c1586f6b46765d465feeaf5f61e 100644 (file)
@@ -410,11 +410,11 @@ ssh access   : ssh {identity}{username}@{ip} # logs in /usr/share/nginx/html
             'ram': 1024, # MB
             'cpus': 1,
         }
-        if self.args.simultaneous_jobs > 25:
+        if self.args.simultaneous_jobs > 100:
             hint['ram'] = 30000 # MB
-        elif self.args.simultaneous_jobs > 10:
+        elif self.args.simultaneous_jobs > 25:
             hint['ram'] = 7000 # MB
-        elif self.args.simultaneous_jobs > 3:
+        elif self.args.simultaneous_jobs > 10:
             hint['ram'] = 4000 # MB
 
         select = None