Migrate from thin to puma for the web server #25
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What? Why?
Thin still does not support Rack 3.0, which is needed because Sinatra needs an update due to GHSA-hxx2-7vcw-mqr3.
Given the Thin update is almost a year old, this PR migrates from Thin to Puma as the server for metrics.
How was it tested?
Integrated with a Rails app:
Resident set size (RSS) graph for a simple Rails app. 14:45-16:00 is the period we had this deployed (along with an upgrade from Rails 7.0 to 7.1). The memory footprint does grow, but only by about 3mb.