You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ServiceAnnouncer was initially meant to make Druid nodes discoverable by outside services. Using it internally requires to configure peons to know the external service name, and also makes it impossible to make ServiceAnnouncer pluggable.
At the same time CuratorServiceAnnouncer is not ideal for external announcement either. We currently share the same CuratorFramework for both CuratorServiceAnnouncer and the rest of Druid, which makes it impossible to use a dedicated ZooKeeper cluster for Druid, while announcing services externally on a different ZooKeeper cluster.
Here are some of the things we should do:
separate the internal service announcement from the external one.
standardize a way for Druid nodes to discover other Druid nodes. We currently have both the curator based service discovery as well as several home-grown ways for historical nodes or peons to announce themselves to other nodes. It might make sense to either use curator discovery for all internal announcements or share more code amongst the various announcement methods already implemented.
separate the CuratorFramework used for ServiceAnnouncer from the one used for internal Druid coordination.
Currently we use
CuratorServiceAnnouncer/ServerDiscoverySelectorin two ways:RemoteTaskActionClient, as well as inCoordinatorClientin Remove ServerView from RealtimeIndexTasks and use coordinator http endpoint for handoff information #2015ServiceAnnouncerwas initially meant to make Druid nodes discoverable by outside services. Using it internally requires to configure peons to know the external service name, and also makes it impossible to make ServiceAnnouncer pluggable.At the same time
CuratorServiceAnnounceris not ideal for external announcement either. We currently share the sameCuratorFrameworkfor bothCuratorServiceAnnouncerand the rest of Druid, which makes it impossible to use a dedicated ZooKeeper cluster for Druid, while announcing services externally on a different ZooKeeper cluster.Here are some of the things we should do: