Except member in the pool for load balance

I would like to know. If in 1 pool there are 4 members. I want to select member 1, except to not work in load balancing.

But can other members perform normal load balancing? iRule can manage? iRule can managed? If yes, please give an example

Thank you for help.

,

If you dont want that particular member to load balance, why do you still need it on the pool. Any reason.

Why not delete it or keep it in disabled state.

Thank you for answer

because i have to use member 1 to test other systems but with the same URL.

And connect to only the IP group

If you have to test something, do not put that member as part of original pool.

But rather, create another pool for testing and use datagroup for whitelisting your IP, so that only you can access it.

Other should be landing to the original pool where 3 members alone are put.

when CLIENT_ACCEPTED {
    if { [class match [IP::client_addr] equals your_DGL] } { 
        pool testing_pool_name
    } else { 
        pool original_pool
    }
}

Why not move the single pool member to a separate pool ? You can also explore priority groups.

Thank you for answer.

I want to know it can be done? if in same pool.

Thank you for example

I want to know it can be done? if in same pool. i try tested according your script it work thank you again.

I try this script as below, but function else it will select only 1 member to connect, not distributing traffic to other member

when CLIENT_ACCEPTED {
        if { [IP::addr [IP::client_addr] equals 10.1.1.x/24] } { 
            pool my_pool member 192.168.1.1 80
        } else { 
            [pool my_pool member 192.168.1.2 80] or [pool my_pool member 192.168.1.3 80] or [pool my_pool member 192.168.1.4 80]
        }
    }