12-19-2006 05:02 PM
I would like to know if possible to configure keepalive for a service, so that, keepalive will monitor two ip addresses/ports instead of one.
for example:
service test
ip address 10.1.1.101
protocol tcp
port 80
keepalive type tcp
keepalive port 80
active
content test
vip address 10.2.2.11
balance leastconn
protocol tcp
port 80
add service test
active
at this example if 10.1.1.101:80 down, the the service test is down.
but, I have another machine 10.1.1.102:80, I need also, (logical OR) if 10.1.1.102:80 down, the service test down, or the content test down?
Can I do it? if so, how to? using script?
Any comments will be appreciated
Thanks in advance
12-20-2006 01:06 AM
you will have to use a script.
You can take an existing one as an example and modify it slightly to do what you need.
Gilles.
12-20-2006 02:44 AM
content test
vip address 10.2.2.11
balance leastconn
protocol tcp
port 80
add service test-1
add service test-2
active
service test-1
ip address 10.1.1.101
keepalive type script ap-kal-pinglist "10.1.1.101 10.1.1.102"
active
service test-2
ip address 10.1.1.102
keepalive type script ap-kal-pinglist "10.1.1.101 10.1.1.102"
active
Scripted keepalives are created to monitor both, the server port as well as the application/database servers. If either does not respond the entire service goes down.
thanks
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide