From 8b520808a9ae8c41249b46b9a4d436ab1b01566d Mon Sep 17 00:00:00 2001 From: Amit Kumar Date: Thu, 28 Jul 2022 15:41:44 +0530 Subject: [PATCH 1/2] Simplify and update Cirun.io config to use labels See https://docs.cirun.io/reference/examples.html Announcement here: https://twitter.com/AktechLabs/status/1551820040408006661 --- .cirun.yml | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/.cirun.yml b/.cirun.yml index 2cff62d..88bbc69 100644 --- a/.cirun.yml +++ b/.cirun.yml @@ -1,7 +1,7 @@ # Self-Hosted Github Action Runners on AWS via Cirun.io # Reference: https://docs.cirun.io/reference/yaml.html runners: - - name: tests-gpu-runner + - name: gpu-runner cloud: aws region: eu-west-1 instance_type: g4dn.xlarge # Cheapest VM on AWS @@ -9,20 +9,5 @@ runners: # for eu-west-1 machine_image: ami-07b138161bedd526d preemptible: false - workflow: .github/workflows/tests-gpu.yml - count: 1 - labels: - - gpu - - - name: docs-gpu-runner - cloud: aws - region: eu-west-1 - instance_type: g4dn.xlarge # Cheapest VM on AWS - # Amazon AMI: Deep Learning AMI GPU CUDA 11.2.1 (Ubuntu 20.04) 20210625 - # for eu-west-1 - machine_image: ami-07b138161bedd526d - preemptible: false - workflow: .github/workflows/docs-gpu.yml - count: 1 labels: - gpu From bb83445fdcd144c66af8932fb2cf6508d473e41b Mon Sep 17 00:00:00 2001 From: Amit Kumar Date: Sun, 31 Jul 2022 21:38:34 +0530 Subject: [PATCH 2/2] Set `preemptible: true` for spot instances --- .cirun.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.cirun.yml b/.cirun.yml index 88bbc69..ed6dbe4 100644 --- a/.cirun.yml +++ b/.cirun.yml @@ -8,6 +8,6 @@ runners: # Amazon AMI: Deep Learning AMI GPU CUDA 11.2.1 (Ubuntu 20.04) 20210625 # for eu-west-1 machine_image: ami-07b138161bedd526d - preemptible: false + preemptible: true labels: - gpu