Cluster Orientation
Cloud service provider relevance: AWS Kubernetes, ECS
Ocean optimizes for both availability and cost, but you can control which takes priority. For development environments, you may prioritize cost by selecting cheaper nodes. For production environments where availability is critical, a balanced orientation is recommended.
You can configure Ocean’s optimization approach by setting the cluster orientation at the cluster or virtual node group level.
Ocean Orientations
Ocean supports the following orientations:
- Balanced.
- Cost.
- Cheapest.
Balanced (Default)
The Balanced orientation optimizes for both operational continuity and cost-effective infrastructure. It provides an optimal balance between cost savings and availability.
Cost
The Cost orientation prioritizes cost-efficiency. While Ocean still considers availability, it gives greater weight to cost when selecting nodes.
Cheapest
The Cheapest orientation takes a more aggressive approach to cost savings.
When launching instances, Ocean scans all markets defined in the cluster and selects the one offering the lowest price for the specified spot instance type. If the cheapest instance type is unavailable, Ocean falls back to on-demand instances.
Set Orientation for the Cluster in the Spot API
To set the orientation for the cluster, use the Create Cluster or Update Cluster API.
Look for the following attribute:
cluster.strategy.clusterOrientation.availabilityVsCost
The valid values are: costOriented, balanced, cheapest
If you’ve already configured cluster orientation at the Elastigroup level (using the Elastigroup API), those settings remain in effect. However, all future configurations for Ocean should be made using the Ocean API.
Set Orientation for a Virtual Node Group in the Spot API
Virtual node groups are separate, configurable launch specifications on Ocean clusters, where strategy and cluster orientation can be defined.
To set the orientation for a virtual node group, use the Create VNG or Update VNG API.
Look for the following attribute:
launchSpec.strategy.orientation.availabilityVsCost
The valid values are: costOriented, balanced, cheapest