Forum Discussion
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
}
- Yoann_Le_Corvi1
Cumulonimbus
Hi,
What is the Load Balancing method configured for this pool ? This may have an impact on the behaviour.
Yoann
- mg2Bsecure
Nimbostratus
least connections
- Yoann_Le_Corvi1
Cumulonimbus
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
- Yoann_Le_Corvi1
Cumulonimbus
Hi
Just tried, and seems OK on 14.1.0.3.
Also check if you are not impacted by this : https://support.f5.com/csp/article/K52011109
Yoann
- mg2Bsecure
Nimbostratus
thank you for your help
by seems OK you mean the iRule is working?
- Yoann_Le_Corvi1
Cumulonimbus
No.
I implemented the limit on a pool, it it goes "Yellow" when limit is reached. So wihtoug iRule, the limitation is working...
Yoann
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com