add termination cooldown for slot scale-down
This commit is contained in:
parent
e1dbd5c119
commit
44bc99ab85
7 changed files with 72 additions and 1 deletions
|
|
@ -205,6 +205,12 @@ in
|
|||
description = "Max seconds between terminate retries while slot is terminating.";
|
||||
};
|
||||
|
||||
terminationCooldownSeconds = lib.mkOption {
|
||||
type = lib.types.int;
|
||||
default = 180;
|
||||
description = "Minimum cooldown in seconds between starting slot terminations.";
|
||||
};
|
||||
|
||||
launchBatchSize = lib.mkOption {
|
||||
type = lib.types.int;
|
||||
default = 1;
|
||||
|
|
@ -329,6 +335,7 @@ in
|
|||
boot_timeout_seconds = ${toString cfg.capacity.bootTimeoutSeconds}
|
||||
binding_timeout_seconds = ${toString cfg.capacity.bindingTimeoutSeconds}
|
||||
terminating_timeout_seconds = ${toString cfg.capacity.terminatingTimeoutSeconds}
|
||||
termination_cooldown_seconds = ${toString cfg.capacity.terminationCooldownSeconds}
|
||||
|
||||
[security]
|
||||
socket_mode = "${cfg.security.socketMode}"
|
||||
|
|
@ -343,6 +350,7 @@ in
|
|||
max_leases_per_slot = ${toString cfg.capacity.maxLeasesPerSlot}
|
||||
launch_batch_size = ${toString cfg.capacity.launchBatchSize}
|
||||
scale_down_idle_seconds = ${toString cfg.capacity.idleScaleDownSeconds}
|
||||
termination_cooldown_seconds = ${toString cfg.capacity.terminationCooldownSeconds}
|
||||
EOF
|
||||
|
||||
chown ${cfg.user}:${cfg.group} ${generatedConfigPath}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue