Forum Discussion
Josiah_39459
Mar 23, 2016Historic F5 Account
It's possible with an elaborate irule using the pool member command and programming your own load balancing algorithm--but then you are losing pretty much all the benefit of having them in a pool in the first place (and you could just as easily use the node command).
Why not have two pools?
- roblof_255673Mar 23, 2016NimbostratusI have specified the default pool "tool-test" to the virtual server as resource. Is it possible to have several pools to a virtual server
- Josiah_39459Mar 23, 2016Historic F5 AccountYep. In an irule you can send traffic to pools which aren't attached to the vip.
- roblof_255673Apr 05, 2016NimbostratusNeed some more help on this matter. I have now divided the four servers I have into two pools. tool-uat and tool-oslc. tool-uat is the default pool that is connected to the virtual-server. Domain "https://uat.domain.com/uat1/login" is working which the servers in pool tool-uat Domain "https://uat.domain.com/uat1/oslc/login is not working which is the servers on pool tool-oslc I have created an iRule that is attched to the virtual-server when HTTP_REQUEST { switch [string tolower [HTTP::uri]] { "oslc*" { pool tool-oslc } default_pool { pool tool-uat } } } Have also tried: when HTTP_REQUEST { set uri [string tolower [HTTP::uri]] { switch -glob $uri { "/oslc/login/" { pool tool-oslc } default { pool tool-uat } } }
- roblof_255673Apr 05, 2016NimbostratusThis solved my problems :-D when HTTP_REQUEST { if { [HTTP::uri] contains "oslc" } { pool tool-oslc } else { pool tool-uat } }