You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "Li Wang (Jira)" <ji...@apache.org> on 2025/09/26 04:25:00 UTC
[jira] [Commented] (ZOOKEEPER-4956) Provide a HostProvider that uses DNS SRV record for dynamic server discovery
[ https://issues.apache.org/jira/browse/ZOOKEEPER-4956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18022978#comment-18022978 ]
Li Wang commented on ZOOKEEPER-4956:
------------------------------------
Implementation Details:
* DnsSrvHostProvider: New HostProvider implementation that performs DNS SRV lookups to discover ZooKeeper servers
* HostConnectionManager: Extracted connection management and reconfiguration logic from StaticHostProvider into a reusable component
* StaticHostProvider Refactoring: Modified to use HostConnectionManager for consistent connection management and reconfiguration handling across different providers
* Configuration: Added zookeeper.hostProvider.dnsSrvRefreshIntervalMs client property for DNS refresh intervals
> Provide a HostProvider that uses DNS SRV record for dynamic server discovery
> ----------------------------------------------------------------------------
>
> Key: ZOOKEEPER-4956
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4956
> Project: ZooKeeper
> Issue Type: New Feature
> Components: java client
> Environment: *
> Reporter: Li Wang
> Priority: Major
>
> Currently, ZooKeeper clients use static configuration of server endpoints through connection strings. This creates operational challenges in dynamic environments like cloud deployments, container orchestration platforms, and auto-scaling scenarios.
> For example, server topology change requires updating all client configurations and potentially restarting al client applications.
> This ticket provides a `DnsSrvHostProvider` that leverages DNS SRV records for dynamic service discovery, allowing clients to automatically discover ZooKeeper servers without hardcoded configuration.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)