LVS
lvs-devel
Google
 
Web LinuxVirtualServer.org

A one-liner ipvs patch

To: netdev@xxxxxxxxxxxxxxx, lvs-devel@xxxxxxxxxxxxxxx
Subject: A one-liner ipvs patch
Cc: Simon Horman <horms@xxxxxxxxxxxx>
From: Siim Põder <siim@xxxxxxxxxxxxxxx>
Date: Wed, 03 Sep 2008 11:24:03 +0300
Hi!

I have a few very high connection rate services behind LVS and when
keepalived removes them because of problems, the LVS would be rebooted
with tens of thousands of this message in the logs (rebooted by hardware
watchdogs).

I have had it running on production systems for maybe 3 months or so and
this problem hasn't occured any more, which does not prove that the
patch isn't just curing a symptom, but I think it is concievable, that a
lot of printks could hang a system.

Siim

ipvs: ratelimit flooding message in wrr scheduler

When all backends are removed from wrr scheduler by a monitoring agent, this
message can flood so fast that a 10s watchdog would reset the system.

Signed-off-by: Siim Po~der <siim@xxxxxxxxxxxxxxx>
--- linux-2.6.24/net/ipv4/ipvs/ip_vs_wrr.c      2008-01-24 22:58:37.000000000 
+0000
+++ linux-2.6.24-ipvs_patches/net/ipv4/ipvs/ip_vs_wrr.c 2008-05-06 
16:17:17.790662800 +0000
@@ -169,7 +169,7 @@
                                 */
                                if (mark->cw == 0) {
                                        mark->cl = &svc->destinations;
-                                       IP_VS_INFO("ip_vs_wrr_schedule(): "
+                                       IP_VS_DBG_RL("ip_vs_wrr_schedule(): "
                                                   "no available servers\n");
                                        dest = NULL;
                                        goto out;

<Prev in Thread] Current Thread [Next in Thread>