mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
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:
2
cli/testdata/coder_server_--help.golden
vendored
2
cli/testdata/coder_server_--help.golden
vendored
@ -680,7 +680,7 @@ workspaces stopping during the day due to template scheduling.
|
|||||||
WORKSPACE PREBUILDS OPTIONS:
|
WORKSPACE PREBUILDS OPTIONS:
|
||||||
Configure how workspace prebuilds behave.
|
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.
|
How often to reconcile workspace prebuilds state.
|
||||||
|
|
||||||
⚠️ DANGEROUS OPTIONS:
|
⚠️ DANGEROUS OPTIONS:
|
||||||
|
8
cli/testdata/server-config.yaml.golden
vendored
8
cli/testdata/server-config.yaml.golden
vendored
@ -698,12 +698,12 @@ notifications:
|
|||||||
# Configure how workspace prebuilds behave.
|
# Configure how workspace prebuilds behave.
|
||||||
workspace_prebuilds:
|
workspace_prebuilds:
|
||||||
# How often to reconcile workspace prebuilds state.
|
# How often to reconcile workspace prebuilds state.
|
||||||
# (default: 15s, type: duration)
|
# (default: 1m0s, type: duration)
|
||||||
reconciliation_interval: 15s
|
reconciliation_interval: 1m0s
|
||||||
# Interval to increase reconciliation backoff by when prebuilds fail, after which
|
# Interval to increase reconciliation backoff by when prebuilds fail, after which
|
||||||
# a retry attempt is made.
|
# a retry attempt is made.
|
||||||
# (default: 15s, type: duration)
|
# (default: 1m0s, type: duration)
|
||||||
reconciliation_backoff_interval: 15s
|
reconciliation_backoff_interval: 1m0s
|
||||||
# Interval to look back to determine number of failed prebuilds, which influences
|
# Interval to look back to determine number of failed prebuilds, which influences
|
||||||
# backoff.
|
# backoff.
|
||||||
# (default: 1h0m0s, type: duration)
|
# (default: 1h0m0s, type: duration)
|
||||||
|
@ -3066,7 +3066,7 @@ Write out the current server config as YAML to stdout.`,
|
|||||||
Flag: "workspace-prebuilds-reconciliation-interval",
|
Flag: "workspace-prebuilds-reconciliation-interval",
|
||||||
Env: "CODER_WORKSPACE_PREBUILDS_RECONCILIATION_INTERVAL",
|
Env: "CODER_WORKSPACE_PREBUILDS_RECONCILIATION_INTERVAL",
|
||||||
Value: &c.Prebuilds.ReconciliationInterval,
|
Value: &c.Prebuilds.ReconciliationInterval,
|
||||||
Default: (time.Second * 15).String(),
|
Default: time.Minute.String(),
|
||||||
Group: &deploymentGroupPrebuilds,
|
Group: &deploymentGroupPrebuilds,
|
||||||
YAML: "reconciliation_interval",
|
YAML: "reconciliation_interval",
|
||||||
Annotations: serpent.Annotations{}.Mark(annotationFormatDuration, "true"),
|
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",
|
Flag: "workspace-prebuilds-reconciliation-backoff-interval",
|
||||||
Env: "CODER_WORKSPACE_PREBUILDS_RECONCILIATION_BACKOFF_INTERVAL",
|
Env: "CODER_WORKSPACE_PREBUILDS_RECONCILIATION_BACKOFF_INTERVAL",
|
||||||
Value: &c.Prebuilds.ReconciliationBackoffInterval,
|
Value: &c.Prebuilds.ReconciliationBackoffInterval,
|
||||||
Default: (time.Second * 15).String(),
|
Default: time.Minute.String(),
|
||||||
Group: &deploymentGroupPrebuilds,
|
Group: &deploymentGroupPrebuilds,
|
||||||
YAML: "reconciliation_backoff_interval",
|
YAML: "reconciliation_backoff_interval",
|
||||||
Annotations: serpent.Annotations{}.Mark(annotationFormatDuration, "true"),
|
Annotations: serpent.Annotations{}.Mark(annotationFormatDuration, "true"),
|
||||||
|
2
docs/reference/cli/server.md
generated
2
docs/reference/cli/server.md
generated
@ -1622,7 +1622,7 @@ The upper limit of attempts to send a notification.
|
|||||||
| Type | <code>duration</code> |
|
| Type | <code>duration</code> |
|
||||||
| Environment | <code>$CODER_WORKSPACE_PREBUILDS_RECONCILIATION_INTERVAL</code> |
|
| Environment | <code>$CODER_WORKSPACE_PREBUILDS_RECONCILIATION_INTERVAL</code> |
|
||||||
| YAML | <code>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.
|
How often to reconcile workspace prebuilds state.
|
||||||
|
|
||||||
|
@ -681,7 +681,7 @@ workspaces stopping during the day due to template scheduling.
|
|||||||
WORKSPACE PREBUILDS OPTIONS:
|
WORKSPACE PREBUILDS OPTIONS:
|
||||||
Configure how workspace prebuilds behave.
|
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.
|
How often to reconcile workspace prebuilds state.
|
||||||
|
|
||||||
⚠️ DANGEROUS OPTIONS:
|
⚠️ DANGEROUS OPTIONS:
|
||||||
|
Reference in New Issue
Block a user