Revision 3ad09475
openstack: resources hint is the max of all hints
Exactly one OpenStack resources hint can be included in a given job, as
part of an existing facet. It is error prone because it is sometimes not
trivial to figure out how a given job is composed and if two resources
hint are included only one of them will be taken into account which can
lead to problems difficult to diagnose. Another undesirable side effect
is to artificially increase resources usage. It is easier and more
reliable (from the test maintainer point of view) to increase the
resources of all jobs when a few need more RAM or disk rather than
trying to figure where to write the hints so that they are used by these
jobs and these jobs only.
Instead of being a fixed hint for a given job, the max of all hints
found in each facet is used. For instance, rados/thrash can have a facet
requiring that all jobs are given 3 devices.
cat rados/thrash/cluster/openstack.yaml
openstack:
- volumes:
count: 3
If one task in rados/thrash needs 16GB RAM instead of the default of 8GB
RAM, it can have:
cat rados/thrash/tasks/bigworkunit.yaml
task:
- workunit: highmemoryusage.sh
openstack:
- machine:
ram: 16 # GB
And a job composed of rados/thrash/{cluster/openstack.yaml
tasks/bigworkunit.yaml} is aggregated as the max of all resources,
including the default, that is:
task:
- workunit: highmemoryusage.sh
openstack:
- machine:
disk: 20 # GB
ram: 16 # GB
cpu: 1
volumes:
count: 3
size: 1 # GB
Signed-off-by: Loic Dachary <ldachary@redhat.com>
Files
- added
- modified
- copied
- renamed
- deleted