Hi,
I am trying to write an iRule to take an action when the dynamic ratio of a server goes to a certain value.
To test this I used the following rule:
when LB_SELECTED {
set server “[LB::server]”
set weight “[LB::server weight]”
log local0. “server connect name $server weight $weight”
}
It appears however from the logs that the value it shows for the weight is always “1”. I checked the weight of the server but its 100 and not 1. Isn’t this command supposed to retrieve the dynamic weight?