Building Applications on Mesos by David Greenberg

Building Applications on Mesos by David Greenberg

Author:David Greenberg
Language: eng
Format: epub, pdf
Publisher: O'Reilly Media, Inc.
Published: 2015-12-21T16:00:00+00:00


Here, we see how to create a new instance of Curator. It takes the address of the ZooKeeper cluster and a RetryPolicy as arguments. While we are using the RetryOneTime policy in this book, this is probably not the right choice for production frameworks. Instead, the ExponentialBackoffRetry or BoundedExponentialBackoffRetry policies are more robust choices.

Note that you must explicitly start() the Curator framework.7

Next, we create a LeaderLatch for our framework, which we’ll put under the ZooKeeper path we chose for our framework, /sampleframework.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.