keith_varga_107
May 17, 2012Nimbostratus
fixed HTTP page automatically when the # connections for the node is reached
DevCentral Team,
We have the following irule:
when HTTP_REQUEST {
HTTP::header insert "X_CLIENT_IP" [IP::client_addr]
HTTP::header insert "X-Forwarded-For" [IP::client_addr]
if { [string tolower [HTTP::uri]] contains "pmcserver" } {
pool pm3_qa_pmcserver
return
} elseif { [string tolower [HTTP::uri]] starts_with "/partner" } {
pool pm3_qa_soap
return
} else {
pool pm3_qa_web
return
}
}
Within the pm3_qa_pmcserver pool, we have two nodes that accept traffic, and have the pool set to least connections LB method. The developers would like to know of a way we can adjust our irule to do the following:
If traffic bound to the node residing in the pm3_qa_pmcserver pool surpasses the F5 connection limit that is set for that node, send the user to a fixed HTTP page automatically.
The mission is to not overwhelm the pmc server program on the backend if the F5 connection limit is already reached, and just let the F5 send the user to a url telling them the PMC program is 'too busy' instead.
thanks much, Keith Varga