How to make changes in standalone.xml effective without restarting Keycloak server

Hi all, I’m migrating our Keycloak backend Postgres DB to a new server, and after that I need to update the following section in Keycloak’s standalone.xml:


<connection-url>jdbc:postgresql://<new server address>:5432/keycloak</connection-url>
<driver>postgresql</driver>

so I’m wondering if there’s a way to reload the configuration without restarting the Keycloak service. I’m hoping if I can do that, I’ll then terminate the DB sessions in the old db server and Keycloak will connect to the new DB server when it receives requests

is that possible?

Thank you

You can use the jboss-cli.sh, it could be found in the bin directory (I’m guessing here that you are using the Legacy Keycloak).
This cli is very powerful and there are a lot of changes you could make at runtime without even a reload, also some of them may need a reload.
Specifically for the DB I would guess you would have to reload, but from your description it is fine from you side doing a reload.

By the way, architecturally that is wrong.
The right thing for you would be deploying a cluster of Keycloak instances.