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

Remove barnes require so that Heroku can track Puma metrics #1451

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

jim
Copy link
Member

@jim jim commented Apr 9, 2024

What it does

I noticed that we weren't seeing any Ruby metrics in Heroku, despite having followed the directions a while back to set them up:
Screenshot 2024-04-08 at 8 34 44 PM

I am interested in these metrics to help figure out how to tune the app's concurrency and ideally address the memory errors we've been seeing.

The app was setup according the the Heroku instructions, but evidently they are out of date and having an explicit require of barnes in config/puma.rb loads the library before Rails, causing the Barnes server to not start properly and therefore not report metrics.

@jim jim requested a review from phinze April 9, 2024 01:38
Copy link
Contributor

@phinze phinze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find!

@jim jim merged commit 747df4f into main Apr 9, 2024
8 checks passed
@jim jim deleted the jim/start-barnes-heroku-metrics branch April 9, 2024 02:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants