Multi-instance
Cortex can be configured to provision different instance types to improve workload performance and reduce cloud infrastructure spend.
Best practices
Node groups with lower indices have higher priority.
Spot node groups should be listed before on-demand node groups.
CPU node groups should be listed before GPU/Inferentia node groups.
Node groups with small instance types should be listed before node groups with large instance types.
Examples
CPU spot cluster, with on-demand backup
# cluster.yaml
node_groups:
- name: cpu-spot
instance_type: m5.large
spot: true
spot_config:
instance_distribution: [m5a.large, m5d.large, m5n.large, m5ad.large, m5dn.large, m4.large, t3.large, t3a.large, t2.large]
- name: cpu-on-demand
instance_type: m5.largeOn-demand cluster supporting CPU, GPU, and Inferentia
Spot cluster supporting CPU and GPU (with on-demand backup)
CPU spot cluster with multiple instance types and on-demand backup
Last updated