Forum Discussion
Redirect traffic depending nodes active/passive
Good afternoon.
I Have this problem:
Exist two nodes (active-passive), in this nodes was installed an agent it work for port 5555 that is always up. I need to direct traffic to the node that is active, the active server will port 7777 will have up. I have configured the virtual server and pool, but can not find the irule to let me choose the node is active, the best performances I have obtained the following irule
when LB_SELECTED {
if { [IP::addr [LB::server addr] equals 10.193.30.56] and [LB::status pool Pool_ORIB_APP_PRD_7777 member 10.193.30.56 7777 up]} {
persist source_addr }
else {
LB::reselect node 10.193.30.52 5555
}
The configuration complete is:
virtual VS_DATA_PROTECTOR_ORRIB_PRD {
snat automap
pool Pool_DATA_PROTECTOR_ORIB_APP_PRD
destination 10.193.30.61:5555
ip protocol tcp
rules LB_STATUS_DATA_PROTECTOR
vlans internal enable
}
pool Pool_DATA_PROTECTOR_ORIB_APP_PRD {
monitor all tcp
members {
10.193.30.52:5555
10.193.30.56:5555
pool Pool_ORIB_APP_PRD_7777 {
monitor all http
members {
10.193.30.52:7777
10.193.30.56:7777
rule LB_STATUS_DATA_PROTECTOR {
when LB_SELECTED {
if { [IP::addr [LB::server addr] equals 10.193.30.56] and [LB::status pool Pool_ORIB_APP_PRD_7777 member 10.193.30.56 7777 up] } {
persist source_addr }
else {
LB::reselect node 10.193.30.52 5555
}
}
This configuration works the second or third attempt, the first one fails. I got an event before it is chosen a node, in which case you can go to the server traffic in passive state
I appreciate the help you can give me.
2 Replies
- nitass
Employee
not sure if i understand question correctly.
you are saying that service is on port 5555 which is always up but active node is determined by port 7777, aren't you? if so, can we make health monitor to port 7777?
e.g.[root@ve10:Active] config b pool Pool_DATA_PROTECTOR_ORIB_APP_PRD list pool Pool_DATA_PROTECTOR_ORIB_APP_PRD { monitor all myhttp members { 10.193.30.52:5555 {} 10.193.30.56:5555 {} } } [root@ve10:Active] config b monitor myhttp list monitor myhttp { defaults from http dest *:7777 } - Whesther_Manuel
Nimbostratus
Good Morning.
Nitass, you understood the question correctly. I tested by setting the monitor to the port 7777 and it worked.
had taken the road more difficult, thank you very much for the help.
regards
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com