-
Notifications
You must be signed in to change notification settings - Fork 56
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
keycloak_quarkus role restart all node at the same times #182
Labels
enhancement
New feature or request
Comments
Thanks for reporting; we already have similar logic for keycloak role, not yet ported to keycloak_quarkus. Ideally we would like to support custom restart orchestration (provided by users from the calling playbooks) in addition to the default; but yeah implementation is in the roadmap for both throttled restarts and wait_for_healthy conditions. |
hwo-wd
added a commit
to world-direct/ansible-keycloak
that referenced
this issue
May 14, 2024
… handler logic
3 tasks
hwo-wd
added a commit
to world-direct/ansible-keycloak
that referenced
this issue
May 14, 2024
… handler logic
hwo-wd
added a commit
to world-direct/ansible-keycloak
that referenced
this issue
May 15, 2024
… handler logic
hwo-wd
added a commit
to world-direct/ansible-keycloak
that referenced
this issue
May 15, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SUMMARY
If a configuration change, actually the keycloak_quarkus role restart all node at the same time.
So the keycloak service is down for this (small) period.
It's also introduce a problem if try to apply a bad configuration :
all node will be change and restart so the whole keycloak service will be down until a correction is done
as exemple, if i change the ssl file to a not existing file (or permission issue or ... ) with :
All keycloak node will be down, so the service will be down ...
I think, we should, at least, introduce a
throttle
orforks
on restart serviceOr even better apply change on first node before other node
Personally i like how restart have been implemented on this role : https://github.com/mrlesmithjr/ansible-mariadb-galera-cluster/blob/master/tasks/setup_cluster.yml :
register: "_mariadb_galera_cluster_reconfigured"
So with this solution it's resolving both issue i've describe earlier
ISSUE TYPE
ANSIBLE VERSION
COLLECTION VERSION
STEPS TO REPRODUCE
keycloak_quarkus_frontend_url
middleware_automation.keycloak.keycloak_quarkus
EXPECTED RESULTS
ACTUAL RESULTS
ADDITIONAL INFORMATION
also, i think
start.yml
andrestart.yml
need to be merge (state: restarted
is always doing astate: started
and more ) and the "Wait until {{ keycloak.service_name }} becomes active {{ keycloak.health_url }}" need also to be used on the restart behavior.The text was updated successfully, but these errors were encountered: