Re: [Ipvsman-users] Some questions
Status: Alpha
Brought to you by:
volkerjaenisch
|
From: Dr. V. J. <vol...@in...> - 2007-07-05 15:24:17
|
Dear Unknown! ipvsman user schrieb: > I was wondering how to set the log level, I tried: > > -d > -d debug > -d "debug" > -d 1 > -d 9999 > -d 'debug' > -d=debug > ipvsman runs in debug-level as default. Never changed that. I put it on the Todo. > etc, but had to finally go set it in the .py file. > > Also, what is the correct file to use now, service or topology? > Topology is the new style config. service.cfg is for legacy purposes only and will die or is dead already.. > When I tried service.cfg with the following I got an parse error: > > #ServiceName:Transport:IP:Port Realserver-Mapping (params) > ipvsm-test:t:10.1.1.100:80 ["x:10.1.1.1:","y:10.1.1.2:","z:10.1.1.3:"] (-g -swrr) > > I was able to compile everything on FC6 from the source packages, I just had to do > yum install python-devel > first > Ok. Will put this in the Installation part in the HOWTO. > And the README is not clear on what is the desired config, is it the actual or > is it what is in topology/service cfg file? Is there a way to save actual to > service/topology cfg? > Please have a look at the documentation in the wiki. There are lots of pictures that say more than 1000 words. http://wiki.inqbus.de/twiki/bin/view/Ipvsman/Dokumentation It's the other way around. In topology.cfg you define your topology means all the realservers, virtual services. This definition is static. In ipvsman you activate certain realservers from the topology. ipvsman then * saves the new desired state in the desired-condig file. * informs the livekeeping daemon ipvsmand that the desired config has changed. This approach is truely more complicated than that of keepalived or ldirectord. But it has some advantages. E.G. you can do most of the usual changes (taking servers out of the loadbalancing, changing weight) interactivly with the GUI without fiddling around in a config file. > ipvsman wouldn't start when there was no service.cfg available and gave a not > clear error msg about why it wouldn't start. > Which Version do you run? ipvsman should be run with NO config file at all. Is there a stacktrace? If so please post it - I will have a look. > If it could start with no cfg and save the actual running config to a cfg file > then people could load on a running director machine, open it up save their > running config to a service/topology cfg file and add/edit it. > This is a good idea but not so easy. The topology is more than what ipvs gives as information. E.g. the tests ipvsmand should do to check for availability. ipvsman run without desired config-file takes the information from ipvs and creates a desired-config file. So if you switch from say ldirectord or keepalived you will have a seemless migration in terms of desired state. The topology information, tests, timeouts e.g. can ipvsman not guess so easily. But writing a topology.cfg file is easy and needed only once (or if you have major changes in your cluster). Best Regards, Volker -- ==================================================== inqbus it-consulting +49 ( 341 ) 5643800 Dr. Volker Jaenisch http://www.inqbus.de Herloßsohnstr. 12 0 4 1 5 5 Leipzig N O T - F Ä L L E +49 ( 170 ) 3113748 ==================================================== |