kaijianding opened a new pull request #6683: fix huge number of watches in zk issue URL: https://github.com/apache/druid/pull/6683 fix #6647 . I guess the origin Announcer.java is better performance for segment announcement, so I just keep it. I guess the root cause of this issue is that each child path has a watch on zookeeper server even we only add listener at the parent path. When the path is like /druid/prod/announces/$host, the number of watches is n * n (each server watches every host including itself). Plus the path for lookup, the number is n * n * 2. I test it in my product environment, the number of watches is reduced as expected.
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
