sometimes my webserver get overloaded (spamassasin, buggy url rewriting,...) I know how to manage that, but my only concern is how to reach the ssh server at that time. What i've noticed is that even if the server get overloaded (Load average > 10) every internet services works almost fine (apache, mysql, qmail, etc.) but there is no way to login via ssh even with my private key or by typing the password (using Putty or any SSH client). The only way I know is to manage it via webmin : kill overloading process, wait the LA (LoadAverage) to go under 1 and then I can log...
Here is my sshd config expurge from the # commentaries (/etc/ssh/sshd_config )
Subsystem sftp /usr/libexec/openssh/sftp-server
I tried to change the priority via webmin (-20 max priority) and also looked at some nice/renice capabilites with not much success.
To summarize : how to get SSH server to get maximum priority over every other running processes when the server reaches a given load average..
My server is running Linux Redhat 7 (enigma)
Any clues ?