Forum Discussion
Kai_Wilke
Jan 15, 2016MVP
HI Vitor,
corrected some portions...
when HTTP_REQUEST {
if { [active_members pool_YYYY] > 0 } then {
pool pool_XXXX
} else {
HTTP::uri "/test[HTTP::uri]"
pool pool_ZZZZZZZ
}
}
Note1: The
option of -list
command is not required to count the numbers of active pool members. The -list option would deliver a string containing the IPs and Ports of every available pool members, which produces unnecessary overhead.[active_members -list pool_YYYY]
Note2: If you want to ad a trailing string to the
you could easily substitute the new string, based on the new trailing string and the old value (aka. [HTTP::uri]
)."/test[HTTP::uri]"
Cheers, Kai