From ugya99 at yahoo.co.jp Thu May 6 08:35:35 2004 From: ugya99 at yahoo.co.jp (SHIBATA, Makoto) Date: Thu, 6 May 2004 17:35:35 +0900 (JST) Subject: [Piranha]How to detect stalemate condition Message-ID: <20040506083535.90983.qmail@web10006.mail.yahoo.co.jp> How to detect stalemate condition ? http://www.redhat.com/docs/manuals/haserver/RHHAS-1.0-Manual/x3488.html When I unplug the primary node, failover occurs. And I plug back the promary node, I want to prevent fail back to primary node. Can I detect stalemate condition ? Is there any good timing to stop primary node service ? --- Makoto Shibata From alois at astro.ch Sat May 22 14:52:04 2004 From: alois at astro.ch (Alois Treindl) Date: Sat, 22 May 2004 16:52:04 +0200 Subject: master server down - lvs cluster default to emergency server Message-ID: <40AF6914.4010908@astro.ch> Hello I have a small question: My LVS NAT cluster consists of several http servers, and one mysql database server. I understand that I can configure piranha via lvs.cf to make healt checks on the httpd service as well as on the mysql server Now, if the database server is down, all web servers become dysfunctional, as they cannot provide application data anymore. I need to announce to all web users a 'server down' page. I do this by directing all http/https requests to an emergency server. It's apache server is configured to show the same emergence page for any URL it receives. The emergency apache server runs on the router/director itself. How con I configure piranha lvs.cf in such a way, that, if the mysql health check fails, it redirects all http and https request coming into the LVS to the emergyency http server? My healty ipvs configuration looks like this: ${IPVSADM} -A -t $LVS:www -s wlc -p 60 ${IPVSADM} -a -t $LVS:www -r w1:www -m -w 2000 ${IPVSADM} -a -t $LVS:www -r w5:www -m -w 2000 ${IPVSADM} -a -t $LVS:www -r w6:www -m -w 2000 ${IPVSADM} -A -t $LVS:https -s wlc ${IPVSADM} -a -t $LVS:https -r w1:https -m -w 1000 my 'sick' configuration (with redirection to the emergency server) looks like this: ${IPVSADM} -A -t $LVS:www -s rr ${IPVSADM} -a -t $LVS:www -r $WWC:www -m ${IPVSADM} -A -t $LVS:https -s rr ${IPVSADM} -a -t $LVS:https -r $WWC:www -m where $WWC is the real (external) IP of the director/router Can piranha do the switch to the 'emergency state'? Piranha does not have to turn the servers back on automatically, when the database service recovers. In my experience, often some manual work is required on the dbms server, before the web service can be resumed. Alois Treindl Switzerland From felix at cgic.ucol.mx Thu May 27 16:23:46 2004 From: felix at cgic.ucol.mx (Felix Ortigosa Martinez) Date: Thu, 27 May 2004 11:23:46 -0500 Subject: help.. Message-ID: <40B61611.D0C78B83@cgic.ucol.mx> I have on cluster redhat 62. but not work. i configure the cluster how see the doc...High avalibity cluster.option LVS ..( https://www.redhat.com/docs/manuals/haserver/RHHAS-1.0-Manual/high-availability.pdf ) and not work. Install red hat 6.2 , upgrade the system site of red hat, install the kernel 2.2.24., to verify if kernel work with ip_masquerade, and modules of ip_vs and yes it is. install rpm?s ipvsadm-1.1-2, piranha-0.4.14-1. log on in the real server , ping to out side public ip y response correct, execute command ipvsadm and send message. IP Virtual Server version 1.0.8 (size=4096) Prot LocalAddress:Port Scheduler Flags -> RemoteAddress:Port Forward Weight ActiveConn InActConn TCP 94D516C8:0050 rr -> 01000000:0000 Masq 0 0 0 TCP 94D516C8:0015 rr -> 01000000:0000 Masq 0 0 0 working fine. but when reboot the router the ipvsadm is clean, no send me the same messages. put the lines in the file rc.local for work fine the ipvsadm, the problem is when 3 minutes pass the ipvsadm is erase your configuration. the error log send message May 26 04:59:17 cluster nanny[792]: failed to read remote load May 26 04:59:35 cluster nanny[792]: running command "ruptime" "192.168.1.3" "up why ? i need put after begin work the router lines in the prompt ipvsadm -A -t x.x.xx::80 -s rr so that work fine. in the real server, the kernel is the old version 2.2.14 i need upgrade this ? thanks for your help. -- Ing. Felix Ortigosa Martinez COMPUTO - Coordinaci?n General de Investigaci?n Cientifica Universidad de Colima Av. Gonzalo de Sandoval # 444, Col. Las Viboras Colima, M?xico Tel 01-312-31-61125 Ext. 40006