Forum Discussion
John_Boyd_45868
Nimbostratus
Jun 29, 2006using a new pool based on cookie
Because of a concurrency bug in our application I'm trying to only allow one appserver to write to our database. I removed 1 of the 4 appservers from our "main" pool and put it into its own pool "log...
JRahm
Admin
Jun 29, 2006Add some logging to determine where your problems lie:
when HTTP_RESPONSE {
if { [HTTP::cookie exists "username"] } {
log "If: username cookie from server, contents are: [HTTP::cookie]"
}
}
when HTTP_REQUEST {
if {[HTTP::cookie exists "username"]} {
log "If: username cookie from client, contents are: [HTTP::cookie]"
log "If: Current pool is [LB::server pool]"
use pool login1
log "If: Pool set to [LB::server pool] by iRule"
} else {
log "Else: Default pool is [LB::selected pool]"
use pool main
log "Else: Pool set to [LB::server pool] by iRule"
}
}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