diff --git a/api/json-schema/schema.json b/api/json-schema/schema.json index 1728b25eb2..32e8f00dae 100644 --- a/api/json-schema/schema.json +++ b/api/json-schema/schema.json @@ -19063,7 +19063,7 @@ "description": "Scale defines the parameters for autoscaling.", "properties": { "cooldownSeconds": { - "description": "Cooldown seconds after a scaling operation before another one.", + "description": "Deprecated: Use ScaleUpCooldownSeconds and ScaleDownCooldownSeconds instead. Cooldown seconds after a scaling operation before another one.", "format": "int64", "type": "integer" }, @@ -19091,6 +19091,16 @@ "format": "int64", "type": "integer" }, + "scaleDownCooldownSeconds": { + "description": "ScaleDownCooldownSeconds defines the cooldown seconds after a scaling operation, before a follow-up scaling down. It defaults to the CooldownSeconds if not set.", + "format": "int64", + "type": "integer" + }, + "scaleUpCooldownSeconds": { + "description": "ScaleUpCooldownSeconds defines the cooldown seconds after a scaling operation, before a follow-up scaling up. It defaults to the CooldownSeconds if not set.", + "format": "int64", + "type": "integer" + }, "targetBufferAvailability": { "description": "TargetBufferAvailability is used to define the target percentage of the buffer availability. A valid and meaningful value should be less than the BufferUsageLimit defined in the Edge spec (or Pipeline spec), for example, 50. It only applies to UDF and Sink vertices because only they have buffers to read.", "format": "int64", diff --git a/api/openapi-spec/swagger.json b/api/openapi-spec/swagger.json index 1d265f819f..d8060a7a04 100644 --- a/api/openapi-spec/swagger.json +++ b/api/openapi-spec/swagger.json @@ -19050,7 +19050,7 @@ "type": "object", "properties": { "cooldownSeconds": { - "description": "Cooldown seconds after a scaling operation before another one.", + "description": "Deprecated: Use ScaleUpCooldownSeconds and ScaleDownCooldownSeconds instead. Cooldown seconds after a scaling operation before another one.", "type": "integer", "format": "int64" }, @@ -19078,6 +19078,16 @@ "type": "integer", "format": "int64" }, + "scaleDownCooldownSeconds": { + "description": "ScaleDownCooldownSeconds defines the cooldown seconds after a scaling operation, before a follow-up scaling down. It defaults to the CooldownSeconds if not set.", + "type": "integer", + "format": "int64" + }, + "scaleUpCooldownSeconds": { + "description": "ScaleUpCooldownSeconds defines the cooldown seconds after a scaling operation, before a follow-up scaling up. It defaults to the CooldownSeconds if not set.", + "type": "integer", + "format": "int64" + }, "targetBufferAvailability": { "description": "TargetBufferAvailability is used to define the target percentage of the buffer availability. A valid and meaningful value should be less than the BufferUsageLimit defined in the Edge spec (or Pipeline spec), for example, 50. It only applies to UDF and Sink vertices because only they have buffers to read.", "type": "integer", diff --git a/config/base/crds/full/numaflow.numaproj.io_pipelines.yaml b/config/base/crds/full/numaflow.numaproj.io_pipelines.yaml index 9df4a3969d..5d06f3012f 100644 --- a/config/base/crds/full/numaflow.numaproj.io_pipelines.yaml +++ b/config/base/crds/full/numaflow.numaproj.io_pipelines.yaml @@ -5687,6 +5687,12 @@ spec: replicasPerScale: format: int32 type: integer + scaleDownCooldownSeconds: + format: int32 + type: integer + scaleUpCooldownSeconds: + format: int32 + type: integer targetBufferAvailability: format: int32 type: integer diff --git a/config/base/crds/full/numaflow.numaproj.io_vertices.yaml b/config/base/crds/full/numaflow.numaproj.io_vertices.yaml index 909383a310..71f00964a3 100644 --- a/config/base/crds/full/numaflow.numaproj.io_vertices.yaml +++ b/config/base/crds/full/numaflow.numaproj.io_vertices.yaml @@ -1530,6 +1530,12 @@ spec: replicasPerScale: format: int32 type: integer + scaleDownCooldownSeconds: + format: int32 + type: integer + scaleUpCooldownSeconds: + format: int32 + type: integer targetBufferAvailability: format: int32 type: integer diff --git a/config/install.yaml b/config/install.yaml index 31397588b8..ee46de76da 100644 --- a/config/install.yaml +++ b/config/install.yaml @@ -8216,6 +8216,12 @@ spec: replicasPerScale: format: int32 type: integer + scaleDownCooldownSeconds: + format: int32 + type: integer + scaleUpCooldownSeconds: + format: int32 + type: integer targetBufferAvailability: format: int32 type: integer @@ -12871,6 +12877,12 @@ spec: replicasPerScale: format: int32 type: integer + scaleDownCooldownSeconds: + format: int32 + type: integer + scaleUpCooldownSeconds: + format: int32 + type: integer targetBufferAvailability: format: int32 type: integer diff --git a/config/namespace-install.yaml b/config/namespace-install.yaml index c13cc30c56..01dd6ec22a 100644 --- a/config/namespace-install.yaml +++ b/config/namespace-install.yaml @@ -8216,6 +8216,12 @@ spec: replicasPerScale: format: int32 type: integer + scaleDownCooldownSeconds: + format: int32 + type: integer + scaleUpCooldownSeconds: + format: int32 + type: integer targetBufferAvailability: format: int32 type: integer @@ -12871,6 +12877,12 @@ spec: replicasPerScale: format: int32 type: integer + scaleDownCooldownSeconds: + format: int32 + type: integer + scaleUpCooldownSeconds: + format: int32 + type: integer targetBufferAvailability: format: int32 type: integer diff --git a/docs/APIs.md b/docs/APIs.md index a02f549e6a..096c797658 100644 --- a/docs/APIs.md +++ b/docs/APIs.md @@ -4054,7 +4054,8 @@ processing rate.
-Cooldown seconds after a scaling operation before another one. +Deprecated: Use ScaleUpCooldownSeconds and ScaleDownCooldownSeconds +instead. Cooldown seconds after a scaling operation before another one.
scaleUpCooldownSeconds
uint32
++ScaleUpCooldownSeconds defines the cooldown seconds after a scaling +operation, before a follow-up scaling up. It defaults to the +CooldownSeconds if not set. +
+scaleDownCooldownSeconds
uint32
++ScaleDownCooldownSeconds defines the cooldown seconds after a scaling +operation, before a follow-up scaling down. It defaults to the +CooldownSeconds if not set. +
+