----- On Jul 18, 2016, at 4:04 PM, Ken Gaillot kgail...@redhat.com wrote:
>> >> Is there a way to manipulate the scores ? Is the score -INFINITY because the >> resource is stopped >> or is the resource stopped because the score is -INFINITY ? > > Yes, yes and yes ;-) > > You can manipulate the scores in the configuration. The different > high-level tools (crm, pcs, etc.) have their own syntax for specifying > scores, but each constraint has a score, and resource stickiness is a > score. The cluster sums up all the scores that apply to a given resource > per node, and places the resource on the node with the highest score. > > From the cluster's point of view, the resource is stopped because the > score is negative on all nodes. > > However, the crm command's syntax uses "stop" and "start" indirectly. > "crm stop" (and "pcs resource disable") simply adds constraints with > negative scores to all nodes, to make the cluster stop the resource. > "crm start" (and "pcs resource enable") simply removes those > constraints. So, from the point of view of using crm, "stopping" the > resource creates the negative scores, which then makes the cluster > actually stop the resource. > Hi Ken, thanks for your help. Can i edit them directly ? Or do i have to make a circuit with constraints ? Is pcs available for Suse SLES 11 SP4 ? I searched for it but didn't find it. Is it a good idea to use pcs because i read crm is deprecated ? Bernd Helmholtz Zentrum Muenchen Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH) Ingolstaedter Landstr. 1 85764 Neuherberg www.helmholtz-muenchen.de Aufsichtsratsvorsitzende: MinDir'in Baerbel Brumme-Bothe Geschaeftsfuehrer: Prof. Dr. Guenther Wess, Dr. Alfons Enhsen, Renate Schlusen (komm.) Registergericht: Amtsgericht Muenchen HRB 6466 USt-IdNr: DE 129521671 _______________________________________________ Users mailing list: Users@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