Reset SLBD every 5 hours to avoid 100% cpu utilization

This commit is contained in:
Scott Ullrich 2007-06-27 19:37:11 +00:00
parent 8fc63cd85d
commit b1d7bc0178
3 changed files with 27 additions and 2 deletions

View File

@ -34,7 +34,7 @@
<desc>Disable sending IPv6 redirects</desc>
<tunable>net.inet6.ip6.redirect</tunable>
<value>0</value>
</item>
</item>
<item>
<desc>Generate SYN cookies for outbound SYN-ACK packets</desc>
<tunable>net.inet.tcp.syncookies</tunable>
@ -697,6 +697,15 @@
<who>root</who>
<command>/etc/ping_hosts.sh</command>
</item>
<item>
<minute>*/300</minute>
<hour>*</hour>
<mday>*</mday>
<month>*</month>
<wday>*</wday>
<who>root</who>
<command>/usr/local/bin/reset_slbd.sh</command>
</item>
</cron>
<installedpackages>
</installedpackages>

View File

@ -34,7 +34,7 @@
<desc>Disable sending IPv6 redirects</desc>
<tunable>net.inet6.ip6.redirect</tunable>
<value>0</value>
</item>
</item>
<item>
<desc>Generate SYN cookies for outbound SYN-ACK packets</desc>
<tunable>net.inet.tcp.syncookies</tunable>
@ -688,6 +688,15 @@
<who>root</who>
<command>/etc/ping_hosts.sh</command>
</item>
<item>
<minute>*/300</minute>
<hour>*</hour>
<mday>*</mday>
<month>*</month>
<wday>*</wday>
<who>root</who>
<command>/usr/local/bin/reset_slbd.sh</command>
</item>
</cron>
<wol>
<!--

7
usr/local/sbin/reset_slbd.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
if [ `ps awux | grep slbd | wc -l` -gt 0 ]; then
killall slbd
killall slbd
/usr/local/sbin/slbd -c/var/etc/slbd.conf -r5000
fi