Keycloak-x database reconnection

Dear keycloakers,

I have set up my database layer as an high availability cluster of postgres, with the use of pgpool.
The simulation of fallback and recovery of the postgres instances works well.
Keycloak-x is connecting via pgpool to the database cluster.

when pgpool switches from one postgres instance to another, there’s a couple of seconds of disconnection. The connection to any clients (and so keycloak-x) is closed too.

Keycloak-x doesn’t seem to e capable to reconnect automatically: a restart is required.

Is there something i am missing in the keycloak database configuration?

I have found this to tackle the same issue in keycloak:

I am wondering if there’s anything similar usable in keycloak-k