[keycloak-user] Rebalancing problem while adding a new node to a domain

Marek Posolda mposolda at redhat.com
Wed May 17 15:59:09 EDT 2017


If you look at domain/configuration/domain.xml you can see that under 
loadbalancer sections there are just 2 servers configured. You may need 
to add another one.

BTV. For production setup, it will be better to replace the default 
undertow reverse-proxy loadbalancer with some better solution. That 
default loadbalancer doesn't even have support for failover AFAIK. For 
example mod_cluster, which is able to detect nodes automatically when 
they join cluster. More info in our documentations.

Marek

On 17/05/17 12:39, Elnaz razmi wrote:
> hello
> please help me about this problem:
>
> We choose to install domain mode keycloak in our company. We have a load
> balancer and three slave nodes. It's working properly with two active node
> but when we want to run the third node to connect to load balancer, load
> balancer don't rebalance with new node. It just say that node is regestered
> but it don't show these lines as we can see in other node connect process :
>
> [org.infinispan.CLUSTER] (remote-thread--p8-t45) ISPN000310: Starting
> cluster-wide rebalance for cache work, topology CacheTopology{id=3,
> rebalanceId=2, currentCH=ReplicatedConsistentHash{ns = 60, owners =
> (2)[master:server-one-master: 30, srvca61-site232:server-threeslave: 30]},
> pendingCH=ReplicatedConsistentHash{ns = 60, owners =
> (3)[master:server-one-master: 20, srvca61-site232:server-threeslave: 20,
> srvca61-site231:server-twoslave: 20]}, unionCH=null,
> actualMembers=[master:server-one-master, srvca61-site232:server-threeslave,
> srvca61-site231:server-twoslave]}
> [org.infinispan.CLUSTER] (remote-thread--p8-t44) ISPN000310: Starting
> cluster-wide rebalance for cache loginFailures, topology
> CacheTopology{id=3, rebalanceId=2, currentCH=DefaultConsistentHash{ns=80,
> owners = (2)[master:server-one-master: 40+0,
> srvca61-site232:server-threeslave: 40+0]},
> pendingCH=DefaultConsistentHash{ns=80, owners =
> (3)[master:server-one-master: 27+0, srvca61-site232:server-threeslave:
> 27+0, srvca61-site231:server-twoslave: 26+0]}, unionCH=null,
> actualMembers=[master:server-one-master, srvca61-site232:server-threeslave,
> srvca61-site231:server-twoslave]}
> [org.infinispan.CLUSTER] (remote-thread--p8-t42) ISPN000310: Starting
> cluster-wide rebalance for cache authorization, topology
> CacheTopology{id=3, rebalanceId=2, currentCH=DefaultConsistentHash{ns=80,
> owners = (2)[master:server-one-master: 40+0,
> srvca61-site232:server-threeslave: 40+0]},
> pendingCH=DefaultConsistentHash{ns=80, owners =
> (3)[master:server-one-master: 27+0, srvca61-site232:server-threeslave:
> 27+0, srvca61-site231:server-twoslave: 26+0]}, unionCH=null,
> actualMembers=[master:server-one-master, srvca61-site232:server-threeslave,
> srvca61-site231:server-twoslave]}
> [org.infinispan.CLUSTER] (remote-thread--p8-t39) ISPN000310: Starting
> cluster-wide rebalance for cache sessions, topology CacheTopology{id=3,
> rebalanceId=2, currentCH=DefaultConsistentHash{ns=80, owners =
> (2)[master:server-one-master: 40+0, srvca61-site232:server-threeslave:
> 40+0]}, pendingCH=DefaultConsistentHash{ns=80, owners =
> (3)[master:server-one-master: 27+0, srvca61-site232:server-threeslave:
> 27+0, srvca61-site231:server-twoslave: 26+0]}, unionCH=null,
> actualMembers=[master:server-one-master, srvca61-site232:server-threeslave,
> srvca61-site231:server-twoslave]}
> [org.infinispan.CLUSTER] (remote-thread--p8-t43) ISPN000310: Starting
> cluster-wide rebalance for cache offlineSessions, topology
> CacheTopology{id=3, rebalanceId=2, currentCH=DefaultConsistentHash{ns=80,
> owners = (2)[master:server-one-master: 40+0,
> srvca61-site232:server-threeslave: 40+0]},
> pendingCH=DefaultConsistentHash{ns=80, owners =
> (3)[master:server-one-master: 27+0, srvca61-site232:server-threeslave:
> 27+0, srvca61-site231:server-twoslave: 26+0]}, unionCH=null,
> actualMembers=[master:server-one-master, srvca61-site232:server-threeslave,
> srvca61-site231:server-twoslave]}
> [org.infinispan.CLUSTER] (remote-thread--p8-t42) ISPN000336: Finished
> cluster-wide rebalance for cache offlineSessions, topology id = 3
> [org.infinispan.CLUSTER] (remote-thread--p8-t42) ISPN000336: Finished
> cluster-wide rebalance for cache authorization, topology id = 3
> [org.infinispan.CLUSTER] (remote-thread--p8-t42) ISPN000336: Finished
> cluster-wide rebalance for cache loginFailures, topology id = 3
> [org.infinispan.CLUSTER] (remote-thread--p8-t45) ISPN000336: Finished
> cluster-wide rebalance for cache work, topology id = 3
> [org.infinispan.CLUSTER] (remote-thread--p8-t45) ISPN000336: Finished
> cluster-wide rebalance for cache sessions, topology id = 3
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user




More information about the keycloak-user mailing list