Perrot_Ludovic
Mar 13, 2017Nimbostratus
LB::Server pool empty
I need to switch between two different pools, based on availables members. I found several answers and test this one:
when RULE_INIT {
set static::BACKUP_POOL "/Partition/Backup_Pool"
}
when HTTP_REQUEST {
set default_pool [LB::server pool]
if { [active_members $default_pool] < 1 } {
pool $static::BACKUP_POOL
else {
pool $default_pool
}
}
}
However, LB::server pool always returns an empty string.
I am on version 11.4.1