Per Jessen wrote:
I have an rsyncd service for mirroring sanesecurity data. Generally it works very well, but occasionally the rsyncd server will get hung up with many rsyncd processes just waiting on (apparently) inactive clients. This can go on for minutes, possibly hours. I'm running rsyncd via xinetd. The 'timeout' parameter for rsyncd.conf doesn't seem to take effect. I have now taken to automatically killing any rsyncd process running for more than 90seconds, which has improved things tremendously. Also, rsyncd seems to ignore my "hosts deny" setting - I tried refusing access to a couple of the most frequently hanging clients, but afaict, rsyncd just ignores "hosts deny".
I'm happy to post complete configs, but before I clog up the list with that, somebody might recognise the scenario above?
Here is an example of what it looks like: # ps -C rsyncd -o pid=,etime= 8777 30:48 11751 15:00 12024 13:20 12331 11:08 12817 08:19 13284 05:07 13868 02:12 14153 00:42 14241 00:18 14389 00:02 14393 00:01 14397 00:01 14398 00:01 14399 00:01 Normally, those 6 processes with longer run-times will eventually terminate by themselves, but not always. Sometimes they're stuck for much longer and the number grows, ending up choking the server/rsync process. http://sanesec.jessen.ch Above, look at the "Requests" column - typically about 100K/day, but some days only 4-5K or less. I have just now tried going back to running just rsyncd (instead of xinetd), just to see if xinetd might be causing some sort of problem after all. It didn't change anything - now after writing this and answering the phone: # ps -C rsyncd -o pid=,etime= 8777 41:58 13868 13:22 14153 11:52 14241 11:28 14939 08:52 14984 08:34 15992 05:06 16201 04:54 16511 04:33 16883 04:09 17255 03:42 17658 03:10 17891 02:50 18041 02:34 18044 02:34 Now switching back to xinetd. -- Per Jessen, Zürich (3.8°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org