Hi,

I am currently working on a 2 node Xen cluster. In normal operation both nodes 
should host half of the Xen DomUs, if one node goes down all Xen DomUs are 
hosted on remaining node. So i need mem_management which is already 
implemented and working in Linux-HA 2.1.3.

I was not really satisfied  with the mem_management of the Xen OCF as every 
DomU gets the same amount of memory. (As example my memory eating groupware 
server gets the same amount of memory as my small subversion server)

I have tried to extend the Xen OCF of Linux-HA 2.1.3 to use some kind 
of "memory weighting" and I think I found a well working solution.

I have attached my "Xen with memweighting OCF" to this email. Maybe someone 
wants to try it. I have tested it a few days with 3 DomUs, it seems to work 
without problems.

As i have just started using Linux-HA i would be glad to get some feedback 
from Linux-HA experts if the way i have extended the OCF is save, if I could 
make things better, point me on possible problems.

The OCF used 2 additional keys. use_mem_weighting true or false. (With false 
it works like the standard Xen OCF) and memweightfile full path to a file 
where the memory weighting is configured. In this memweightfile I specify
xen-machine = memweightingvalue line per line. The allowed range for this 
value is 1 - 10. If no line is found 1 is assumed. So as example with 2 lines 
in this memweightfile (groupware = 10 and subversion = 1) the groupware DomU 
gets 10x the amount of memory like the svn DomU.

I would be glad to get some feedback.

Florian

-- 
Florian Tischler
mailto:[EMAIL PROTECTED]
icq:11754147

Attachment: XenWithMemWeighting.gz
Description: GNU Zip compressed data

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to