<br><br><div class="gmail_quote">On 16 November 2010 11:26, Dejan Muhamedagic <span dir="ltr"><<a href="mailto:dejanmm@fastmail.fm">dejanmm@fastmail.fm</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<div><div></div><div class="h5"><br>
On Mon, Nov 15, 2010 at 05:01:27PM +0100, Pavlos Parissis wrote:<br>
> On 15 November 2010 16:43, Andrew Beekhof <<a href="mailto:andrew@beekhof.net">andrew@beekhof.net</a>> wrote:<br>
> > On Mon, Nov 15, 2010 at 3:18 PM, Pavlos Parissis<br>
> > <<a href="mailto:pavlos.parissis@gmail.com">pavlos.parissis@gmail.com</a>> wrote:<br>
> >> On 15 November 2010 08:07, Andrew Beekhof <<a href="mailto:andrew@beekhof.net">andrew@beekhof.net</a>> wrote:<br>
> >>> On Fri, Nov 12, 2010 at 7:54 PM, Pavlos Parissis<br>
> >>> <<a href="mailto:pavlos.parissis@gmail.com">pavlos.parissis@gmail.com</a>> wrote:<br>
> >>>> Hi,<br>
> >>>><br>
> >>>> I am trying to understand how the scores are calculated based on the<br>
> >>>> output of ptest -sL and I have few questions<br>
> >>>> Below is my scores with a  line number column and the bottom you will<br>
> >>>> find my configuration<br>
> >>>><br>
> >>>> So, let's start<br>
> >>>><br>
> >>>> 1 group_color: pbx_service_01 allocation score on node-01: 200<br>
> >>>>  2 group_color: pbx_service_01 allocation score on node-03: 10<br>
> >>>>  3 group_color: ip_01 allocation score on node-01: 1200<br>
> >>>>  4 group_color: ip_01 allocation score on node-03: 10<br>
> >>>> so for so good, ip_01 has 1000 due to resource-stickiness="1000" plus<br>
> >>>> 200 from the group location constraint<br>
> >>>><br>
> >>>>  5 group_color: fs_01 allocation score on node-01: 1000<br>
> >>>>  6 group_color: fs_01 allocation score on node-03: 0<br>
> >>>>  7 group_color: pbx_01 allocation score on node-01: 1000<br>
> >>>>  8 group_color: pbx_01 allocation score on node-03: 0<br>
> >>>>  9 group_color: sshd_01 allocation score on node-01: 1000<br>
> >>>>  10 group_color: sshd_01 allocation score on node-03: 0<br>
> >>>>  11 group_color: mailAlert-01 allocation score on node-01: 1000<br>
> >>>>  12 group_color: mailAlert-01 allocation score on node-03: 0<br>
> >>>> hold on now, why all the above resources have 1000 on node-01 and not<br>
> >>>> 1200 as fs_01<br>
> >>><br>
> >>> its only applied to ip_01, the rest inherit it from there<br>
> >>><br>
> >>>><br>
> >>>>  13 native_color: ip_01 allocation score on node-01: 5200<br>
> >>>> 5 resources x 1000 from resource-stickiness="1000" plus, right? what<br>
> >>>> is the difference between in native and group?<br>
> >>><br>
> >>> Many things, can you be specific?<br>
> >> In principles what are the difference? if my question sounds stupid<br>
> >> then it is because I don't understand the terminology.<br>
> ><br>
> > well, groups are an ordered collection of natives.<br>
> ><br>
> >><br>
> >>><br>
> >>>><br>
> >>>>  14 native_color: ip_01 allocation score on node-03: 10<br>
> >>>>  15 clone_color: ms-drbd_01 allocation score on node-01: 4100<br>
> >>>> why 4100?<br>
> >>><br>
> >>> probably the promotion score<br>
> >> I have "order pbx_service_01-after-drbd_01 inf: ms-drbd_01:promote<br>
> >> pbx_service_01:start"<br>
> >> does promotion score you mention come out the above contstraint?<br>
> ><br>
> > only from colocation constraints<br>
> then it comes out from "colocation fs_01-on-drbd_01 inf: fs_01<br>
> ms-drbd_01:Master"<br>
> which has score inf, where at line 15 score is 4100.<br>
> >><br>
> >> I think my issue here is how I look at the numbers, I assume that<br>
> >> every time I see score for a resource, that score also includes any<br>
> >> scores mentioned before. Is my assumption correct?<br>
> ><br>
> > often, it depends on what colocation constraints you have set up<br>
><br>
> Ok, let me ask it differently, how by looking at the output of ptest<br>
> -sL can I find the score of a resource for a specific node?<br>
> Since the score of a resource for a specific node is mentioned in<br>
> several lines, it is not that easy- at least to me.<br>
<br>
</div></div>You can try with showscores.sh. It should do exactly what you<br>
want. It is not package, but you can get it from the pacemaker<br>
repository.<br>
<br>
Thanks,<br>
<br>
Dejan<br></blockquote></div>PERFECT!!!!!!!!<br><br>This is what I want. Thank you very much.<br>why is not part of the delivery?<br><br>Pavlos<br><br>