Skip to content
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

Rundeck initialization refactoring #6414

Merged
merged 4 commits into from
Sep 18, 2020
Merged

Rundeck initialization refactoring #6414

merged 4 commits into from
Sep 18, 2020

Conversation

sjrd218
Copy link
Contributor

@sjrd218 sjrd218 commented Aug 27, 2020

Refactor server uuid assignment and loading.
Cleanup initialization code, and refactor it to work the same in container and non-container installations.
Add an unsecured health check endpoint.
Add cleanup code for metrics and log storage service upon server restart or shutdown.
Add plumbing for hot restart capability.

The initialization method in the FrameworkService has been removed and the serverUuid now comes from a system property that is set in the prebootstrap phase of the Rundeck startup. This helps avoid some of the issues we've had in the past with the system triggering the initialization at the wrong time.

The server uuid now comes from a file called serverId located in the server config directory. The id from framework.properties is migrated into the file if it exists. If the environment variable RUNDECK_SERVER_UUID or the rundeck.server.uuid system property is set by the user, that value will be used for the server id and will be installed in the serverId file.

@sjrd218 sjrd218 added the 3.3.x label Aug 27, 2020
@sjrd218 sjrd218 added this to the 3.3.4 milestone Aug 27, 2020
Cleanup initialization code, and refactor it to work the same in container and non-container installations.
Add an unsecured health check endpoint.
Add cleanup code for metrics and log storage service upon server restart or shutdown.
Add plumbing for hot restart capability.
@sjrd218
Copy link
Contributor Author

sjrd218 commented Sep 16, 2020

@gschueler @ProTip I have update this PR as discussed. For some reason Travis won't let me restart the failed test run, otherwise it'd be passing.

@sjrd218 sjrd218 merged commit 8e421d2 into main Sep 18, 2020
@sjrd218 sjrd218 deleted the enh/hotrestart branch September 18, 2020 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants