chore(cli): increase reconciliation interval to 1 minute (#18690)

Increase prebuilds reconciliation and backoff interval to 1 minute by
default.
This commit is contained in:
Cian Johnston
2025-07-01 14:35:02 +01:00
committed by GitHub
parent 57a6d59d8d
commit dbfbef6ecb
5 changed files with 9 additions and 9 deletions

View File

@ -680,7 +680,7 @@ workspaces stopping during the day due to template scheduling.
WORKSPACE PREBUILDS OPTIONS:
Configure how workspace prebuilds behave.
--workspace-prebuilds-reconciliation-interval duration, $CODER_WORKSPACE_PREBUILDS_RECONCILIATION_INTERVAL (default: 15s)
--workspace-prebuilds-reconciliation-interval duration, $CODER_WORKSPACE_PREBUILDS_RECONCILIATION_INTERVAL (default: 1m0s)
How often to reconcile workspace prebuilds state.
⚠️ DANGEROUS OPTIONS:

View File

@ -698,12 +698,12 @@ notifications:
# Configure how workspace prebuilds behave.
workspace_prebuilds:
# How often to reconcile workspace prebuilds state.
# (default: 15s, type: duration)
reconciliation_interval: 15s
# (default: 1m0s, type: duration)
reconciliation_interval: 1m0s
# Interval to increase reconciliation backoff by when prebuilds fail, after which
# a retry attempt is made.
# (default: 15s, type: duration)
reconciliation_backoff_interval: 15s
# (default: 1m0s, type: duration)
reconciliation_backoff_interval: 1m0s
# Interval to look back to determine number of failed prebuilds, which influences
# backoff.
# (default: 1h0m0s, type: duration)

View File

@ -3066,7 +3066,7 @@ Write out the current server config as YAML to stdout.`,
Flag: "workspace-prebuilds-reconciliation-interval",
Env: "CODER_WORKSPACE_PREBUILDS_RECONCILIATION_INTERVAL",
Value: &c.Prebuilds.ReconciliationInterval,
Default: (time.Second * 15).String(),
Default: time.Minute.String(),
Group: &deploymentGroupPrebuilds,
YAML: "reconciliation_interval",
Annotations: serpent.Annotations{}.Mark(annotationFormatDuration, "true"),
@ -3077,7 +3077,7 @@ Write out the current server config as YAML to stdout.`,
Flag: "workspace-prebuilds-reconciliation-backoff-interval",
Env: "CODER_WORKSPACE_PREBUILDS_RECONCILIATION_BACKOFF_INTERVAL",
Value: &c.Prebuilds.ReconciliationBackoffInterval,
Default: (time.Second * 15).String(),
Default: time.Minute.String(),
Group: &deploymentGroupPrebuilds,
YAML: "reconciliation_backoff_interval",
Annotations: serpent.Annotations{}.Mark(annotationFormatDuration, "true"),

View File

@ -1622,7 +1622,7 @@ The upper limit of attempts to send a notification.
| Type | <code>duration</code> |
| Environment | <code>$CODER_WORKSPACE_PREBUILDS_RECONCILIATION_INTERVAL</code> |
| YAML | <code>workspace_prebuilds.reconciliation_interval</code> |
| Default | <code>15s</code> |
| Default | <code>1m0s</code> |
How often to reconcile workspace prebuilds state.

View File

@ -681,7 +681,7 @@ workspaces stopping during the day due to template scheduling.
WORKSPACE PREBUILDS OPTIONS:
Configure how workspace prebuilds behave.
--workspace-prebuilds-reconciliation-interval duration, $CODER_WORKSPACE_PREBUILDS_RECONCILIATION_INTERVAL (default: 15s)
--workspace-prebuilds-reconciliation-interval duration, $CODER_WORKSPACE_PREBUILDS_RECONCILIATION_INTERVAL (default: 1m0s)
How often to reconcile workspace prebuilds state.
⚠️ DANGEROUS OPTIONS: