[ClusterLabs] Coming in Pacemaker 2.0.5: integer or floating-point comparisons for node attribute rules
Ken Gaillot
kgaillot at redhat.com
Thu Sep 17 17:07:22 EDT 2020
Hi all,
Here's another new feature coming in Pacemaker 2.0.5, expected at the
end of this year ...
Pacemaker has long had the ability to modify resource options and
constraints according to rules based on node attributes:
https://clusterlabs.org/pacemaker/doc/en-US/Pacemaker/2.0/html-single/Pacemaker_Explained/index.html#idm47160816617536
The node attributes have a "type" that defaults to "string" for
comparisons. It can also be "version" to compare like a software
version (3.2.0 > 3.1.19 for example).
The documentation also stated that the type could be "integer" to
compare numerically. However, no one must have used that, since the
configuration and code actually only accepted "number"!
In 2.0.5, not only are we fixing that, but you will be able to specify
"integer" for 64-bit integer comparisons or "number" for double-
precision floating-point comparisons.
--
Ken Gaillot <kgaillot at redhat.com>
More information about the Users
mailing list