peter_siman
May 30, 2011Nimbostratus
Pool selection based on URI string
Hi,
I have writtend a simple iRule to select particular pool based on what the URI string is. See below the iRule. Unfortunatelly, when applied a following messsages show up in logs.
May 27 13:04:05 local/tmm3 info tmm3[7327]: Rule erimo_pool : Erimo request received
May 27 13:04:05 local/tmm3 info tmm3[7327]: Rule erimo_pool : Erimo request for Aprimo service received. Selecting end server
May 27 13:04:05 local/tmm3 err tmm3[7327]: 01220001:3: TCL error: erimo_pool - Error: No serverside connection established (line 1) invoked from within "IP::server_addr"
iRule:
when HTTP_REQUEST {
log local0. "Erimo request received"
if { [HTTP::path] equals "/AprimoMarketing/login.aspx" } {
log local0. "Erimo request for Aprimo service received. Selecting end server"
pool Node_Web_ESESSMW1432
log local0. "Aprimo end server selected: [IP::server_addr]"
}
else {
pool wam_erimo_pool
log local0. "Aprimo end server selected: [IP::server_addr]"
log local0. "Condition not matched. No Aprimo server selected. Server IP address is: [IP::server_addr]"
}
}
when SERVER_CONNECTED {
log local0. "Connection from[IP::client_addr]:[TCP::client_port] to Aprimo server:[IP::server_addr]:[TCP::server_port] established."
}
Does anyone have any idea what / where the issue might be?
Thanks.