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
Make instance restart function capable of restarting the cluster #22507
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
The ticket's description has been updated with an explanation on how the cluster restart process can be achieved via the dotCMS back-end, and the REST Endpoint. |
* #22507 adds cluster aware shutdown * #22507 adds cluster aware shutdown * #22507 making the topic match * #22507 I restart first * Implementing minor SonarQube feedback. * Implementing minor SonarQube feedback. * Implementing Code Review feedback. --------- Co-authored-by: Jose Castro <jose.castro@dotcms.com> Co-authored-by: Jonathan <jonathan.sanchez@dotcms.com>
Fixed, tested on the QA server and now we are able to restart the entire cluster without problems. Tested with the last master // Docker |
Is your feature request related to a problem? Please describe.
We added the ability to restart instances to dotCMS, however it only restarts the node you are connected to
Ticket: https://dotcms.zendesk.com/agent/tickets/107796
Describe the solution you'd like
Give an additional option to restart the entire cluster
Describe alternatives you've considered
After restarting the node you are connected to, you could refresh and get to a new node and hit restart on that as well, but with a lot of nodes this could be inconsistent.
HOW THE DOTCMS CLUSTER RESTART WORKS
Here's an example based on a two-node dotCMS Cluster:
-> FROM THE MAINTENANCE PORTLET:
Shutdown dotCMS
section.I agree with the above
andShutdown dotCMS Cluster
boxes.Rolling Delay in Seconds
field will show up. For testing purposes, enter a lower value for it, for instance,10
. As you can see in the UI, this field allows you to set the number of seconds between each node in the cluster restarting.SHUTDOWN DOTCMS
.-> VIA THE REST ENDPOINT:
Using Postman, create a
DELETE
request with Basic Auth for the following Endpoint: http://localhost:8080/api/v1/maintenance/_shutdownCluster?rollingDelay=10 . The expected outcome must be the same as in the previous section -- i.e., shutting down the current node immediately , and the second node going down after 10 secs.The text was updated successfully, but these errors were encountered: