[ClusterLabs] Set a node attribute for multiple nodes with one command
Ken Gaillot
kgaillot at redhat.com
Fri Nov 18 16:17:43 CET 2016
On 11/18/2016 08:55 AM, Kostiantyn Ponomarenko wrote:
> Hi folks,
>
> Is there a way to set a node attribute to the "status" section for few
> nodes at the same time?
>
> In my case there is a node attribute which allows some resources to
> start in the cluster if it is set.
> If I set this node attribute for say two nodes in a way - one and then
> another, than these resources are not distributed equally between these
> two nodes. That because Pacemaker picks the first node to with this
> attribute is set and immediately starts all allowed resources on it. And
> this is not the behavior i would like to get.
>
> Thank you,
> Kostia
Not that I know of, but it would be a good feature to add to
attrd_updater and/or crm_attribute.
You can probably hack it with a dampening value of a few seconds. If
your rule checks for a particular value of the attribute, set all the
nodes to a different value first, which will write that value and start
the dampening timer. Then set all the attributes to the desired value,
and they will get written out together when the timer expires.
More information about the Users
mailing list