Forum Discussion
How to properly monitor a pool for several ports?
Hi,
I have 2 backend servers which I need to load balance behind just one VIP.
But there are 6 applications (6 ports) running on each server.
I made a new pool with two pool members and service port 0 (so that I can load balance any port).
I made a new virtual server with my VIP and service port 0 (all ports).
This will work and will load balance my 6 different ports.
Now the question is how about monitoring. How can I monitor pool members for all 6 ports and make a pool member unavailable for only one port if this ports is unreachable? I don't want to make the whole node unavailable when only one port is down.
I know I could work it our with an iRule and 6 separate pool (one per port). But is there no other (simpler) way of doing this?
Thx. Martin
6 Replies
- giltjr_32735
Nimbostratus
We have a similar situation, one set of servers with multiple applications. We created a unique pool for each application and created a unique monitor and assigned the monitor to the pool representing that application. Then using an iRule we check the URI incoming HTTP request and select the appropriate pool.
- Martin_Vlasko
Altocumulus
That is exactly what I was thinking is the only option possible, but reading the reply from Brad, Local Traffic Policy looks to be able to handle this as well, I will give it a try. But thanks for confirmation that the iRule version is also logical solution :-)
- Brad_Parker
Cirrus
If you are determined to use only one VIP, it will require 6 pools each with their own monitors and pool selection to happen with an iRule or a Local Traffic policy(v11.4+). Or you could just use 6 separate VIPs if you don't want to use iRules or Local Traffic policies. What's the reason you "need" to use one VIP for the load balancing? If its persistence you can have it match across pools or virtual servers.
- Martin_Vlasko
Altocumulus
Thanks for the tip Brad, I will give a try to Local Traffic Policies, I never worked with them before, but I did read about them now and you are right, it might actually solve my issue. thx.
- Brad_Parker_139
Nacreous
If you are determined to use only one VIP, it will require 6 pools each with their own monitors and pool selection to happen with an iRule or a Local Traffic policy(v11.4+). Or you could just use 6 separate VIPs if you don't want to use iRules or Local Traffic policies. What's the reason you "need" to use one VIP for the load balancing? If its persistence you can have it match across pools or virtual servers.
- Martin_Vlasko
Altocumulus
Thanks for the tip Brad, I will give a try to Local Traffic Policies, I never worked with them before, but I did read about them now and you are right, it might actually solve my issue. thx.
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