[Pacemaker] A question and demand to a resource placement strategy function

Vladislav Bogdanov bubble at hoster-ok.com
Mon Aug 22 15:09:38 CET 2011


Hi Yan,

27.04.2011 08:14, Yan Gao wrote:
[snip]
>> Do priorities work for "utilization" strategy?
> Yes, the improvement works for "utilization", "minimal" and "balanced"
> strategy:
> 
> - The nodes that are more healthy and have more capacities get consumed
> first (globally preferred nodes).

Does this still valid for current tip?
I tried to use utilization to place resources (virtual machines) to
nodes based on four parameters, cpu usage, ram usage and storage I/O
usage (for two storages). While I see almost perfect balancing on first
two parameters, other two (storage I/O) are not considered at all for
resource placement.
Here are excerpts from ptest -LUs output:

Original: v03-a capacity: vds-ok-pool-0-usage=99999999
vds-ok-pool-1-usage=99999999 cpu-decipct=11000 ram-hugepages-mb=44360
Original: v03-b capacity: vds-ok-pool-0-usage=99999999
vds-ok-pool-1-usage=99999999 cpu-decipct=11000 ram-hugepages-mb=44360
...
native_color: vptest1.vds-ok.com-vm allocation score on v03-a: 0
native_color: vptest1.vds-ok.com-vm allocation score on v03-b: 0
calculate_utilization: vptest1.vds-ok.com-vm utilization on v03-b:
vds-ok-pool-1-usage=100 cpu-decipct=330 ram-hugepages-mb=1024
native_color: vptest2.vds-ok.com-vm allocation score on v03-a: 0
native_color: vptest2.vds-ok.com-vm allocation score on v03-b: 0
calculate_utilization: vptest2.vds-ok.com-vm utilization on v03-a:
vds-ok-pool-0-usage=100 cpu-decipct=330 ram-hugepages-mb=1024
...
Remaining: v03-a capacity: vds-ok-pool-0-usage=99996799
vds-ok-pool-1-usage=99999999 cpu-decipct=110 ram-hugepages-mb=10568
Remaining: v03-b capacity: vds-ok-pool-0-usage=99999899
vds-ok-pool-1-usage=99996899 cpu-decipct=980 ram-hugepages-mb=10568

After that virtual machines placed such way so one node uses only first
storage, other uses almost only second one.

Am I missing something?

Also could you please describe algorithm used for placement in little
bit more details, so I would ask less stupid questions. Does it have
something related to linear programming (f.e.
http://en.wikipedia.org/wiki/Simplex_method)?

Best,
Vladislav



More information about the Pacemaker mailing list