Hi, On Thu, Mar 13, 2008 at 03:54:14PM +0100, Florian Tischler wrote: > 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.
IMO, it could be implemented without the external file. Just define one extra attribute, say mem_weight which defaults to some value, say 5. Memory weight would be applied always (i.e. no enable/disable), but it would make difference only if the mem_weight attributes are set. Please use patches instead of complete files. And many thanks for the contribution! Cheers, Dejan > Florian > > -- > Florian Tischler > mailto:[EMAIL PROTECTED] > icq:11754147 > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
