-
Notifications
You must be signed in to change notification settings - Fork 435
Exhibitor Integration
Curator can be integrated with Netflix Exhibitior to achieve a live/updating list of the ZooKeeper ensemble. This means that your ZooKeeper client (i.e. Curator) will automatically/dynamically adjust to changes in the makeup of a ZooKeeper ensemble. Further, this support is generalized so that a service other than Exhibitor could be used if available.
The integration is enabled via the CuratorFrameworkFactory
(or when constructing the CuratorZookeeperClient
if not using the framework). Pass an EnsembleProvider
to the ensembleProvider()
method of the CuratorFrameworkFactory
builder.
For Exhibitor, construct an instance of ExhibitorEnsembleProvider
to pass to the builder. It takes a number of arguments:
- exhibitors – a list of the exhibitor instances. This is the initial set of Exhibitor instances. This set will get automatically updated if it changes.
- restClient – a simple facade to access the Exhibitor instances via REST. Use the provided
DefaultExhibitorRestClient
or something else of your choosing. - restUriPath – the REST path to use. In most cases this should be:
/exhibitor/v1/cluster/list
- pollingMs – how often to poll the Exhibitor instances
- retryPolicy – the retry policy to use when polling the Exhibitor instances.
Once configured, Curator will poll the Exhibitors for changes in the ensemble. If Curator should need to re-create the ZooKeeper instance (due to a SysDisconnected event, etc.) it will use the updated ensemble list to do so.
- Curator
- Javadoc
- Coverage Report
- Getting Started
- Examples
- FAQ
- Client
- Framework
-
Recipes
- Leader Latch
- Leader Election
- Shared Reentrant Lock
- Shared Lock
- Shared Reentrant Read Write Lock
- Shared Semaphore
- Multi Shared Lock
- Distributed Queue
- Distributed Id Queue
- Distributed Priority Queue
- Distributed Delay Queue
- Simple Distributed Queue
- Barrier
- Double Barrier
- Shared counter
- Distributed Atomic Long
- Path Cache
- Node Cache
- Utilities – Test Server, Test Cluster, ZKPaths, EnsurePath, QueueSharder, Reaper, ChildReaper
- Tech Notes
- Errors
- Exhibitor Integration
- Extensions
- Logging and Tracing