# Recover from site failures with a Multi-Site Setup

DevFeed: [Recover from site failures with a Multi-Site Setup](<https://devfeed.tech/articles/recover-from-site-failures-with-a-multi-site-setup-31630.md>)

Original publisher: [Read original article](<https://www.keycloak.org/2023/12/recover-site-failures>)

Author: Alexander Schwartz, Kamesh Akella

Published: 2023-12-18T00:00:00Z

Content type: article

Language: en

Sources: [Keycloak Blog](<https://devfeed.tech/sources/keycloak-blog.md>)

Topics: [Keycloak](<https://devfeed.tech/topics/keycloak.md>), [Availability](<https://devfeed.tech/topics/availability.md>), [Architecture & Design](<https://devfeed.tech/topics/architecture-design.md>), [cloud-infrastructure](<https://devfeed.tech/topics/cloud-infrastructure.md>), [Testing](<https://devfeed.tech/topics/testing.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [availability](<https://devfeed.tech/tags/availability.md>), [cloud-infrastructure](<https://devfeed.tech/tags/cloud-infrastructure.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [high-availability](<https://devfeed.tech/tags/high-availability.md>), [idm](<https://devfeed.tech/tags/idm.md>), [kerberos](<https://devfeed.tech/tags/kerberos.md>), [keycloak](<https://devfeed.tech/tags/keycloak.md>), [ldap](<https://devfeed.tech/tags/ldap.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [openid-connect](<https://devfeed.tech/tags/openid-connect.md>), [saml](<https://devfeed.tech/tags/saml.md>), [sso](<https://devfeed.tech/tags/sso.md>), [testing](<https://devfeed.tech/tags/testing.md>)

## AI overview

The article describes updated Keycloak 23 documentation and cloud blueprints for deploying Keycloak in multi-site configurations. It covers active-passive architecture, external databases, resource tuning, AWS deployment procedures, and open-source tools used for performance, scalability, chaos, and regression testing.

## Source excerpt

For a Customer Identity and Access Management (CIAM) system, high availability is essential as it is a single point for all systems where customers log in. For Keycloak 23, there is a new and updated High Availability guide describing multi-site setups. With detailed instructions and blueprints targeting cloud infrastructure, this is documented, tested, and ready to be tried out. Read on to find out what is new, and take a peek behind the scenes how this setup has been evaluated, tested and improved. And finally, we are providing an outlook when this will no longer be a preview feature. Improved documentation and new blueprints The recent updates to Keycloak's multi-site setup mark a significant milestone. Keycloak 23 includes an opinionated guide on setting up Keycloak in a multi-site configuration including blueprints for a cloud setup. The high-level topics of this documentation are: Concept and building block overview These guides include step-by-step instructions to bring up different components of the Keycloak multi-site architecture such as: What does an active-passive setup with Keycloak architecture look like? How to use an external database? How to tune the resources for each of these architectural components? Blueprints for building blocks A series of guides around how to deploy Keycloak in various configurations on Amazon Web Service. Operational procedures These guides include detailed operational procedures, ensuring that users can set up and operate their multi-site Keycloak instances efficiently. Validation of the multi-site setup Before we published the guides above, we worked on the tooling that allows us both experimenting and getting reproducible results for performance, scalability and chaos testing our solution. With these tools, we tested first a single-site setup, and once that worked sufficiently well, also a multi-site setup. All these tools are available as open source, and we invite you to review them to give us feedback, and use them in