[
https://issues.apache.org/jira/browse/ZOOKEEPER-4956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18022991#comment-18022991
]
Li Wang edited comment on ZOOKEEPER-4956 at 9/26/25 5:28 AM:
-------------------------------------------------------------
{*}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 handling across providers
# {*}Configuration{*}: Added
{{zookeeper.hostProvider.dnsSrvRefreshIntervalMs}} client property for DNS
refresh intervals
was (Author: liwang):
{*}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 handling across 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)