[ClusterLabs] Antw: location constraint for all resources?
Ulrich Windl
Ulrich.Windl at rz.uni-regensburg.de
Fri May 15 07:26:21 UTC 2015
Hi!
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)
Regards,
Ulrich
>>> 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
>
> Is it possible to achieve what I want here? Or do I have to add a
> location constraint for each resource I configure?
>
> Thanks,
>
> Matthew
>
> _______________________________________________
> Users mailing list: Users at clusterlabs.org
> http://clusterlabs.org/mailman/listinfo/users
>
> 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
mailing list