<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:±¼¸²
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hello keycloak users,<br>Not sure this is a correct way to ask question in User Forum.<br><br>We're using keyclock 1.5 for production as single node, it works well.<br>We're trying to make HA clustering with 2 nodes, but doesn't work.<br>just following keycloak user guide (http://keycloak.github.io/docs/userguide/keycloak-server/pdf/keycloak-reference-guide-en-US.pdf) Chapter 29. Clustering.<br>how to start is<br>/opt/keycloak-1.5.0.Final/keycloak/bin/standalone.sh --server-config=standalone-keycloak-ha.xml -Djboss.bind.address=`hostname -i` & <br>or<br>/opt/keycloak-1.5.0.Final/keycloak/bin/standalone.sh --server-config=standalone-keycloak-ha.xml -Djboss.bind.address=`hostname -i` -bpublic=`hostname -i` -bprivate=`hostname -i` & <br><br>standalone-keycloak-ha.xml or standalone-ha.xml, the same results.<br><br>keyclock process is up and running on 2 nodes, but no log for clustering when it starts up.<br>and Admin console login is failed.<br><br>18:02:59,625 WARN [org.keycloak.events] (default task-21) type=CODE_TO_TOKEN_ERROR, realmId=master, clientId=security-admin-console, userId=null, ipAddress=10.x.x.113, error=invalid_code, code_id=c4f010be-9747-4b8a-a7be-e44f9bc1e3bf, client_auth_method=client-secret<br>18:03:51,482 WARN [org.keycloak.events] (default task-6) type=LOGIN_ERROR, realmId=master, clientId=null, userId=null, ipAddress=10.x.x.113, error=invalid_code<br><br>my questions for HA clustering is<br>1) how 2 nodes recognize each other? there is no configuration for that except sessions cache of infinispan/Keycloak container<br>2) any good example of standalone-keycloak-ha.xml for 2 nodes clustering.<br><br><br><div>
<div>
<div>
Thanks<br>Best Regards, MoonY<br>
<div>
<hr>
</div>
<div><font style="font-size:10pt;" face="Calibri" size="2"></font><br>
<div></div>
<hr>
</div></div></div></div>                                            </div></body>
</html>