[Dbbalancer-users] Startup and shutdown script...
Status: Alpha
Brought to you by:
xperience
From: Daniel V. S. <dv...@ar...> - 2001-11-07 17:39:39
|
On Tue 06 Nov 2001 01:02, you wrote: > Good point. Would it be possible to add a parameter into the > configuration file which overrode the default, but was in turn > overridden by the command line? But we also would have to keep redundant configuration files... A pair of reader & writer always share a config file. Here I can think of two approaches: a) Keeping a config file for each process. This way is easy to know how many process to spawn from the number of config files. The config file should have to somewhat say if the process is a reader or a writer with a new parameter. b) Keeping a config file for each "source". This would mean that a config file could spawn a "reader", a "writer" or both, which also would requiere new parameter, with three possible values. In the case of reader & writer process the same invocation could fork two times, so that the startup script didn't have to know about config settings... I'd like to know what you think about these two approaches... > One gotcha I found writing my script is that DBBalancer checks that it's > configuration file ends in ".conf" - I don't think that this check is > really necessary. This is a remain from when XML or TXT files could be used for config. The check avoided that a XML file was feeded to the TXT module or the opposite. It's no longer necesary and I'll remove it. -- ---------------------------------- Regards from Spain. Daniel Varela ---------------------------------- If you think education is expensive, try ignorance. -Derek Bok (Former Harvard President) |