hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohit Anchlia <mohitanch...@gmail.com>
Subject Re: Load balancing
Date Thu, 17 Jun 2010 20:37:36 GMT
On Thu, Jun 17, 2010 at 1:32 PM, Ken Krugler
<kkrugler_lists@transpac.com> wrote:
>
> On Jun 17, 2010, at 1:28pm, Mohit Anchlia wrote:
>
>> We have multiple data center and we load balance our clients accross 2
>> data centers. Basically virtual ip could return different IP on every
>> DNS lookup. But the problem is that when we run test it gets
>> connection to one site and then it sticks to that site. I think it may
>> be because of connection pooling.
>
> If you have a load balancer, most are configured for "sticky sessions" based
> on the IP address of the incoming request.

But if I can somehow do a DNS lookup each time then it doesn't matter
if there is a sticky session. How can I perform DNS lookup each time
without worrying about existing connection being used or not.

>
> That way if you're in the middle of upgrading data/code on the load balanced
> servers, for example, the user doesn't get inconsistent results.
>
> -- Ken
>
>>
>> How do I turn off the connection pooling such that it gets the
>> connection everytime. We have tried "releaseConnection" and
>> closeIdleconnections but nothing seem to work.
>>
>> Are there any other suggestions?
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
>> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>>
>
> --------------------------------------------
> Ken Krugler
> +1 530-210-6378
> http://bixolabs.com
> e l a s t i c   w e b   m i n i n g
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message