-
1. Re: Hotrod server distributed mode
galder.zamarreno Aug 20, 2012 12:38 PM (in response to chavarao)You don't really care which of the servers it connects to. If they're clustering, you can only give one address, and from it it'll detect the others.
-
2. Re: Hotrod server distributed mode
chavarao Aug 20, 2012 8:06 PM (in response to galder.zamarreno)Hi Galder,
may be I am misunderstanding how Hotrod sever clusterting and hot rod client works?
HotRod client properties we specify infinispan.client.hotrod.server_list which are hottodsever1 , hottodsever2 and they form cluster using jgroups because they are on same network.
hottodsever1 is running on one machine and hottodsever2 running on another machine.
When hottodsever1 is down hot rod client automatically connects to hottodsever2 vice versa?
Is this correct?
Thanks
-
3. Re: Hotrod server distributed mode
galder.zamarreno Aug 21, 2012 12:16 PM (in response to chavarao)Yeah, that is correct. The client will handle load balancing and failover automatically. It goes further: if a new node joins the cluster, the Hot Rod client will be notified with this new node, to be able to send requests to it.
-
4. Re: Hotrod server distributed mode
chavarao Aug 21, 2012 1:23 PM (in response to galder.zamarreno)Is there any way I can tell Hot Rod Client to use one HotRodserver and if its down go to another another one?
How HotRod client know which server to use first ?
When you say new node added to cluster that means new hotrodserver ? If yes, Why we need to specify server list in hot rod client if automatically detects the new nodes(servers) ?
btw- I am using distributed clustering mode.
Thank you
-
5. Re: Hotrod server distributed mode
galder.zamarreno Aug 23, 2012 2:58 AM (in response to chavarao)Nag Ch wrote:
Is there any way I can tell Hot Rod Client to use one HotRodserver and if its down go to another another one?
To reiterate, it already does that by default...
How HotRod client know which server to use first ?
Normally first in list, Then if replication, round robin on the cluster members, and with distribution, according to the hashing algorithm results.
When you say new node added to cluster that means new hotrodserver ? If yes, Why we need to specify server list in hot rod client if automatically detects the new nodes(servers) ?
The servers might not be clustered... anyway, if they're gonna be clustered, you just need to give the client one of the addresses of the cluster and the rest will be discovered automatically
-
6. Re: Hotrod server distributed mode
chavarao Aug 24, 2012 11:53 AM (in response to galder.zamarreno)Hi Galder,
When do we need multiple server list specified in hot rod client ?
If I am understanding it correctly , we speciify only one server address in hot rod client if servers are clustered using distributed mode.(Running on same network)
If servers are not clustered may be due to running on different network then we need to specify both server address in hot rod client.
In both cases above hot client find server node using hashing algorithm in case of distributed mode?
I need high availabilty thats I am using distrubtion so that one server down it au
Thank you.
-
7. Re: Hotrod server distributed mode
galder.zamarreno Aug 27, 2012 5:51 AM (in response to chavarao)Nag Ch wrote:
Hi Galder,
When do we need multiple server list specified in hot rod client ?
As I said above, when the servers are NOT clustered.
In both cases above hot client find server node using hashing algorithm in case of distributed mode?
When servers are not clustered, there's no distribution, so no.