Github user tbouron commented on a diff in the pull request:
https://github.com/apache/brooklyn-docs/pull/231#discussion_r150210273
--- Diff: guide/blueprints/_elect-primary-policies.md ---
@@ -0,0 +1,146 @@
+
+There are a collection of policies, enrichers, and effectors to assist
with common
+failover scenarios and more generally anything which requires the election
and re-election of a primary member.
+
+These can be used for:
+
+* Nominating one child among many to be noted as a primary via a sensor
(simply add the `ElectPrimaryPolicy`)
+* Allowing preferences for such children to be specified (via
`ha.primary.weight`)
+* Causing the primary to change if the current primary goes down or away
+* Causing `promote` and `demote` effectors to be invoked on the
appropriate nodes when the primary is elected/changed
+ (with the parent reset to `STARTING` while this occurs)
+* Mirroring sensors and optionally effectors from the primary to the parent
+
+A simple example is as follows, deploying two `item` entities with one
designated as primary
+and its `main.uri` sensor published at the root. If "Preferred Item"
fails, "Failover Item"
+will be become the primary. Any `demote` effector on "Preferred Item" and
any `promote` effector
+on "Failover Item" will be invoked on failover.
+
+```
--- End diff --
Miss `yaml` after the 3 backticks
---