Skip to content

Commit 7379a6b

Browse files
committed
add comment
1 parent cdb1224 commit 7379a6b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

enterprise/coderd/coderd.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,9 @@ func (api *API) updateEntitlements(ctx context.Context) error {
630630

631631
if initial, changed, enabled := featureChanged(codersdk.FeatureHighAvailability); shouldUpdate(initial, changed, enabled) {
632632
var coordinator agpltailnet.Coordinator
633+
// If HA is enabled, but the database is in-memory, we can't actually
634+
// run HA and the PG coordinator. So throw a log line, and continue to use
635+
// the in memory AGPL coordinator.
633636
if enabled && api.DeploymentValues.InMemoryDatabase.Value() {
634637
api.Logger.Warn(ctx, "high availability is enabled, but cannot be configured due to the database being set to in-memory")
635638
}

0 commit comments

Comments
 (0)