Is there a way to get access to Cluster configuration state? Specifically,
can a Node determine which Node - or simply "itself" - is the Cluster
Coordinator or the Primary Node?

Use case: I have a custom authorizer which includes a background thread to
re-authorize users and policies in case a user's credentials have changed.
This thread can potentially change authorizations.xml and users.xml files
which are kept in sync with ZooKeeper. I do not want each Node to execute
the process making the same changes. It would be desirable to execute this
process on only one Node (Coordinator or Primary) and let ZooKeeper
coordinate the changes across the Cluster.

Thanks,
Mark

Reply via email to