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

Reapply "Puma with SystemD" #52368

Merged
merged 3 commits into from
Jun 23, 2023
Merged

Reapply "Puma with SystemD" #52368

merged 3 commits into from
Jun 23, 2023

Conversation

Hamms
Copy link
Contributor

@Hamms Hamms commented Jun 20, 2023

Reapplies #52313, effectively reverting #52346

Our previous attempt failed because when I reimplemented the logic we used to have for creating the /run/unicorn directory in which we store sockets, I did so in Chef. Unfortunately, the /run/ directory is ephemeral, and gets reset on reboot. This seemed fine in all my testing on adhocs and our deployment pipeline, but unfortunately the new frontend instances we spin up after building a new AMI are fresh boots, and so don't have that directory.

The simple fix is to use SystemD rather than Chef to create the directory, just like we used to use SysV rather than Chef for it.

Links

Testing Story

Verified on an adhoc of this branch that we can successfully start up our web server services after a reboot. Verified on an adhoc of another branch that this fix can be successfully applied to existing instances.

@Hamms Hamms requested a review from a team as a code owner June 20, 2023 23:28
@Hamms Hamms added the Ruby Update Everything related to work to update the version of Ruby our codebase runs on label Jun 22, 2023
@Hamms Hamms merged commit 67a1c51 into staging Jun 23, 2023
1 of 2 checks passed
@Hamms Hamms deleted the reapply-puma-only-systemctl branch June 23, 2023 20:34
@Hamms Hamms mentioned this pull request Jun 29, 2023
Hamms added a commit that referenced this pull request Oct 24, 2023
Follow-up to #52368

Now that all persistent managed servers have been cleaned up (slash recreated from scratch), we can remove the logic we temporarily added to perform that cleanup.
Hamms added a commit that referenced this pull request Oct 25, 2023
Follow-up to #52368

Now that all persistent managed servers have been cleaned up (slash recreated from scratch), we can remove the logic we temporarily added to perform that cleanup.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ruby Update Everything related to work to update the version of Ruby our codebase runs on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants