~chad.smith/charms/precise/keystone/ha-support

Viewing all changes in revision 50.

  • Committer: James Page
  • Date: 2013-02-07 09:22:36 UTC
  • mfrom: (48.2.3 keystone)
  • Revision ID: james.page@canonical.com-20130207092236-iafw325uig9kpvtw
Adds better support for service leaders.

* The service leader is determined depending on how keystone is currently clustered. If there are multiple units, but no hacluster subordinate, the oldest service unit is elected leader (lowest unit number). If hacluster exists and the service is clustered, the CRM is consulted and the node hosting the resources is designated the leader.

* Only the leader may initialize or touch the database (create users, endpoints, etc)

* The leader is responsible for synchronizing a list of service credentials to all peers. The list is stored on disk and resolves the issue of the passwd dump files in /var/lib/keystone/ being out-of-sync among peers.

We can use the same approach in the rabbitmq-server charm if it works out here.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: