[ClusterLabs] Antw: location constraint for all resources?
Ulrich.Windl at rz.uni-regensburg.de
Fri May 15 03:26:21 EDT 2015
What about a completely different approach using resource utilisation? You could define no resources for your host that shouldn't run VMs. You could use pseudo-resources like "VMcapacity" (set to a big number for yout hosts and zero for the host where VMs should not run). The each of your VMs must consume one VMcapacity to make this work...
(We use resource utilisation for memory and CPU management)
>>> Matthew Vernon <mcv21 at cam.ac.uk> schrieb am 14.05.2015 um 19:24 in Nachricht
<5554DA4A.7020709 at cam.ac.uk>:
> I have a requirement that my resources all run on hosts of a particular
> type (xenhost) and not on hosts of another type (quorum).
> For a particular resource ("foo"), I can do
> configure location xenhosts foo rule -inf: type ne xenhost
> ...but I'd like to do this with a pattern instead, say:
> configure location xenhosts /.*/ rule -inf: type ne xenhost
> but if I try that, I get errors:
> rule (1): Element rsc_location failed to validate attributes
> rule (1): Expecting element resource_set, got rule
> rule (1): Element rsc_location failed to validate content
> rsc_location (5): Element constraints has extra content: rsc_location
> Is it possible to achieve what I want here? Or do I have to add a
> location constraint for each resource I configure?
> Users mailing list: Users at clusterlabs.org
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
More information about the Users