Skip to content

Separate internal node discovery from external service discovery #2040

@xvrl

Description

@xvrl

Currently we use CuratorServiceAnnouncer / ServerDiscoverySelector in two ways:

  1. externally allow external services to Druid to resolve various node types.
  2. internally for peons to find out how to talk to overlords in RemoteTaskActionClient, as well as in CoordinatorClient in Remove ServerView from RealtimeIndexTasks and use coordinator http endpoint for handoff information #2015

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions