# Experience of "Cross-Datacenter Replication Mode" in production environment?

**URL:** <https://forum.keycloak.org/t/experience-of-cross-datacenter-replication-mode-in-production-environment/10342>\
**Category:** Miscellanaeous\
**Created:** [August 2, 2021, 6:16am UTC](https://forum.keycloak.org/t/experience-of-cross-datacenter-replication-mode-in-production-environment/10342 "2021-08-02T06:16:18Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![efimovms](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/efimovms/32/1377_2.png) [@efimovms](https://forum.keycloak.org/u/efimovms)\
**Post date:** [August 6, 2021, 11:35am UTC](https://forum.keycloak.org/t/experience-of-cross-datacenter-replication-mode-in-production-environment/10342/4 "2021-08-06T11:35:30Z")

</div>

As I mentioned, we failed to set this mode in accordance with Keycloak documentation, so we have chosen our own path and the performance is good for our case.  
Regarding your second question, Keycloak does not guarantee zero-downtime upgrades regardless of the architecture you are using. [11.0.3 to 12.0.1 Upgrade fails - #5 by dasniko](http://forum.keycloak.org/t/11-0-3-to-12-0-1-upgrade-fails/6730/5). E.g. we cannot upgrade from 11.x to 12.x version without losing all authenticated sessions. We are performing zero-downtime upgrades while staying on the 11.x version. We drain traffic from one region, upgrade that region, swap traffic to the upgraded region and upgrade the second region. Each region has a cluster of 3 Keycloak nodes. Cross-region infinispan caches replication is enabled by setting this option: `CACHE_OWNERS_COUNT=4`, so at least one copy of the cache stores in another region.

---

_[View the full topic](https://forum.keycloak.org/t/experience-of-cross-datacenter-replication-mode-in-production-environment/10342)._
