Skip to main content

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​

In the console​

  1. Open Workloads > Applications > Deploy application. Enter the Application name and pick the Target Cluster.
  2. On Profile, select Use Existing and pick the profile under Select a profile. Each profile shows its cluster and its tier.
  3. 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.

BasicStandardPremium
Replicas1 to 333 to 9
Horizontal autoscalingoffoffon, at 80% CPU or memory
Vertical autoscalingoffoffon
CPU per container100m to 200m100m to 200m1 to 4
Memory per container128Mi to 256Mi1Gi to 4Gi4Gi to 8Gi
Spread across zonesnonoyes
PlacementSoftSoftHard
Priorityastro-low-pcastro-high-pcastro-critical-pc

The full values:

basic
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
standard
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
premium
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:

prod-profile.yaml
apiVersion: platform.astropulse.io/v1
kind: ApplicationProfile
spec:
profileName: prod-profile
clusterName: eks-prod
availabilityTier: Premium
Terminal
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​

availabilityTier

The tier image applications on the profile run with. It is set on the profile, not on the application.

Accepts
  • Basic Basic The fewest resources and the lowest scheduling priority, in one zone, for development and tests.
  • Standard Standard More memory and a higher scheduling priority than Basic, in one zone, for production.
  • Premium Premium 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.
Default

Basic

If it's refused​

"The field 'availabilityTier' has invalid value '<value>'. It should be one of basic standard premium"
Cause
The profile names a tier other than the three standard ones.
Fix
Set availabilityTier to Basic, Standard or Premium.

Next​