[ClusterLabs] Antw: location constraint for all resources?
Matthew Vernon
mcv21 at cam.ac.uk
Fri May 15 16:29:01 UTC 2015
Hi,
On 15/05/15 08:26, Ulrich Windl wrote:
> 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...
That's not a bad idea, but seems a bit artificial - is a
match-all-resources location configuration impossible?
Thanks,
Matthew
>>>> Matthew Vernon <mcv21 at cam.ac.uk> schrieb am 14.05.2015 um 19:24 in Nachricht
> <5554DA4A.7020709 at cam.ac.uk>:
>> Hi,
>>
>> 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
More information about the Users
mailing list