From 09517a04b4b94fc720853cd2ddebab166825887f Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Mon, 9 Oct 2023 11:00:16 +0200 Subject: [PATCH] copr-be-dev: bump spot price for powerful machines --- roles/copr/backend/templates/resalloc/pools.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 }}