Forum Discussion
Yozzer
Nimbostratus
Jul 08, 2012Pool not called
Hi
Is there any other configuration i need to perform to get the following irule to trigger correctly:
when HTTP_REQUEST {
if {[HTTP::uri] contains "/test/"} {
log -noname local0. "should go to pool"
pool https_pool
}
}
The log command is executing (so i know the if command is being triggered) and the request is being sent to the https_pool pool but no response comes back from the server. I know the pool member is correct as when i change it i get a compilation error.
I added the following and i can see that the correct pool has been selected and the pool is up and accessible:
when LB_SELECTED {
log local0. "Selected server: [LB::server]"
}
when LB_FAILED {
log local0. "Selected server: [LB::server]"
}ASM is being used but the page i want to access has no restrictions.I want requests to /test/ to go to a different pool which will handle the users login and then set the cookie for the same domain.
Thanks
23 Replies
- nitass
Employee
have you seen this one? can you try?
sol9800: Using an iRule to load balance HTTP requests to multiple pools
http://support.f5.com/kb/en-us/solutions/public/9000/800/sol9800.html - Yozzer
Nimbostratus
just looked at it thanks.
Is it not working as there isnt a default pool set? - Yozzer
Nimbostratus
Same result when adding in LB::detach:
when HTTP_REQUEST {
if {[HTTP::uri] contains "/test/"} {
log -noname local0. "should go to pool"
LB::detach
pool https_pool
}
} - nitass
Employee
can you try to capture packet?
e.g.
tcpdump -nni 0.0:nnn -s0 -w /var/tmp/output.pcap host x.x.x.x or host y.y.y.y
x.x.x.x is virtual server ip
y.y.y.y is pool member ip - Yozzer
Nimbostratus
Hmmm, have added a default if it fails:
when HTTP_REQUEST {
if {[HTTP::uri] contains "/test/"} {
log -noname local0. "should go to pool"
pool https_pool
} else {
pool http_pool
}
}
when LB_SELECTED {
log local0. "Selected server: [LB::server]"
}
when LB_FAILED {
log local0. "Selected server: [LB::server]"
}
and im seeing it fail in the log for https_pool. - nitass
Employee
can you post your configuration?
b virtual (virtual server name) list
b pool https_pool list
b pool http_pool list - Yozzer
Nimbostratus
Not currently. The browser gives me this error when accessing the site using the IP address:
The connection was reset, The connection to the server was reset while the page was loading.
What would cause this? Is it SSL related? - Yozzer
Nimbostratus
https_pool
Availability Requirement Health Monitor(s) All
Allow SNAT Yes
Allow NAT Yes
Action On Service Down None
Slow Ramp Time 0seconds
IP ToS to Client Pass through
IP ToS to Server Pass through
Link QoS to Client Pass through
Link QoS to Server Pass through
Load Balancing Method Round Robin
Priority Group Activation Disabled - Yozzer
Nimbostratus
http_pool is the same as https_pool - Yozzer
Nimbostratus
Type standard
Protocol tcp
Protocol Profile (Client) tcp
Protocol Profile (Server) use client profile
OneConnect Profile none
HTTP Profile http_pool
FTP Profile none
SSL Profile (Client) test
SSL Profile (Server) none
Authentication Profiles
Enabled Available
Stream Profile none
RTSP Profile none
SMTP Profile none
SIP Profile none
Statistics Profile none
VLAN Traffic enabled on
VLAN List internet internal
Connection Limit 0
Connection Mirroring
Address Translation Enabled
Port Translation Enabled
SNAT Pool none
Clone Pool (Client) none
Clone Pool (Server) none
Last Hop Pool none
Default Pool http_pool
Default Persistence Profile none
Fallback Persistence Profile none
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects