| 9 | 9 | | // types: standard-3 (2 vCPU, 8 GiB, 16 GB of disk) for the standard |
| 10 | 10 | | // machine and g1t-2core, which is kept as a name of it so workflows that |
| 11 | 11 | | // ask for it keep working, and standard-4 (4 vCPU, 12 GiB, 20 GB) for |
| 12 | | − | // g1t-4core. At these max_instances, 40 sandboxes at once hold 100 vCPU, |
| 13 | | − | // 360 GiB and 680 GB, well inside the account's limits for live |
| 14 | | − | // instances (1,500 vCPU, 6 TiB of memory). crates/contracts |
| 12 | + | // g1t-4core, which is also what ubuntu-latest gets in a public |
| 13 | + | // repository. At these max_instances, 60 sandboxes at once hold 180 vCPU, |
| 14 | + | // 600 GiB and 1,080 GB, well inside the account's limits for live |
| 15 | + | // instances (1,500 vCPU, 6 TiB of memory, 30 TB of disk). crates/contracts |
| 15 | 16 | | // (INSTANCE_TYPES) and services/billing (keeper.rs) say the same sizes. |
| 16 | 17 | | // scripts/deploy.mjs deploys with each image set to the reference it |
| 17 | 18 | | // built and pushed ("The runner's images" in |
| ⋯ |
| 22 | 23 | | "class_name": "AttemptSandbox", |
| 23 | 24 | | "image": "./Dockerfile", |
| 24 | 25 | | // Workflow jobs with `runs-on: ubuntu-latest` (and every other |
| 25 | | − | // hosted label), and all other work: 2 vCPU, 8 GiB, 16 GB. |
| 26 | + | // hosted label) in a private repository, checks, the merge queue and |
| 27 | + | // all other work: 2 vCPU, 8 GiB, 16 GB. |
| 26 | 28 | | "instance_type": "standard-3", |
| 27 | 29 | | "max_instances": 20, |
| 28 | 30 | | // A deploy that changes the image or these settings replaces every |
| ⋯ |
| 41 | 43 | | "rollout_active_grace_period": 7200 |
| 42 | 44 | | }, |
| 43 | 45 | | { |
| 44 | | − | // Workflow jobs with `runs-on: g1t-4core`: 4 vCPU, 12 GiB, 20 GB. |
| 46 | + | // Workflow jobs with `runs-on: g1t-4core`, and `ubuntu-latest` (and |
| 47 | + | // every other hosted label) in a public repository: 4 vCPU, 12 GiB, |
| 48 | + | // 20 GB. Every public repository's workflow jobs run here, so it has |
| 49 | + | // the most room. |
| 45 | 50 | | "class_name": "Sandbox4Core", |
| 46 | 51 | | "image": "./Dockerfile", |
| 47 | 52 | | "instance_type": "standard-4", |
| 48 | | − | "max_instances": 10, |
| 53 | + | "max_instances": 30, |
| 49 | 54 | | "rollout_active_grace_period": 7200 |
| 50 | 55 | | } |
| 51 | 56 | | ], |