You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting with version `v7.9.3`, several fields within the `castai_autoscaler` resource (specifically under the `autoscaler_settings` block) have been deprecated.
465
+
466
+
These fields are planned for removal in a future major version. Users are encouraged to update their configurations to use the new recommended approaches to ensure compatibility and leverage the latest features. Most of these functionalities have been consolidated into the `castai_node_template` resource (default template) for a more unified approach to node configuration.
467
+
468
+
**Summary of Deprecated Fields and New Locations:**
469
+
470
+
1. **Headroom Configuration:**
471
+
* **Deprecated:** `autoscaler_settings.headroom`, `autoscaler_settings.headroom_spot`. These configurations are deprecated. For managing cluster headroom, please refer to the CAST AI Autoscaler FAQ for recommended strategies, such as using low-priority placeholder deployments.
* **Deprecated:** `autoscaler_settings.unschedulable_pods.node_constraints` (including its fields like `min_cpu_cores`, `max_cpu_cores`, `min_ram_mib`, `max_ram_mib`). Use the `constraints` block (with fields like `min_cpu`, `max_cpu`, `min_memory`, `max_memory`) within the default `castai_node_template` resource.
476
+
* **Deprecated:** `autoscaler_settings.unschedulable_pods.node_constraints.custom_instances_enabled`. Use the top-level `custom_instances_enabled` field in the default `castai_node_template` resource.
477
+
478
+
3. **Spot Instance Configuration:**
479
+
* **Deprecated:** The entire `autoscaler_settings.spot_instances` block.
480
+
* `spot_instances.enabled`: **New Location:** Use `constraints.spot` in the default `castai_node_template`.
481
+
* `spot_instances.max_reclaim_rate`: **Note:** This field is deprecated and has no direct replacement in the node template. Setting it will have no effect.
482
+
* `spot_instances.spot_backups`: **New Location:** Use `constraints.use_spot_fallbacks` and `constraints.fallback_restore_rate_seconds` in the default `castai_node_template`.
483
+
* **Deprecated:** `autoscaler_settings.spot_diversity_enabled`. Use `constraints.enable_spot_diversity` in the default `castai_node_template`.
484
+
* **Deprecated:** `autoscaler_settings.spot_diversity_price_increase_limit`. Use `constraints.spot_diversity_price_increase_limit_percent` in the default `castai_node_template`.
485
+
486
+
4. **Spot Interruption Predictions:**
487
+
* **Deprecated:** `autoscaler_settings.spot_interruption_predictions` block. Use the top-level `spot_interruption_predictions_enabled` and `spot_interruption_predictions_type` fields in the default `castai_node_template` resource.
Description: "additional headroom based on cluster's total available capacity for on-demand nodes.",
144
+
Deprecated: "`headroom` is deprecated. Please refer to the FAQ for guidance on cluster headroom: https://docs.cast.ai/docs/autoscaler-1#can-you-please-share-some-guidance-on-cluster-headroom-i-would-like-to-add-some-buffer-room-so-that-pods-have-a-place-to-run-when-nodes-go-down",
Description: "additional headroom based on cluster's total available capacity for spot nodes.",
175
+
Deprecated: "`headroom_spot` is deprecated. Please refer to the FAQ for guidance on cluster headroom: https://docs.cast.ai/docs/autoscaler-1#can-you-please-share-some-guidance-on-cluster-headroom-i-would-like-to-add-some-buffer-room-so-that-pods-have-a-place-to-run-when-nodes-go-down",
Description: "defines the node constraints that will be applied when autoscaling with Unschedulable Pods policy.",
206
+
Deprecated: "`node_constraints` under `unschedulable_pods` is deprecated. Use the `constraints` field in the default `castai_node_template` resource instead. The default node template has `is_default = true`.",
Deprecated: "customInstancesEnabled is deprecated. Use custom_instances_enabled field the node template resource.",
262
+
Deprecated: "`custom_instances_enabled` under `unschedulable_pods.node_constraints` is deprecated. Use the `custom_instances_enabled` field in the default `castai_node_template` resource instead. The default node template has `is_default = true`.",
Description: "policy defining whether autoscaler can use spot instances for provisioning additional workloads.",
313
+
Deprecated: "`spot_instances` is deprecated. Configure spot instance settings using the `constraints` field in the default `castai_node_template` resource. The default node template has `is_default = true`.",
310
314
Elem: &schema.Resource{
311
315
Schema: map[string]*schema.Schema{
312
316
FieldEnabled: {
313
317
Type: schema.TypeBool,
314
318
Optional: true,
315
319
Default: false,
320
+
Deprecated: "`enabled` under `spot_instances` is deprecated. To enable spot instances, set `constraints.spot = true` in the default `castai_node_template` resource. The default node template has `is_default = true`.",
Deprecated: "`max_reclaim_rate` under `spot_instances` is deprecated. This field has no direct equivalent in the `castai_node_template` resource, and setting it will have no effect.",
322
328
Description: "max allowed reclaim rate when choosing spot instance type. E.g. if the value is 10%, instance types having 10% or higher reclaim rate will not be considered. Set to zero to use all instance types regardless of reclaim rate.",
323
329
},
324
330
FieldSpotBackups: {
325
331
Type: schema.TypeList,
326
332
Optional: true,
327
333
MaxItems: 1,
334
+
Deprecated: "`spot_backups` under `spot_instances` is deprecated. Configure spot backup behavior using `constraints.use_spot_fallbacks` and `constraints.fallback_restore_rate_seconds` in the default `castai_node_template` resource. The default node template has `is_default = true`.",
328
335
Description: "policy defining whether autoscaler can use spot backups instead of spot instances when spot instances are not available.",
Deprecated: "`spot_diversity_enabled` is deprecated. Use the `enable_spot_diversity` field within `castai_node_template.constraints` in the default `castai_node_template` resource. The default node template has `is_default = true`.",
351
359
Description: "enable/disable spot diversity policy. When enabled, autoscaler will try to balance between diverse and cost optimal instance types.",
352
360
},
353
361
FieldSpotDiversityPriceIncreaseLimit: {
354
362
Type: schema.TypeInt,
355
363
Optional: true,
356
364
Default: 20,
365
+
Deprecated: "`spot_diversity_price_increase_limit` is deprecated. Use `spot_diversity_price_increase_limit_percent` within `castai_node_template.constraints` in the default `castai_node_template` resource. The default node template has `is_default = true`.",
357
366
Description: "allowed node configuration price increase when diversifying instance types. E.g. if the value is 10%, then the overall price of diversified instance types can be 10% higher than the price of the optimal configuration.",
Description: "configure the handling of SPOT interruption predictions.",
374
+
Deprecated: "`spot_interruption_predictions` is deprecated. Use the `spot_interruption_predictions_enabled` and `spot_interruption_predictions_type` fields in the default `castai_node_template` resource. The default node template has `is_default = true`.",
custom_instances_enabled=false# custom_instances_enabled should be set to same value(true or false) at Node templates & unschedulable_pods policy for backward compatability
0 commit comments