Availability tiers
An availability tier sets how an image application runs: how many replicas, whether they autoscale, the CPU and memory each container gets, and how its pods are placed. You pick a tier on the application's profile; every image application on that profile runs with it. A profile created in the console runs Basic; for another tier, create the profile with astroctl. Helm chart, Git repository and YAML applications do not use a tier: their chart or manifests say how they run. A model takes only its tier's placement; see Models.
Before you start
- An application with the Container image source. For other sources, set replicas, scaling and placement in the Helm chart, the Git repository chart or the YAML manifests. Nova can write them for you.
- A profile with the tier. See With astroctl.
In the console
- Open Workloads > Applications > Deploy application. Enter the Application name and pick the Target Cluster.
- On Profile, select Use Existing and pick the profile under Select a profile. Each profile shows its cluster and its tier.
- On Source, select Container image and finish the wizard. See Container image.
You should see
The application runs the tier's replica count. A Standard or Premium application runs three replicas from the start; Premium adds replicas under load, up to nine.
The standard tiers
Basic, Standard and Premium are available to every organization. These are the values each one applies. They are values the platform holds, not manifests you apply.
Basic | Standard | Premium | |
|---|---|---|---|
| Replicas | 1 to 3 | 3 | 3 to 9 |
| Horizontal autoscaling | off | off | on, at 80% CPU or memory |
| Vertical autoscaling | off | off | on |
| CPU per container | 100m to 200m | 100m to 200m | 1 to 4 |
| Memory per container | 128Mi to 256Mi | 1Gi to 4Gi | 4Gi to 8Gi |
| Spread across zones | no | no | yes |
| Placement | Soft | Soft | Hard |
| Priority | astro-low-pc | astro-high-pc | astro-critical-pc |
The full values:
container:
maxSize: 3
minSize: 1
horizontalAutoScaling:
cpuUtilizationPercentage: 80
enabled: false
maxReplicas: 3
memoryUtilizationPercentage: 80
minReplicas: 1
multiZoneDeployment: false
name: basic
placementPreference: Soft
priorityLevel: astro-low-pc
resources:
cpu:
maximum: 200m
minimum: 100m
memory:
maximum: 256Mi
minimum: 128Mi
verticalAutoScaling:
enabled: false
container:
maxSize: 3
minSize: 3
horizontalAutoScaling:
cpuUtilizationPercentage: 80
enabled: false
maxReplicas: 3
memoryUtilizationPercentage: 80
minReplicas: 3
multiZoneDeployment: false
name: standard
placementPreference: Soft
priorityLevel: astro-high-pc
resources:
cpu:
maximum: 200m
minimum: 100m
memory:
maximum: 4Gi
minimum: 1Gi
verticalAutoScaling:
enabled: false
container:
maxSize: 9
minSize: 3
horizontalAutoScaling:
cpuUtilizationPercentage: 80
enabled: true
maxReplicas: 9
memoryUtilizationPercentage: 80
minReplicas: 3
multiZoneDeployment: true
name: premium
placementPreference: Hard
priorityLevel: astro-critical-pc
resources:
cpu:
maximum: "4"
minimum: "1"
memory:
maximum: 8Gi
minimum: 4Gi
verticalAutoScaling:
enabled: true
Models
A model follows its profile's tier for placement only; its replicas, resources and scaling are its own. A model with more than one replica spreads its replicas across nodes, and across zones on a tier with multiZoneDeployment: true. So Node Autoscaling may add a GPU node for the second replica rather than place it next to the first. Spreading is a preference: a replica still starts when no other node or zone has room. A model with one replica is unaffected.
Choosing a tier
Start on Basic while you build and test. Move to Standard for three replicas that keep serving while one restarts, and to Premium for a service that must scale under load with its replicas spread across zones. A larger tier needs a cluster with room for its replicas and resources; a pod that does not fit waits as Pending (Troubleshoot).
Other ways in
- Nova: ask it, for example "which tier does prod-profile use?".
- SDK and API: the same operations, in the API reference.
With astroctl
Set the tier on the profile:
apiVersion: platform.astropulse.io/v1
kind: ApplicationProfile
spec:
profileName: prod-profile
clusterName: eks-prod
availabilityTier: Premium
astroctl app profile apply -f prod-profile.yaml
astroctl app profile tiers # tiers installed, and your organization's custom tiers
astroctl app profile tiers premium # one tier's values
astroctl app profile tiers can print an empty list; availabilityTier still takes Basic, Standard or Premium. See the astroctl reference.
Settings
availabilityTierThe tier image applications on the profile run with. It is set on the profile, not on the application.
BasicBasic The fewest resources and the lowest scheduling priority, in one zone, for development and tests.StandardStandard More memory and a higher scheduling priority than Basic, in one zone, for production.PremiumPremium The most resources and the highest scheduling priority, with replicas that must spread across zones and scale with load, for applications that must stay up.
Basic
If it's refused
availabilityTier to Basic, Standard or Premium.