Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable DNS node discovery by default #2182

Merged
merged 2 commits into from
Mar 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions changelog/@unreleased/pr-2182.v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
type: feature
feature:
description: Enable DNS node discovery by default
links:
- https://github.com/palantir/dialogue/pull/2182
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,6 @@ public Channel getNonReloadingChannel(String channelName, ClientConfiguration in
params.runtime().clients());
}

// allow enabling dns node discovery by setting an environment variable
// note that this can still be disabled explicitly via the factory, but having a global flag
// that overrides the default value allows for enabling this behavior without explicit code
// changes
private static final String ENABLE_DNS_NODE_DISCOVERY_ENV_VAR = "DIALOGUE_ENABLE_EXPERIMENTAL_DNS_NODE_DISCOVERY";

@Value.Immutable
interface ReloadingParams extends AugmentClientConfig {

Expand Down Expand Up @@ -172,7 +166,7 @@ default Duration dnsRefreshInterval() {

@Value.Default
default boolean dnsNodeDiscovery() {
return "true".equalsIgnoreCase(System.getenv(ENABLE_DNS_NODE_DISCOVERY_ENV_VAR));
return true;
}

Optional<ExecutorService> blockingExecutor();
Expand Down
Loading