# Master and Slave servers reporting different settings for same Realm in Keycloak console

**URL:** <https://forum.keycloak.org/t/master-and-slave-servers-reporting-different-settings-for-same-realm-in-keycloak-console/1635>\
**Category:** Getting advice\
**Created:** [March 10, 2020, 4:10pm UTC](https://forum.keycloak.org/t/master-and-slave-servers-reporting-different-settings-for-same-realm-in-keycloak-console/1635 "2020-03-10T16:10:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sagardesai0094](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@sagardesai0094](https://forum.keycloak.org/u/sagardesai0094)\
**Post date:** [March 10, 2020, 4:10pm UTC](https://forum.keycloak.org/t/master-and-slave-servers-reporting-different-settings-for-same-realm-in-keycloak-console/1635/1 "2020-03-10T16:10:17Z")

</div>

Hello,  
I am running Keycloak in cluster mode with 1 master and 1 slave. Both have been configure with the same database URL, and the slave is able to connect to the master. When I log in and change settings (like the Realm display name), they are not propagated correctly. I have one session connected to the master, and one session connected to the slave. When I save settings on the master, the slave session doesn’t report the updated settings. I am not sure where to start debugging this. I have checked the domain.xml on both instances and the datasources are identical (pretty much the whole config directory is the same, only the startup arguments are different). Any ideas?

Thanks

---

<div class="post-metadata">

**Author:** ![sagardesai0094](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@sagardesai0094](https://forum.keycloak.org/u/sagardesai0094)\
**Post date:** [March 11, 2020, 3:19pm UTC](https://forum.keycloak.org/t/master-and-slave-servers-reporting-different-settings-for-same-realm-in-keycloak-console/1635/2 "2020-03-11T15:19:41Z")

</div>

Tried setting up 2 instances in standalone-ha mode instead, and I am still seeing the same behaviour. Is there anything else I need to configure for the changes to be persisted properly and synchronized between the two instances?

---

<div class="post-metadata">

**Author:** ![sagardesai0094](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@sagardesai0094](https://forum.keycloak.org/u/sagardesai0094)\
**Post date:** [March 12, 2020, 4:12pm UTC](https://forum.keycloak.org/t/master-and-slave-servers-reporting-different-settings-for-same-realm-in-keycloak-console/1635/3 "2020-03-12T16:12:54Z")

</div>

My issue turned out to be due to the local cache not being invalidated on all servers in the cluster when I updated settings. This was ultimately because I am running everything in an AWS VPC, and multicast is not supported in that environment (which is what’s used to send the invalidation messages to all the servers in the cluster).
