Skip to content

Commit 0ef3e22

Browse files
generic types (#294)
* reorder cloud mentions * detailed generic machine types - fixes #267 * Restyle generic types (#295) Co-authored-by: restyled-io[bot] <32688539+restyled-io[bot]@users.noreply.github.com>
1 parent 0d041ff commit 0ef3e22

File tree

3 files changed

+37
-10
lines changed

3 files changed

+37
-10
lines changed

docs/guides/generic-machine-types.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
page_title: Generic Machine Types
3+
subcategory: Development
4+
---
5+
6+
# Generic Machine Types
7+
8+
The table below is a more detailed version of the common choices summarised in [Task Machine Types](https://registry.terraform.io/providers/iterative/iterative/latest/docs/resources/task#machine-type).
9+
10+
| Type | [`aws`] | [`az`] | [`gcp`] | [`k8s`] |
11+
| :-------- | :------------ | :------------------ | :---------------------------------------------- | :----------------------------------------------------- |
12+
| `m` | `m5.2xlarge` | `Standard_F8s_v2` | `e2-custom-8-32768` | `cpu: 8`<br>`memory: 32G` |
13+
| `l` | `m5.8xlarge` | `Standard_F32s_v2` | `e2-custom-32-131072` | `cpu: 32`<br>`memory: 128G` |
14+
| `xl` | `m5.16xlarge` | `Standard_F64s_v2` | `n2-custom-64-262144` | `cpu: 64`<br>`memory: 256G` |
15+
| `m+k80` | `p2.xlarge` | `Standard_NC6` | `custom-8-53248`<br>1 `nvidia-tesla-k80` | `cpu: 4`<br>`memory: 64G`<br>1 `nvidia-tesla-k80` |
16+
| `l+k80` | `p2.8xlarge` | `Standard_NC12` | `custom-32-131072`<br>4 `nvidia-tesla-k80` | `cpu: 32`<br>`memory: 512G`<br>8 `nvidia-tesla-k80` |
17+
| `xl+k80` | `p2.16xlarge` | `Standard_NC24` | `custom-64-212992-ext`<br>8 `nvidia-tesla-k80` | `cpu: 64`<br>`memory: 768G`<br>16 × `nvidia-tesla-k80` |
18+
| `m+v100` | `p3.xlarge` | `Standard_NC6s_v3` | `custom-8-65536-ext`<br>1 `nvidia-tesla-v100` | `cpu: 8`<br>`memory: 64G`<br>1 `nvidia-tesla-v100` |
19+
| `l+v100` | `p3.8xlarge` | `Standard_NC12s_v3` | `custom-32-262144-ext`<br>4 `nvidia-tesla-v100` | `cpu: 32`<br>`memory: 256G`<br>4 `nvidia-tesla-v100` |
20+
| `xl+v100` | `p3.16xlarge` | `Standard_NC24s_v3` | `custom-64-524288-ext`<br>8 `nvidia-tesla-v100` | `cpu: 64`<br>`memory: 512G`<br>8 `nvidia-tesla-v100` |
21+
22+
[`aws`]: https://aws.amazon.com/ec2/instance-explorer
23+
[`az`]: https://azure.microsoft.com/en-us/pricing/vm-selector
24+
[`gcp`]: https://cloud.google.com/compute/docs/machine-types
25+
[`k8s`]: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers

docs/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,19 @@ $ terraform apply
4545
- `AWS_SECRET_ACCESS_KEY` - Secret access key.
4646
- `AWS_SESSION_TOKEN` - (Optional) Session token.
4747

48-
### Google Cloud Platform
49-
50-
- `GOOGLE_APPLICATION_CREDENTIALS` - Path to a service account JSON key file.
51-
52-
-> **Note:** you can also use `GOOGLE_APPLICATION_CREDENTIALS_DATA` with the **contents** of the service account JSON key file.
53-
5448
### Microsoft Azure
5549

5650
- `AZURE_CLIENT_ID` - Client identifier.
5751
- `AZURE_CLIENT_SECRET` - Client secret.
5852
- `AZURE_SUBSCRIPTION_ID` - Subscription identifier.
5953
- `AZURE_TENANT_ID` - Tenant identifier.
6054

55+
### Google Cloud Platform
56+
57+
- `GOOGLE_APPLICATION_CREDENTIALS` - Path to a service account JSON key file.
58+
59+
-> **Note:** you can also use `GOOGLE_APPLICATION_CREDENTIALS_DATA` with the **contents** of the service account JSON key file.
60+
6161
### Kubernetes
6262

6363
- `KUBECONFIG` - Path to a [`kubeconfig` file](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#the-kubeconfig-environment-variable).

docs/resources/task.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ The Iterative Provider offers some common machine types (medium, large, and extr
7373
| `l+v100` | 12 | 224 GB | 2 NVIDIA Tesla V100 |
7474
| `xl+v100` | 24 | 448 GB | 4 NVIDIA Tesla V100 |
7575

76+
See [Generic Machine Types](https://registry.terraform.io/providers/iterative/iterative/latest/docs/guides/generic-machine-types) for exact specifications for each cloud.
77+
7678
### Cloud-specific
7779

7880
In addition to generic types, it's possible to specify any machine type supported by the underlying cloud provider.
@@ -81,15 +83,15 @@ In addition to generic types, it's possible to specify any machine type supporte
8183

8284
- `{machine}` - Any [EC2 instance type](https://aws.amazon.com/ec2/instance-explorer) (e.g. `g4dn.xlarge`).
8385

86+
#### Microsoft Azure
87+
88+
- `{machine}` - Any [Azure VM](https://azure.microsoft.com/en-us/pricing/vm-selector) (e.g. `Standard_F8s_v2`).
89+
8490
#### Google Cloud Platform
8591

8692
- `{machine}` - Any [GCP machine type](https://cloud.google.com/compute/docs/machine-types) (e.g. `n2-custom-64-262144`).
8793
- `{machine}+{accelerator}*{count}` - Any machine and accelerator combination (e.g. `custom-8-53248+nvidia-tesla-k80*1`).
8894

89-
#### Microsoft Azure
90-
91-
- `{machine}` - Any [Azure VM](https://azure.microsoft.com/en-us/pricing/vm-selector) (e.g. `Standard_F8s_v2`).
92-
9395
#### Kubernetes
9496

9597
- `{cpu}-{memory}` - Any [CPU & memory combination](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers) (e.g. `64-256000`).

0 commit comments

Comments
 (0)