Hi, currently I’am configuring the keycloak for the production. For this I want to run keycloak in cluster mode using TCPPING.
In this I have 2 AWS EC2 servers on which I’am running docker containers for keycloak using the image “ivanfranchin/keycloak-clustered”.
I have also added the below environement variables in the docker configuration according to information given in this link https://www.keycloak.org/2019/05/keycloak-cluster-setup:
KEYCLOAK SERVER: 1
#IP address of this host, please make sure this IP can be accessed by the other Keycloak instances
JGROUPS_DISCOVERY_EXTERNAL_IP=172.31.140.50
#protocol
JGROUPS_DISCOVERY_PROTOCOL=TCPPING
#IP and Port of all host
JGROUPS_DISCOVERY_PROPERTIES=initial_hosts=“172.31.140.50[7600],172.31.140.62[7600]”
KEYCLOAK SERVER: 2
#IP address of this host, please make sure this IP can be accessed by the other Keycloak instances
JGROUPS_DISCOVERY_EXTERNAL_IP=172.31.140.62
#protocol
JGROUPS_DISCOVERY_PROTOCOL=TCPPING
#IP and Port of all host
JGROUPS_DISCOVERY_PROPERTIES=initial_hosts=“172.31.140.50[7600],172.31.140.62[7600]”
The problem is that the two keycloak containers running on different host servers cannot discover each other. I have also opened up all ports between them for accessing. Can anyone please help me on this?