Skip to content

Instantly share code, notes, and snippets.

@dasniko
Created May 10, 2023 05:06
Show Gist options
  • Save dasniko/f074aeab81eb941cc3b2caaf96f4ca47 to your computer and use it in GitHub Desktop.
Save dasniko/f074aeab81eb941cc3b2caaf96f4ca47 to your computer and use it in GitHub Desktop.
Upgrade Keycloak Database #settings

Because of Arjuna timeout / closing the connection after 5 mins, setting following additional JAVA_OPTS might help:

-Dquarkus.transaction-manager.default-transaction-timeout=3600
-Dkeycloak.migration.batch-enabled=true
-Dkeycloak.migration.batch-size=1000
@andrelramos
Copy link

I also added the below instructions to ensure only one thread running migration and avoid problems with race condition and infinispan (see the issue keycloak/keycloak#34267 for more details)

-Dkeycloak.cache=infinispan
-Dkeycloak.cache.persistence.enabled=false
-Dquarkus.thread-pool.core-threads=1
-Dquarkus.thread-pool.max-threads=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment