Can you check if your cluster if being formed? You can grep the word "view"
in Keycloak's logs.
On Fri, Aug 31, 2018 at 3:16 AM, Piotr Wojcieszonek <
p.wojcieszonek(a)bosmanager.com> wrote:
Yes I did:
<distributed-cache name="sessions" mode="SYNC"
owners="2"/>
<distributed-cache name="authenticationSessions"
mode="SYNC" owners="2"/>
<distributed-cache name="offlineSessions"
mode="SYNC"
owners="2"/>
<distributed-cache name="clientSessions"
mode="SYNC"
owners="2"/>
<distributed-cache name="offlineClientSessions"
mode="SYNC" owners="2"/>
<distributed-cache name="loginFailures"
mode="SYNC"
owners="2”/>
I have two node cluster.
Wiadomość napisana przez Rafael Weingärtner <rafaelweingartner(a)gmail.com>
w dniu 31.08.2018, o godz. 03:01:
Did you configure the "owners" parameter in the standalone-ha.xml with a
value bigger than 1?
On Thu, Aug 30, 2018 at 5:06 PM, Piotr Wojcieszonek <
p.wojcieszonek(a)bosmanager.com> wrote:
> Hi,
> I have problem with standalone cluster. After cluster start working it
> begin to print that kind of information to log file:
>
> 2018-08-30 22:04:33,725 WARN
[org.infinispan.expiration.impl.ClusterExpirationManager]
> (expiration-thread--p22-t1) ISPN000026: Caught exception purging data
> container!: org.infinispan.util.concurrent.TimeoutException: Replication
> timeout for authservice1
> at org.infinispan.remoting.transport.jgroups.JGroupsTransport.
> checkRsp(JGroupsTransport.java:827)
> at org.infinispan.remoting.transport.jgroups.JGroupsTransport.
> lambda$invokeRemotelyAsync$0(JGroupsTransport.java:628)
> at java.util.concurrent.CompletableFuture.uniApply(CompletableF
> uture.java:602)
> at java.util.concurrent.CompletableFuture$UniApply.tryFire(
> CompletableFuture.java:577)
> at java.util.concurrent.CompletableFuture.postComplete(Completa
> bleFuture.java:474)
> at java.util.concurrent.CompletableFuture.complete(CompletableF
> uture.java:1962)
> at org.infinispan.remoting.transport.jgroups.SingleResponseFutu
> re.call(SingleResponseFuture.java:46)
> at org.infinispan.remoting.transport.jgroups.SingleResponseFutu
> re.call(SingleResponseFuture.java:17)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFu
> tureTask.access$201(ScheduledThreadPoolExecutor.java:180)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFu
> tureTask.run(ScheduledThreadPoolExecutor.java:293)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
> Executor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
> lExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
>
> 2018-08-30 22:04:39,966 ERROR
[org.infinispan.interceptors.InvocationContextInterceptor]
> (Timer-2) ISPN000136: Error executing command PutKeyValueCommand, writing
> keys [task::ClearExpiredClientInitialAccessTokens]:
> org.infinispan.util.concurrent.TimeoutException: Replication timeout for
> authservice1
> at org.infinispan.remoting.transport.jgroups.JGroupsTransport.
> checkRsp(JGroupsTransport.java:827)
> at org.infinispan.remoting.transport.jgroups.JGroupsTransport.
> lambda$invokeRemotelyAsync$0(JGroupsTransport.java:628)
> at java.util.concurrent.CompletableFuture.uniApply(CompletableF
> uture.java:602)
> at java.util.concurrent.CompletableFuture$UniApply.tryFire(
> CompletableFuture.java:577)
> at java.util.concurrent.CompletableFuture.postComplete(Completa
> bleFuture.java:474)
> at java.util.concurrent.CompletableFuture.complete(CompletableF
> uture.java:1962)
> at org.infinispan.remoting.transport.jgroups.SingleResponseFutu
> re.call(SingleResponseFuture.java:46)
> at org.infinispan.remoting.transport.jgroups.SingleResponseFutu
> re.call(SingleResponseFuture.java:17)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFu
> tureTask.access$201(ScheduledThreadPoolExecutor.java:180)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFu
> tureTask.run(ScheduledThreadPoolExecutor.java:293)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
> Executor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
> lExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
>
> 2018-08-30 22:04:52,605 ERROR
[org.infinispan.interceptors.InvocationContextInterceptor]
> (Timer-2) ISPN000136: Error executing command PutKeyValueCommand, writing
> keys [task::ClearExpiredClientInitialAccessTokens]:
> org.infinispan.util.concurrent.TimeoutException: Replication timeout for
> authservice1
> at org.infinispan.remoting.transport.jgroups.JGroupsTransport.
> checkRsp(JGroupsTransport.java:827)
> at org.infinispan.remoting.transport.jgroups.JGroupsTransport.
> lambda$invokeRemotelyAsync$0(JGroupsTransport.java:628)
> at java.util.concurrent.CompletableFuture.uniApply(CompletableF
> uture.java:602)
> at java.util.concurrent.CompletableFuture$UniApply.tryFire(
> CompletableFuture.java:577)
> at java.util.concurrent.CompletableFuture.postComplete(Completa
> bleFuture.java:474)
> at java.util.concurrent.CompletableFuture.complete(CompletableF
> uture.java:1962)
> at org.infinispan.remoting.transport.jgroups.SingleResponseFutu
> re.call(SingleResponseFuture.java:46)
> at org.infinispan.remoting.transport.jgroups.SingleResponseFutu
> re.call(SingleResponseFuture.java:17)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFu
> tureTask.access$201(ScheduledThreadPoolExecutor.java:180)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFu
> tureTask.run(ScheduledThreadPoolExecutor.java:293)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
> Executor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
> lExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
>
> And in time it start to work very slow.
> What can by a reason for that?
>
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/keycloak-user
>
--
Rafael Weingärtner