Re: how often to bind and unbind to ldap
Doug Wegscheid <[email protected]> Wed, 23 Jul 2014 05:11:30 -0700
| Newsgroups | gmane.comp.lang.perl.modules.ldap |
|---|---|
| Message-ID | <[email protected]> |
---1540918134-301136789-1406117490=:61792 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable it depends on how often you are doing the searches.=0A=0AI have one (vendor= -written) application that occasionally decides to do a half million querie= s over 36 hours. It does a separate bind and unbind for each, and as the LD= AP system administrator, I really wish it would bind once then do the queri= es.=0A=0AI also have applications that make connections and do not use them= for hours on end. They tie up resources, and the dead-connection monitor o= n our load balancer and on the LDAP server tend to kill the connections whe= n not in use that long.=0A=0AIf it's going less often than between every 15= -60s, then I'd set up and tear down for every batch of searches...=0A=0A=0A= =0AOn Wednesday, July 23, 2014 4:22 AM, Daniel Castro <[email protected]>= wrote:=0A =0A=0A=0AHello Guys,=0A=0AI wrote a script that runs as a system= process. If I do constant searches on the LDAP server how often should I b= ind and unbind from the server.=0A=0AShould I do only one and maintain it. = But what about if it disconnects due to inactivity during the night. Can I = simply bind again on the same object?=0A=0AOr should I bind, then search, t= hen unbind each time?=0A=0AAdvice?=0A=0AThanks,=0A=0A-- =0A+-=3D=3D=3D=3D= =3D---------------------------+=0A| +---------------------------------+ | T= his space intentionally blank for notetaking.=0A| |=A0=A0 | Daniel Castro,= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 | =0A| |=A0=A0 | Consultant/Programmer.|=0A= | |=A0=A0 | U Andes=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0 |=0A+= -------------------------------------+ ---1540918134-301136789-1406117490=:61792 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable <html><body><div style=3D"color:#000; background-color:#fff; font-family:He= lveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, = Lucida Grande, sans-serif;font-size:10pt"><div><span>it depends on how ofte= n you are doing the searches.</span></div><div style=3D"color: rgb(0, 0, 0)= ; font-size: 13.3333px; font-family: HelveticaNeue-Light,Helvetica Neue Lig= ht,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-colo= r: transparent; font-style: normal;"><br><span></span></div><div style=3D"c= olor: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue-Light,= Helvetica Neue Light,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-seri= f; background-color: transparent; font-style: normal;"><span>I have one (ve= ndor-written) application that occasionally decides to do a half million qu= eries over 36 hours. It does a separate bind and unbind for each, and as th= e LDAP system administrator, I really wish it would bind once then do the queries.</span></div><div style=3D"color: rgb(0, 0, 0); font-size: 13.3333= px; font-family: HelveticaNeue-Light,Helvetica Neue Light,Helvetica Neue,He= lvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font= -style: normal;"><br><span></span></div><div style=3D"color: rgb(0, 0, 0); = font-size: 13.3333px; font-family: HelveticaNeue-Light,Helvetica Neue Light= ,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color:= transparent; font-style: normal;"><span>I also have applications that make= connections and do not use them for hours on end. They tie up resources, a= nd the dead-connection monitor on our load balancer and on the LDAP server = tend to kill the connections when not in use that long.</span></div><div st= yle=3D"color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeu= e-Light,Helvetica Neue Light,Helvetica Neue,Helvetica,Arial,Lucida Grande,s= ans-serif; background-color: transparent; font-style: normal;"><br><span></span></div><div style=3D"color: rgb(0, 0, 0); font-si= ze: 13.3333px; font-family: HelveticaNeue-Light,Helvetica Neue Light,Helvet= ica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transp= arent; font-style: normal;"><span>If it's going less often than between eve= ry 15-60s, then I'd set up and tear down for every batch of searches...<br>= </span></div> <div class=3D"qtdSeparateBR"><br><br></div><div style=3D"disp= lay: block;" class=3D"yahoo_quoted"> <div style=3D"font-family: HelveticaNe= ue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Gr= ande, sans-serif; font-size: 10pt;"> <div style=3D"font-family: HelveticaNe= ue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size:= 12pt;"> <div dir=3D"ltr"> <font face=3D"Arial" size=3D"2"> On Wednesday, J= uly 23, 2014 4:22 AM, Daniel Castro <[email protected]> wrote:<br> = </font> </div> <br><br> <div class=3D"y_msg_container"><div id=3D"yiv26898= 57999"><div dir=3D"ltr">Hello Guys,<div><br></div><div>I wrote a script that runs as a= system process. If I do constant searches on the LDAP server how often sho= uld I bind and unbind from the server.</div><div><br></div><div>Should I do= only one and maintain it. But what about if it disconnects due to inactivi= ty during the night. Can I simply bind again on the same object?</div>=0A<d= iv><br></div><div>Or should I bind, then search, then unbind each time?</di= v><div><br></div><div>Advice?</div><div><br></div><div>Thanks,<br clear=3D"= all"><div><br></div>-- <br>+-=3D=3D=3D=3D=3D---------------------------+<br= >| +---------------------------------+ | This space intentionally blank for= notetaking.<br>=0A| | | Daniel Castro, &nb= sp; | <br>| | | Consultant/Programm= er.|<br>| | | U Andes = |<br>+---------------------= ----------------+<br>=0A</div></div></div><br><br></div> </div> </div> </= div> </div></body></html> ---1540918134-301136789-1406117490=:61792--