LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Stats for a webserver

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Stats for a webserver
From: Joe Stump <joe@xxxxxxxxxxxx>
Date: Tue, 27 Dec 2005 11:30:34 -0800
Hummm, what if the log server dies ?
How failover is this solution ?

Well you could always load balance your log traffic on an LVS setup with redundant NetApp's, but really why on God's green Earth would you do that? It's log traffic. I've never heard of a place where log traffic ever justified redundant servers.

--Joe



On Thu, 2005-12-22 at 21:16 +0100, Tomas Ruprich wrote:
Thu, Dec 22, 2005 ve 09:05:04PM +0100, Tomas Ruprich napsal:
Thu, Dec 22, 2005 ve 01:26:20PM -0500, Pierre Ancelot napsal:
Hey everyone :)

I am wondering how i could get awstats to check my logs on my cluster. I use an LVS-NAT and so, each server's log is stored on it's own disk.
So i got one virtual server but a lot of different log files...
Any idea how i could implement this ?

Well, i was realizing something like month ago...

In apache configuration file on each application server i have this line: CustomLog "|/usr/bin/logger -t cluster_access_log" combined env=! dontlog

and then on log server i have syslog-ng installed, where are these configuration lines: destination d_cluster_access_log { file("/var/log/httpd/ all_clusters_log"); };
filter f_cluster_access_log { match("cluster_access_log"); };
source s_net { udp(); };
log { source(s_net); filter(f_cluster_access_log); destination (d_cluster_access_log); };

awstats is very good idea, i use it too :)

I didn't mentioned syslog configuration on application servers, i think it's quite simple, but only for order...
into /etc/syslog.conf:
*.*                                              @<syslog_server_IP>

once more Tomyk :)
_______________________________________________
LinuxVirtualServer.org mailing list - lvs- users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://www.in-addr.de/mailman/listinfo/lvs-users

_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://www.in-addr.de/mailman/listinfo/lvs-users


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