Hi,
Well your problem can have multiple explanations :
Do you remove the down host IP from the DNS list ? Otherwise DNS server
will continue to use it.
DNS resolution can be cached somewhere. (see networkaddress.cache in Java
properties)
I doubt that this could be a MINA issue.
Regards,
JYL


2012/12/18 Suhas Sutar <[email protected]>

> Hi,
>
> I am using Mina as TCP client in my TCP proxy application. It is a very
> simple application where mobile devices communicate with my TCP proxy with
> a proprietary protocol and the proxy handles TCP communication with target
> servers on behalf of the mobile devices.
>
> An issue is reported in an environment which includes DNS (round robin)
> based load balancing. The target server is a pool of two hosts configured
> with same host name to multiple IPs in the DNS server.
>
> In my test, I see that when both hosts are up and running, MINA always
> sticks to one IP for most of the requests. When I bring down that host, I
> was expecting it to use the other host IP and continue serving the
> requests. But it did not do so.
>
> I do not think it is MINA issue as JVM handles the DNS lookups. Should JVM
> identify that a given IP in a pooled pair is inaccessible before letting
> MINA use it? Should the unavailability of one IP from the pool be handled
> automatically by JVM or MINA or application code need to handle it?
>
> My application requests MINA to open a connection using the host name and
> not IP. I assume JVM will internally attempts DNS resolution and return the
> IP for MINA to use.
>
> Is my understanding correct? How can I address this situation?
>
> Thanks
> Suhas
>

Reply via email to