zookeeper-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [zookeeper] ztzg opened a new pull request #1068: ZOOKEEPER-1998: Allow C client to throttle host name resolutions
Date Thu, 29 Aug 2019 11:47:32 GMT
ztzg opened a new pull request #1068: ZOOKEEPER-1998: Allow C client to throttle host name
resolutions
URL: https://github.com/apache/zookeeper/pull/1068
 
 
   Some environments experience high DNS load because of the name resolutions introduced by
[ZOOKEEPER-1355](https://issues.apache.org/jira/browse/ZOOKEEPER-1355).
   
   This patch allows clients to set a minimum delay to observe between "routine" resolutions
using a `zoo_set_servers_resolution_delay` API function.
   
   An application can influence the rate of polling via its `delay_ms` parameter: when set
to a value greater than zero, the client skips most "routine" resolutions which would have
happened in a window of that many milliseconds since the last successful one.
    
   Setting `delay_ms` to `0` disables the new logic, reverting to the default behavior.  Setting
it to `-1` disables network resolutions during normal operation (but not, e.g., on connection
loss).

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message