# High availability for everyone with multi-site Red Hat build of Keycloak on Red Hat OpenShift

DevFeed: [High availability for everyone with multi-site Red Hat build of Keycloak on Red Hat OpenShift](<https://devfeed.tech/articles/high-availability-for-everyone-with-multi-site-red-hat-build-of-keycloak-on-red-hat-openshift-92817.md>)

Original publisher: [Read original article](<https://developers.redhat.com/articles/2026/10/21/high-availability-for-everyone-with-multi-site-red-hat-build-of-keycloak-on-red-hat-openshift>)

Author: Jerczey Godoy

Published: 2026-10-21T13:02:19Z

Content type: article

Language: en

Sources: [Red Hat](<https://devfeed.tech/sources/red-hat.md>), [Red Hat Developer](<https://devfeed.tech/sources/red-hat-developer.md>)

Topics: [Keycloak](<https://devfeed.tech/topics/keycloak.md>), [Availability](<https://devfeed.tech/topics/availability.md>), [redhat](<https://devfeed.tech/topics/redhat.md>), [Load Balancing](<https://devfeed.tech/topics/load-balancing.md>)

Tags: [authentication](<https://devfeed.tech/tags/authentication.md>), [availability](<https://devfeed.tech/tags/availability.md>), [azure](<https://devfeed.tech/tags/azure.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [enterprise](<https://devfeed.tech/tags/enterprise.md>), [high-availability](<https://devfeed.tech/tags/high-availability.md>), [iam](<https://devfeed.tech/tags/iam.md>), [identity-and-access-management](<https://devfeed.tech/tags/identity-and-access-management.md>), [keycloak](<https://devfeed.tech/tags/keycloak.md>), [openshift](<https://devfeed.tech/tags/openshift.md>), [security](<https://devfeed.tech/tags/security.md>)

## AI overview

Starting with Red Hat build of Keycloak 26.4, stateless multi-site HA supports fallback deployments across independent OpenShift clusters using supported databases and load balancers. It stores cross-site session data in a shared, consistent database while keeping Infinispan caches local, and uses one public OIDC issuer plus `/lb-check` probes so an external load balancer can route around a degraded site. A local two-site proof of concept used synchronous PostgreSQL replication and HAProxy; when Site A's Keycloak instances were stopped, traffic moved to Site B and the tested SPA session and token refresh continued without interruption. The excerpt also reports successful authorization-code-with-PKCE and RFC 8693 token-exchange failover tests. Setup findings include matching the public hostname and issuer across sites, specifying custom ports in the hostname configuration, and disabling OpenShift router stickiness. The demonstration was a LAN lab; it does not establish production performance or requirements.

## Source excerpt

Identity and access management (IAM) is at the very core of your enterprise's runtime infrastructure. When authentication services fail, otherwise healthy application workloads instantly lock up, blocking users and disconnecting platform services. But high-availability setups for these services have historically been operationally complex, rigid, and restricted to heavy cloud architectures. The post High availability for everyone with multi-site Red Hat build of Keycloak on Red Hat OpenShift appeared first on Red Hat Developer.