From 09517a04b4b94fc720853cd2ddebab166825887f Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Oct 09 2023 09:00:16 +0000 Subject: copr-be-dev: bump spot price for powerful machines --- diff --git a/roles/copr/backend/templates/resalloc/pools.yaml b/roles/copr/backend/templates/resalloc/pools.yaml index ba5ecf9..9614e61 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 }}