Skip to content

Commit

Permalink
address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ahgittin committed Nov 6, 2017
1 parent 20e497b commit b48dae6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 3 additions & 4 deletions guide/blueprints/_elect-primary-policies.md
@@ -1,7 +1,6 @@

There are a collection of policies, enrichers, and effectors to assist with common
failover scenarios and more general anything which wants a primary elected and
re-elected.
failover scenarios and more generally anything which requires the election and re-election of a primary member.

These can be used for:

Expand Down Expand Up @@ -48,7 +47,7 @@ The ElectPrimaryPolicy acts to keep exactly one of its children or members as pr
A simple use case is where we have two children, call them North and South, and we wish for North to be primary. If North fails, however, we want to promote and fail over to South. This can be done by:

* adding this policy at the parent
* setting ` ha.primary.weight` on North
* setting `ha.primary.weight` on North
* optionally defining `promote` on North and South (if action is required there to promote it)
* observing the `primary` sensor to see which is primary
* optionally setting `propagate.primary.sensor: main.uri` to publish `main.uri` from whichever of North or South is active
Expand All @@ -63,7 +62,7 @@ If present, this will add the `PropagatePrimaryEnricher` enricher with those sen
be propagated (but not effectors).
For more sophisticated configuration, that enricher can be added and configured directly instead.

If no quorum.up or quorum.running is set on the entity, both will be set to a constant 1.
If no `quorum.up` or `quorum.running` is set on the entity, both will be set to a constant 1.


#### ElectPrimary Effector
Expand Down
5 changes: 4 additions & 1 deletion guide/blueprints/policies.md
Expand Up @@ -87,7 +87,10 @@ example of this policy in use.

- org.apache.brooklyn.policy.ha.ServiceFailureDetector

TODO
The ServiceFailureDetector enricher detects problems and fires an `ha.entityFailed` (or other configurable sensor)
for use by ServiceRestarter and ServiceReplacer.
The [introduction to policies]({{book.path.docs}}/start/policies.md) shows a worked
example of this in use.


#### SshMachineFailureDetector Policy
Expand Down

0 comments on commit b48dae6

Please sign in to comment.