The max_on_demand_count
parameter sets the maximum number of on-demand nodes when using the mixed
node capacity type. This allows you to control the upper limit of on-demand instances in your cluster.
The default value for max_on_demand_count
is 100
.
To set the max_on_demand_count
parameter, use the following command:
$ convox rack params set max_on_demand_count=50 -r rackName
Setting parameters... OK
This command sets the maximum number of on-demand nodes to 50.
The max_on_demand_count
parameter is used in conjunction with the node_capacity_type parameter. When the node_capacity_type
is set to mixed
, you can specify the minimum and maximum number of on-demand nodes to balance cost and availability.
Adjusting the max_on_demand_count
helps you optimize your resource allocation by ensuring that you have a sufficient number of on-demand nodes for reliability while utilizing spot instances to reduce costs.
Additionally, consider configuring the min_on_demand_count parameter to ensure that a minimum number of on-demand nodes are always available to handle your workloads.
By configuring the max_on_demand_count
parameter, you can effectively manage the scalability and cost-efficiency of your Convox rack.