diff --git a/roles/copr/backend/templates/resalloc/pools.yaml b/roles/copr/backend/templates/resalloc/pools.yaml index ba5ecf9ff9..9614e61209 100644 --- a/roles/copr/backend/templates/resalloc/pools.yaml +++ b/roles/copr/backend/templates/resalloc/pools.yaml @@ -47,7 +47,9 @@ aws_{{ arch }}_{{ on_demand + '_' if on_demand is not none else '' }}{% if spot {% set itype='r7g.16xlarge' %} {% endif %} -{% if spot %} +{% if spot and on_demand == 'powerful' %} + cmd_new: copr-resalloc-aws-new-{{ arch }} --instance-type {{ itype }} --spot-price 3.4 +{% elif spot %} cmd_new: copr-resalloc-aws-new-{{ arch }} --instance-type {{ itype }} --spot-price 0.156 {% else %} cmd_new: copr-resalloc-aws-new-{{ arch }} --instance-type {{ itype }}