Rack instance and build instance types
Amazon EC2 Reserved Instances can provide a significant discount (up to 75%) compared to On-Demand pricing in exchange for partial or full pre-payment for an extended period of time.
You can take advantage of Reserved Instances with Convox as long as the Instance Type, Tenancy, and Availability Zones of the reservations match what you’re using in your Convox configuration. You should choose “Linux/UNIX” as the Platform. If your Reserved Instances meet those requirements, no additional configuration is required.
Availability Zones: Convox automatically spreads your instances across the AZs of the region where it is installed. Reserved Instances must be evenly distributed across Availability Zones in order for Convox to take advantage of them. Therefore, we recommend not specifying an AZ when purchasing Reserved Instances.
For instructions, see How to Purchase Reserved Instances in the AWS documentation.
You can utilize Spot Instances to greatly reduce the cost of a cluster.
- Turn off Rack AutoScale
- Configure the Rack to use an InstanceType with spot instance availability
- Configure the Rack for the desired total InstanceCount and the desired minimum guaranteed on demand capacity by OnDemandMinCount
- Set a SpotInstanceBid in dollars
$ convox rack params set AutoScale=No $ convox rack params set InstanceType=m3.medium InstanceCount=6 OnDemandMinCount=3 $ convox rack params set SpotInstanceBid=0.10
To disable spot instances, say to quickly return to using all on demand instances because spots are not available, remove the
$ convox rack params set SpotInstanceBid=