Hello David and others!
I made a some of patches for sqlrelay and believe that you find them useful.
09_sessioncount_correction.patch - prevents sessioncount to go below zero
10_signal_handler_exit.patch - _exit() usage instead of exit() in signal
handlers prevents double free on exit
11_status_more_info.patch - more status (totalconnections and
sessioncount, semaphores)
12_scale_by_fork.patch - when scaler started with -fork option, it uses
fork() instead of system() to open new connections. When connection
died, scaler reap it with waitpid() and maintain connection counter by
himself, so connection counter in shm does not affect scaler.
I made this patch because connection counter in shm always get corrupted
after two or three days running sqlrelay under heavy load with periods
of no load at all. I'll try to find out why this happen, but i believe
that this patch will greatly increase the stability of sqlrelay with
dynamic scaling.
--
Renat Sabitov e-mail: sr...@st...
Stack Soft jid: sr...@ja...
|