LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] feedbackd without compile kernel

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [lvs-users] feedbackd without compile kernel
From: Jeremy Kerr <jk@xxxxxxxxxx>
Date: Mon, 17 Sep 2007 10:39:55 +1000
Hi,

Firstly, are you sure you need to use feedbackd? LVS does a great job of 
scheduling anyway...

> I use ubuntu 6.06 depper
> but my director can run with command
> $./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
>  --without-ipvs

By using the --without-ipvs option, you'll be building a 
feedbackd-master that does not alter the ipvs tables - this is probably 
not what you want. It's mainly for debugging.

Re-run configure without the '--without-ipvs' option.

To do this, you'll need the kernel headers on your machine. In Ubuntu, 
these are available in the linux-headers-2.6 package.

I'm not sure what the recent state of the headers is, but it may not 
build at the moment - it's been a while since I've worked on feedbackd, 
and the ipvs kernel interfaces may have changed since then. If it 
doesn't build, let me know and I'll update it for more recent kernels.

> >My real server is ubuntu 7.04
> >It work when i compile with command
> >$./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
> >
> >And if i want to use cpu(or anything) in feedbackd, i must write a
> > code with perl isn't it. how can i use some code in feedbackd.

If you just want cpu load measurement, use the 'cpuload' plugin - you 
don't need to write any code for this.

However, if you want to customise the load measurement for some other 
criteria, you can write a new plugin. You don't have to use perl, but 
it's probably the easiest way to get a plugin working. Take a look at 
section 4.7.3 of the feedbackd howto:

 http://ozlabs.org/~jk/projects/feedbackd/howto/index.html

Cheers,


Jeremy


<Prev in Thread] Current Thread [Next in Thread>