-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configurable kcadm config delay #24
base: master
Are you sure you want to change the base?
Conversation
cd86c5b
to
b36de55
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we use some health check? For example https://github.com/thomasdarimont/keycloak-health-checks
I am rather reluctant to use that 3rd party module. It might be working perfectly but from the support perspective this is additional responsibility and additional work. I would stick to anything provided 'out of the box' with official Keycloak distributions. |
right, please don't
who starts it and where? |
This patch makes a configuration delay more flexible to avoid unnecessary long delays on more powerful machines. The delay can now be set using OVE property ie. engine-setup --otopi-environment="OVESETUP_KEYCLOAK_CONFIG/configDelaySeconds=int:5" Signed-off-by: Artur Socha <asocha@redhat.com>
b36de55
to
4d22dad
Compare
The process is that keycloak module/app is 'registered' on wildfly/eap just like ovirt engine. During wildfly startup this application bootstraps itself if needed. For example it creates database schema. This keycloak app initial startup process might take a bit and is asynchronous for setup code. That is why a short delay is needed or in perfect world some sort of 'ready' endpoint would be even better. Unfortunately, up to my konwledge keycloak does not have anything like that. My initial idea was to implement re-try ... but simple sleep is much easier. Eventually, I would love to return to more legit approach (when other more pressing issues are resolved) |
This patch makes a configuration delay more flexible to avoid
unnecessary long delays on more powerful machines.
The delay can now be set using OVE property ie.
engine-setup --otopi-environment="OVESETUP_KEYCLOAK_CONFIG/configDelaySeconds=int:5"
Signed-off-by: Artur Socha asocha@redhat.com