Set druid.announcer.skipSegmentAnnouncementOnZk to true by default#18445
Closed
maytasm wants to merge 1 commit intoapache:masterfrom
Closed
Set druid.announcer.skipSegmentAnnouncementOnZk to true by default#18445maytasm wants to merge 1 commit intoapache:masterfrom
maytasm wants to merge 1 commit intoapache:masterfrom
Conversation
1 task
Contributor
|
Changes look good, but the failures are genuine. @maytasm , could you please fix up the UTs ? |
|
This pull request has been marked as stale due to 60 days of inactivity. |
|
This pull request/issue has been closed due to lack of activity. If you think that |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Set skipSegmentAnnouncementOnZk to true by default
Description
We have seen cases where a large number of watches in ZooKeeper causes performance issues. While there have been improvements, such as #17482, simply setting the
druid.announcer.skipSegmentAnnouncementOnZkconfiguration totruecan significantly reduce unnecessary ZooKeeper watchers. Most users should already be using HTTP segment discovery, as it has been the default since v25. Therefore, switching the default value of this flag to true would benefit the community, as many users may not be aware of this configuration and have not overridden it to true.Release note
The default value of
druid.announcer.skipSegmentAnnouncementOnZkis nowtrue, which means that Druid will no longer announce segments on ZooKeeper. As a result, ZooKeeper segment discovery will no longer work. (Since Druid v25, HTTP segment discovery has been the default instead of ZooKeeper segment discovery.) If you are already using HTTP segment discovery prior to this upgrade, no action is required. However, if you are upgrading from a cluster that still uses ZooKeeper segment discovery (i.e., version <25), or if you choose to continue using ZooKeeper segment discovery (by settingdruid.serverview.typetobatch), you must overridedruid.announcer.skipSegmentAnnouncementOnZkand set it tofalse.This PR has: