Skip to content
Reliability

Keycloak backups and restore. Patches you won’t notice.

On Premium and Enterprise, your Keycloak runs in two or more replicas on a PostgreSQL primary with a streaming replica, the database can be restored to any second of the last 30 days, and patch upgrades roll through without downtime. Starter runs one replica on a single database instance, with 7 days of restore.

2+Keycloak replicas, clustered
30 daysof point-in-time restore
0downtime for patch upgrades
99.9%monthly uptime SLA on Premium
Backups

Rewind your database to any second of the last 30 days

Changes are archived continuously as write-ahead log, and a full base backup is taken every night. Together they let us restore your database to the moment before a bad import or a deleted realm, not just to last night.

  • Continuous WAL archiving and a nightly base backup
  • Stored in the same cloud and region, in storage of your own: Azure Blob Storage on Azure, Amazon S3 on AWS
  • Kept for 30 days on Premium and Enterprise, 7 days on Starter
  • Restores rehearsed in a separate namespace, away from your live database
Restore window · last 30 daysSample
6 days, 14 h 22 min ago
Nightly base backupContinuous WAL archiveAny second in between can be restored

Backups cover the last 30 days: a base backup every night and the write-ahead log archived continuously in between, so the database can be restored to any moment in that window.

Patch upgrade · 26.8.0 → 26.8.1Sample
keycloak-a26.8.0stops once c is ready
keycloak-b26.8.0stops once d is ready
keycloak-c26.8.1starts first
keycloak-d26.8.1starts once a has stopped
Requests answered 1,240Failed 0

A new pod starts on the new version and becomes ready before an old one stops, so there are always at least as many ready pods as before. Requests keep being answered throughout.

Upgrades

Keycloak patch upgrades without downtime

On Premium and Enterprise, a new pod on the new version starts and becomes ready before an old one stops, so your cluster never has fewer ready pods than before. We rehearse this in CI with live traffic: a request through the gateway every 200 milliseconds during the upgrade and a rollback, and the run fails on a single failed request.

  • A backup before every upgrade, and a way back
  • Minor and major upgrades announced ahead, with a short window
ReleaseExampleHow we roll it outDowntime
Patch26.8.0 → 26.8.1One pod at a time, a new one ready before an old one stopsNone
Minor26.7 → 26.8All pods together, while the database schema migratesA short window we announce ahead
Major26 → 27As a minor upgrade, rehearsed on a staging copy firstA short window we announce ahead
Monitoring

Alerts page our on-call, not yours

We collect metrics on JVM heap, HTTP latency and errors, login events per realm, and PostgreSQL. When something crosses a line, the alert goes to our on-call.

alert rules on every tenant
No ready Keycloak podspage
5xx rate above thresholdpage
WAL archiving failingpage
No base backup in 26 hpage
Certificate expiringwarn → page
JVM heap pressurewarn
Realm error rate highwarn
Volume filling upwarn → page
Dead-man’s switchSample

Our alerting sends a heartbeat every minute. If the heartbeats stop, a separate service alerts us, so a quiet night is never a broken pager.

Commitments

What Premium and Enterprise put in writing

99.9% monthly uptime SLA

On Premium, and 99.95% on Enterprise. A Custom plan can agree its own SLA.

30-day point-in-time restore

Any second in the window, from nightly base backups and the WAL archive.

Announced maintenance

Minor and major upgrades get a window we tell you about ahead.

A monthly health report

A written report on your cluster every month.

Questions

About backups and upgrades

How far back can I restore?

To any moment in the last 30 days on Premium and Enterprise, or the last 7 days on Starter. Continuous WAL archiving fills the time between the nightly base backups, so a restore is not limited to last night.

Will an upgrade take my sign-in down?

Patch upgrades do not: pods are replaced one at a time and a new one is ready before an old one stops. Minor and major upgrades migrate the database schema, so they need a short maintenance window that we announce ahead.

Can an upgrade be undone?

Yes. We take a backup before every upgrade. A patch upgrade can be rolled back to the previous version; after a schema migration, rolling back means restoring that backup.

What uptime do you commit to?

Premium comes with a 99.9% monthly uptime SLA and Enterprise with 99.95%. Starter is best effort, with no uptime SLA. A Custom plan can agree its own SLA.

Stop carrying the pager for your identity server