Re: [CentOS] Two sets of Heartbeat HTTPD clusters on same subnet

2009-04-02 Thread J Potter
I have successfully configure two machines to use heartbeat to cluster httpd. The two nodes are called etk-1 and etk-2. I am trying to configure another two machines to act as a separate cluster (on the same IP subnet). These two nodes are called radu-1 and radu-2. We successfully do this

Re: [CentOS] [OT] Network switches

2009-03-26 Thread J Potter
look at HP Procurves. That is what I use. You can get 2524's quite cheap on ebay. We used these for years, and they were great, and super cheap on EBay. HP support was fantastic as well. The 26xx series allows for light layer 3 routing; you may want to snag the 2626 or 2650 instead of the

[CentOS] general protection rip?

2009-03-06 Thread J Potter
Hi List, On one of our CentOS 5 (x64_86) servers, identical to a number of other systems, I'm seeing some processes / services failing to run, along with the following error in /var/log/messages: Mar 2 23:25:07 someHostname kernel: wrapper-linux-x[24448] general protection

Re: [CentOS] clustering and load balancing Apache

2009-02-11 Thread J Potter
Look at pound: http://www.apsis.ch/pound/ If you are concerned about traffic volume, you might consider running squid as a transparent proxy in front of pound. I.e.: request - squid - pound - apache Where squid will return the response for everything marked as cacheable and still fresh;

Re: [CentOS] Problems with mysql multi-master after update.

2009-02-10 Thread J Potter
For what it's worth, I haven't seen this on any systems I manage when going from 5.0.22-5.0.45, which include permutations of master-slave and master-master. Is there anything useful in /var/log/mysqld.log? after I updated from mysql-5.0.22 CentOS 5.0 to mysqld-5.0.45 in CentOS 5.2,

Re: [CentOS] squid HA failover?

2009-02-06 Thread J Potter
Assuming server A with IP M, server B with IP N, and DNS entry X currently pointing at IP M: 1) Add heartbeat on servers A and B, with heartbeat managing a new IP address O (this is your virtual IP -- nothing to do with VRRP, that's for your routers to failover your gateway). 2) If you

Re: [CentOS] squid HA failover?

2009-02-06 Thread J Potter
Yes, I normally want one server handling the full load to maximize the cache hits. But the other one should be up and running. So, active/standby. Easier config. Squid won't even be aware that heartbeat is running; just keep it running on both servers all the time. See my install notes at

Re: [CentOS] Virtual NICs (aliases like eth0:1) won't come up after reboot

2008-11-14 Thread J Potter
I found under CentOS 4 a few years ago that the OS would only bring up virtual interfaces starting with 0:0 and increasing sequentially -- if there was a gap, it would stop at that gap point. I.e.: Good: eth0, eth0:0, eth0:1, eth0:2... Bad: eth0, eth0:0, eth0:2 (system

[CentOS] count of active tcp sockets?

2008-04-16 Thread J Potter
Hi List, Is there an easy way to get a count of the number of active socket connections, or even better, number of socket connections in the time_wait state? (Something lightweight... under /proc/sys/net/ipv4/? I'd like to avoid the impact of listing out all the connections a-la

Re: [CentOS] count of active tcp sockets?

2008-04-16 Thread J Potter
netstat -an|grep TIME_WAIT|wc ? I need to avoid anything that lists out all the connections -- the above would take too long if there are tens of thousands of connections. I'm hoping there's a proc entry that has a summary count of the current number of connections? -Jeff

[CentOS] Newer MySQL in centos-plus?

2008-03-10 Thread J. Potter
Hi List, I'm noticing that the CentOS-plus repo for 4.6 has MySQL 5.0.54 in it, but the CentOS 5.1 repo does not have a newer rpm, leaving the newest easily-available version as the vendor-provided mysql 5.0.22. Is there a reason for this? We're wanting to try a newer MySQL under

[CentOS] Is there a fix for the sqlite cache needs updating error?

2008-02-19 Thread J. Potter
I've been seeing the below message from yum whenever the repo has an update (CentOS 5): /etc/cron.daily/yum.cron: ** Message: sqlite cache needs updating, reading in metadata Googling a bit, it looks like others have seen this happen as well. The solutions, when I've found them, have

Re: [CentOS] Is there a fix for the sqlite cache needs updating error?

2008-02-19 Thread J. Potter
** Message: sqlite cache needs updating, reading in metadata ... Is there a general solution to this? Or should we just sit tight for redhat bug #429689 to be fixed (5.2?). this is not really a bug ... it is just verbose output that causes an e-mail to be sent. It seems to be the default,

[CentOS] limit number of per-vhost or per-user cgi processes?

2008-02-14 Thread J. Potter
Hi List, Is there a way to limit the number of cgi processes Apache's suExec will fork for a given vhost or given user? (either solution is fine) suExec doesn't honor the /etc/security/limits.conf nproc value. mod_throttle seems to be dead; and I can't figure out if selinux might be

Re: [CentOS] RPM for perl-svn-notify?

2008-02-06 Thread J. Potter
... If I can't find an RPM for a Perl module on one of the third- party repositories, I usually use cpanflute2 to build an RPM, then install that. That way RPM knows all about the module and can handle it appropriately. ... Thanks, Jay! Mostly there. For some reason, the rpm file is

Re: [CentOS] Clustering MySQL

2007-12-11 Thread J. Potter
- master A is at position X - master B, replicating from A, gets to position X - master A syncs to its filesystem that it's at position X - master A receives some inserts, and is now at position Y - master B, replicating from A, gets to position Y - master A crashes before the position

Re: [CentOS] weird load values

2007-12-06 Thread J. Potter
As mentioned before, IO could give such strange results. I suggest launching dstat with logging to a file, and analyzing the file afterwards. Thanks, much appreciated! This has yielded some interesting data, which I'll attempt to include a few seconds before and after one of these events

Re: [CentOS] how does one remove bond1?

2007-10-22 Thread J. Potter
Remove the max_bonds=2 from /etc/modprobe.conf Yup, doing that removed the mystery bond1 under /proc/net/bonding - thanks! best, Jeff ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos