<div dir="ltr">Using "shadow cib" in crmsh looks like a good idea, but it doesn't work with node attributes set into "status" section of Pacemaker config.<div>I wonder it it is possible to make it work that way.</div><div><br></div><div>Ken,</div><div>>> start dampening timer</div><div>Could you please elaborate more on this. I don't get how I can set this timer.</div><div>Do I need to set this timer for each node?</div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Thank you,<div>Kostia</div></div></div></div></div></div>
<br><div class="gmail_quote">On Mon, Nov 21, 2016 at 9:30 AM, Ulrich Windl <span dir="ltr"><<a href="mailto:Ulrich.Windl@rz.uni-regensburg.de" target="_blank">Ulrich.Windl@rz.uni-regensburg.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">>>> Ken Gaillot <<a href="mailto:kgaillot@redhat.com">kgaillot@redhat.com</a>> schrieb am 18.11.2016 um 16:17 in Nachricht<br>
<<a href="mailto:d6f449da-64f8-12ad-00be-e772d8e382ca@redhat.com">d6f449da-64f8-12ad-00be-<wbr>e772d8e382ca@redhat.com</a>>:<br>
<span class="">> On 11/18/2016 08:55 AM, Kostiantyn Ponomarenko wrote:<br>
>> Hi folks,<br>
>><br>
>> Is there a way to set a node attribute to the "status" section for few<br>
>> nodes at the same time?<br>
>><br>
>> In my case there is a node attribute which allows some resources to<br>
>> start in the cluster if it is set.<br>
>> If I set this node attribute for say two nodes in a way - one and then<br>
>> another, than these resources are not distributed equally between these<br>
>> two nodes. That because Pacemaker picks the first node to with this<br>
>> attribute is set and immediately starts all allowed resources on it. And<br>
>> this is not the behavior i would like to get.<br>
>><br>
>> Thank you,<br>
>> Kostia<br>
><br>
> Not that I know of, but it would be a good feature to add to<br>
> attrd_updater and/or crm_attribute.<br>
<br>
</span>With crm (shell) you don't have transactions for node attributes, but for the configuration. So if you add a location restriction preventing any resources on your nodes, then enable the nodes, and then delete the location restrictions in one transaction, you might get what you want. It's not elegant, but itt ill do.<br>
<br>
To the crm shell maintainer: Is is difficult to build transactions to node status changes? The problem I see is this: For configuration you always have transactions (requiring "commit), but for nodes you traditionally have non (effects are immediate). So you'd need a thing like "start transaction" which requires a "commit" or some kind of abort later.<br>
<br>
I also don't know whether a "shadow CIB" would help for the original problem.<br>
<span class="HOEnZb"><font color="#888888"><br>
Ulrich<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
><br>
> You can probably hack it with a dampening value of a few seconds. If<br>
> your rule checks for a particular value of the attribute, set all the<br>
> nodes to a different value first, which will write that value and start<br>
> the dampening timer. Then set all the attributes to the desired value,<br>
> and they will get written out together when the timer expires.<br>
><br>
> ______________________________<wbr>_________________<br>
> Users mailing list: <a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br>
> <a href="http://clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://clusterlabs.org/<wbr>mailman/listinfo/users</a><br>
><br>
> Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
> Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/<wbr>doc/Cluster_from_Scratch.pdf</a><br>
> Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
<br>
<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
Users mailing list: <a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br>
<a href="http://clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://clusterlabs.org/<wbr>mailman/listinfo/users</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/<wbr>doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
</div></div></blockquote></div><br></div>