Connection Limit iRule vs Pool member connection limit

Hi,

for some reason a pool member connection limit (set to 1) still lets another user connect to RDP. Only when an iRule is applied, it drops additional connections.

Can someone help?

the Rule follows:

--

when RULE_INIT {

set ::active_connections 0

set ::max_connections 1

}

when CLIENT_ACCEPTED {

if {$::active_connections > $::max_connections } {

set over_limit 1

} else {

incr ::active_connections 1

}

}

when USER_REQUEST {

if {$over_limit}{

TCP::respond “connection busy command\r\n”

TCP::close

}

}

when CLIENT_CLOSED {

incr ::active_connections -1

}

Hi,

What is the Load Balancing method configured for this pool ? This may have an impact on the behaviour.

Yoann

least connections

OK.

Normally the behaviour change is more related to Weighted least connection. Can you give it a go with Round Robin for example to see if you still have the same thing. Just to try to identify precisely the issue…

Yoann

Hi

Just tried, and seems OK on 14.1.0.3.

Also check if you are not impacted by this : myF5

Yoann

thank you for your help

by seems OK you mean the iRule is working?

No.

I implemented the limit on a pool, it it goes “Yellow” when limit is reached. So wihtoug iRule, the limitation is working…

Yoann