ansible/roles/openshift-apps/openscanhub/templates/etc-resallocserver-pools.yaml
Siteshwar Vashisht f0537397da openscanhub: increase number of workers to 128
... in staging.

This is done for load testing purpose and should be reverted to a lower
value in the future.

Signed-off-by: Siteshwar Vashisht <svashisht@redhat.com>
2024-03-26 16:57:46 +01:00

43 lines
1.3 KiB
YAML

# This is the prefix for the name of the virtual machines.
{% if env == 'staging' %}
staging_openscanhub_aws_spot_x86_64:
{% else %}
openscanhub_aws_spot_x86_64:
{% endif %}
# This should be the same value for `MAX_SINGLE_USE_WORKERS` in `settings_local.py`.
{% if env == 'staging' %}
max: 128
{% else %}
max: 32
{% endif %}
{% if env == 'staging' %}
max_starting: 128
{% else %}
max_starting: 32
{% endif %}
# `max_prealloc` is ignored when `tags_on_demand` is used.
# max_prealloc: 0
# spot price should be cca 0.01
cmd_new: "/etc/resallocserver/vm-provisioning/resalloc-start-aws-spot-x86_64"
cmd_delete: resalloc-aws-delete --aws-profile default
cmd_livecheck: "/etc/resallocserver/vm-provisioning/resalloc-check-vm-ip"
livecheck_period: 30
cmd_list: resalloc-aws-list --aws-profile default
cmd_release: "/etc/resallocserver/vm-provisioning/resalloc-vm-release"
reuse_opportunity_time: 0
reuse_max_count: 0
reuse_max_time: 0
# We have to specify empty tags while using `tags_on_demand`.
# https://github.com/praiskup/resalloc/pull/151
# TODO: Remove this in the future.
tags:
- dummy_tag_to_keep_resalloc_happy
# TODO: Choose which tags we shall select?
# Avoid preallocating machines with on demand tags.
tags_on_demand:
- arch_x86_64