copr-be: new AWS EC2 instance types

Per the research in:
https://github.com/fedora-copr/copr/issues/2241
This commit is contained in:
Pavel Raiskup 2023-10-23 21:47:14 +02:00
parent 4d6f2e9cc4
commit 0b849b5836
2 changed files with 3 additions and 5 deletions

View file

@ -24,9 +24,7 @@ cmd=(
--tag CoprPurpose=builder --tag CoprPurpose=builder
--tag CoprInstance={% if devel %}devel{% else %}production{% endif %} --tag CoprInstance={% if devel %}devel{% else %}production{% endif %}
--tag arch={{ item }} --tag arch={{ item }}
{% if item == 'aarch64' %}
--additional-volume-size 160 --additional-volume-size 160
{% endif %}
--playbook /var/lib/resallocserver/provision/builderpb-aws.yml --playbook /var/lib/resallocserver/provision/builderpb-aws.yml
) )

View file

@ -38,13 +38,13 @@ aws_{{ arch }}_{{ on_demand + '_' if on_demand is not none else '' }}{% if spot
{% endif %} {% endif %}
{% if arch == 'x86_64' and on_demand is none %} {% if arch == 'x86_64' and on_demand is none %}
{% set itype='i4i.large' %} {% set itype='c7i.xlarge' %}
{% elif arch == 'x86_64' and on_demand == 'powerful' %} {% elif arch == 'x86_64' and on_demand == 'powerful' %}
{% set itype='r7a.16xlarge' %} {% set itype='c7i.8xlarge' %}
{% elif arch == 'aarch64' and on_demand is none %} {% elif arch == 'aarch64' and on_demand is none %}
{% set itype='c7g.xlarge' %} {% set itype='c7g.xlarge' %}
{% elif arch == 'aarch64' and on_demand == 'powerful' %} {% elif arch == 'aarch64' and on_demand == 'powerful' %}
{% set itype='r7g.16xlarge' %} {% set itype='c7g.8xlarge' %}
{% endif %} {% endif %}
{% if spot and on_demand == 'powerful' %} {% if spot and on_demand == 'powerful' %}