Hi,
You are right - after the weekly reboot last night the numbers do add up.
The real servers have been removed and added in the mean time, but the
virtual services have stayed in place and the numbers are still correct. So
that must be it.
Mystery solved, thank you :-)
Rutger
-----Original Message-----
From: Wensong Zhang [mailto:wensong@xxxxxxxxxxxx]
Sent: Sunday, 12 October 2003 17:05
To: LinuxVirtualServer.org users mailing list.
Subject: Re: ipvsadm -l --stats
[...snip...]
It's quite possible that the conns/bytes/packets statistics of virtual
service is not the sum of the conns/bytes/packets counters of its real
servers, because some real servers may be removed permanetly. The
connection rate of virtual service is the sum of connection rate of its
real servers, because it is an instant metric at a time.
In the output of your "ipvsadm --l --stats", the counters of virtual
service is less than the sum of the counters of its real servers. I guess
that your virtual service must have been removed after it run for a while,
and then must be created later. In current implementation, if real servers
are to be deleted, they will not be removed permanently, but be put in the
trash, because established connections still refer to them; a server can
be looked up in the trash when it is added back to a service. When a
virtual service is created, it always has counters set to zero, but the
real servers can be picked up from the trash, they have the past counters.
We probably need zero the counters of real servers if the service is a new
one. Anyway, you can do "cat /proc/net/ip_vs_stats". The counters of all
IPVS services is larger than or equal to the sum of real servers.
Regards,
Wensong
|