On Wed, May 14, 2003 at 05:30:48PM -0400, seth vidal wrote: > > On Tue, 2003-05-13 at 22:46, Jack Neely wrote: > > Folks, > > > > I want failover. > > > > I make yum smart. > > > > This patch makes baseurl in the config file into a list. Uses spaces as > > delimiters. Also adds a "failovermethod" to each server section to > > select the failover method. If you leave it out it does round > > robin...which is not really round robin right now...but yeah... Your > > config files will work without making any changes...this just adds a few > > extras options to them. > > > > Attached are two things....a diff against cvs of the 4_2 branch and the > > failover module I added. The basic idea is that we have a base failover > > method class that gets inherited by other classes so folks can define > > their own failover methods....sence I've seen lots of ideas suggested. > > > > Mainly I need to touch up the failover classes but it works as a proof > > of concept. Note that clientStuff has its own grab() function now. > > > > go-go-gadget asbestos > > I like the idea a lot. And the implementation doesn't scare me too much > at all. I looked throught the patch and there is atleast a couple of > places in config.py where I'd want to make it act more like the other > options but in general it looks pretty good.. > How is it you want those options to work? I want to make roundRobin actually start with a random offset and have a priority class that does what roundRobin does now. So I'll have to add that option to config.py. After that that's the features I want. Looks like porting to 1.0 (cvs HEAD) won't be overly hard. 8.0 is not in very heavy use at NCSU (its only a devel release) so I may just stick with the new feature in the 4_2 branch and use it to push 9 even harder. :-) My 7.3 kit is still in heavy use...but its using yup...which I'm not touching. Jack -- Jack Neely <slack@xxxxxxxxxxxxxxx> Linux Realm Kit Administration and Development PAMS Computer Operations at NC State University GPG Fingerprint: 1917 5AC1 E828 9337 7AA4 EA6B 213B 765F 3B6A 5B89