29-Aug-2016
05:59
- last edited on
28-Nov-2022
15:01
by
JRahm
Hi all,
I am loadbalancing LDAP using the iAPP (11.6.0 HF6). Because a lot of clients are using LDAP via some kind of proxy-server (all have the same IP, but different ports), I would like to set up a peristence using the source IP and the source port.
I am currently using an iRule which is connected to the ldap vs.
when CLIENT_ACCEPTED {
set client_remote "[IP::client_addr]:[TCP::client_port]"
persist hash ($client_remote) 300
log local0. "Connection: Client($client_remote)"
}
The iRule is working fine regarding the loadbalancing itself. My problem ist, that the entrys in the persistence table are not timing out. My table is just getting bigger and bigger.
Why is my timeout not working?
I did some research in devcentral and found out, that the "persist carp" might be a better way. Is that correct?
Thanks in advance for your help
Kind Regards,
Thorsten
29-Aug-2016 06:15
"persist carp" has no timeout and isn't stored in memory, so you won't pin connections to a pool member, rather every request will follow the load balancing method. This may or may not be a problem for your web apps.
29-Aug-2016
06:50
- last edited on
28-Nov-2022
15:03
by
JRahm
29-Aug-2016 23:27
Have experienced problem that persistence table built up the number of entries until LLB ran out of memory, upgrade to version 12.1.0 (from 11.6) solved the problem.
23-Sep-2016 00:44
Hey Guys,
just to let you know:
My LDAP-Loadbalancing is working without any persistence at the moment. I had to increase the idle timeout, but it's working for two days now without experiencing any problems.
Besides I tried the hash-persistence after updating to 12.1.1. and there is no problem with the persistence table any more. The entrys in the persistence table are timing out as expected.
Cheers
Thorsten
23-Sep-2016 00:45
Hi Thorsten,
good to know and thanks for sharing! 😉
Cheers, Kai
06-Oct-2023 07:15
Hello @fat_138651 ,
I know this is an old post and I'm not sure if you're still an active member of the community. I have the same need, to create a persistance profile based off of source IP and source port. Are you still using the same above code or have you switched to something different?