Actually I am thinking if I did InetAddress.getByHostName and used the
IP that should work.

On Thu, Jun 17, 2010 at 1:37 PM, Mohit Anchlia <[email protected]> wrote:
> On Thu, Jun 17, 2010 at 1:32 PM, Ken Krugler
> <[email protected]> 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: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>
>> --------------------------------------------
>> 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: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to