Keycloak clustering in AWS

I am trying to setup keycloak cluster with a shared database in AWS environment. I followed all steps mentioned on this link: https://www.keycloak.org/docs/latest/server_installation/#_standalone-ha-mode Keycloak nodes are two AWS EC2 instances and shared database is AWS RDS. How does the keycloak instances identify each other in cluster in AWS (how does multicast work in a AWS VPC)? Because I’m constantly getting “no members discovered” error after running keycloak on both servers in HA configuration. Has anyone tried this before? Any references or things to take care of list would be great.

1 Like

I am also facing same issue.Can anyone help us out here will appreciate it.

1 Like

Use JDBC ping, as multicast is not supported in AWS EC2
https://developer.jboss.org/docs/DOC-16351

1 Like

@ludimax: It worked! Thanks alot. :smiley: