Skip to content

Commit d1a1dbc

Browse files
spikecurtisericpaulsen
authored andcommitted
fix: enable FeatureHighAvailability if it is licensed (#10834)
fixes #10810 The tailnet coordinators don't depend on replicasync, so we can still enable HA coordinators even if the relay URL is unset. The in-memory, non-HA coordinator probably has lower latency than the PG Coordinator, since we have to query the database, so enterprise customers might want to disable it for single-replica deployments, but this PR default-enables the HA coordinator. We could add support later to disable it if anyone complains. Latency setting up connections matters, but I don't believe the coordinator contributes significantly at this point for reasonable postgres round-trip-time.
1 parent 036d020 commit d1a1dbc

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

codersdk/deployment.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ func (n FeatureName) AlwaysEnable() bool {
9595
FeatureExternalProvisionerDaemons: true,
9696
FeatureAppearance: true,
9797
FeatureWorkspaceBatchActions: true,
98+
FeatureHighAvailability: true,
9899
}[n]
99100
}
100101

enterprise/coderd/coderd.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,6 @@ func (api *API) updateEntitlements(ctx context.Context) error {
472472
codersdk.FeatureAuditLog: api.AuditLogging,
473473
codersdk.FeatureBrowserOnly: api.BrowserOnly,
474474
codersdk.FeatureSCIM: len(api.SCIMAPIKey) != 0,
475-
codersdk.FeatureHighAvailability: api.DERPServerRelayAddress != "",
476475
codersdk.FeatureMultipleExternalAuth: len(api.ExternalAuthConfigs) > 1,
477476
codersdk.FeatureTemplateRBAC: api.RBAC,
478477
codersdk.FeatureExternalTokenEncryption: len(api.ExternalTokenEncryption) > 0,

0 commit comments

Comments
 (0)