Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Users

Xen OCF - mem_management

 

 

Linux-HA users RSS feed   Index | Next | Previous | View Threaded


flo_list2008 at floti

Mar 13, 2008, 7:54 AM

Post #1 of 4 (381 views)
Permalink
Xen OCF - mem_management

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:flo_list2008 [at] floti
icq:11754147
Attachments: XenWithMemWeighting.gz (3.32 KB)


sergeyfd at gmail

Mar 13, 2008, 9:16 AM

Post #2 of 4 (353 views)
Permalink
Re: Xen OCF - mem_management [In reply to]

Why do you set it up through RA and not through DomU config file? Any
advantages in that way?

On Thu, Mar 13, 2008 at 8:54 AM, Florian Tischler <flo_list2008 [at] floti> 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.
>
> Florian
>
> --
> Florian Tischler
> mailto:flo_list2008 [at] floti
> icq:11754147
>
> _______________________________________________
> Linux-HA mailing list
> Linux-HA [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>



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


dejanmm at fastmail

Mar 13, 2008, 10:13 AM

Post #3 of 4 (353 views)
Permalink
Re: Xen OCF - mem_management [In reply to]

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:flo_list2008 [at] floti
> icq:11754147


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


dejanmm at fastmail

Mar 13, 2008, 10:15 AM

Post #4 of 4 (351 views)
Permalink
Re: Xen OCF - mem_management [In reply to]

On Thu, Mar 13, 2008 at 10:16:38AM -0600, Serge Dubrouski wrote:
> Why do you set it up through RA and not through DomU config file? Any
> advantages in that way?

The way I understood it is that it depends on how many VMs run on
a host.

Thanks,

Dejan

>
> On Thu, Mar 13, 2008 at 8:54 AM, Florian Tischler <flo_list2008 [at] floti> 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.
> >
> > Florian
> >
> > --
> > Florian Tischler
> > mailto:flo_list2008 [at] floti
> > icq:11754147
> >
> > _______________________________________________
> > Linux-HA mailing list
> > Linux-HA [at] lists
> > http://lists.linux-ha.org/mailman/listinfo/linux-ha
> > See also: http://linux-ha.org/ReportingProblems
> >
>
>
>
> --
> Serge Dubrouski.
> _______________________________________________
> Linux-HA mailing list
> Linux-HA [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Linux-HA users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.