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

Disconnect from ActiveRecord connection in Puma before_worker_fork #304

Open
zachallaun opened this issue Apr 23, 2015 · 1 comment
Open

Comments

@zachallaun
Copy link
Member

Puma has added a before_worker_fork callback that will allow us to disconnect from the ActiveRecord connection in the primary puma process. This will keep us from using up one of our 25 (or however many) connections.

@davidbalbert
Copy link
Member

Note: the method in the DSL is on_worker_fork

On Thu, Apr 23, 2015 at 3:47 PM, Zach Allaun [email protected]
wrote:

Puma has added a before_worker_fork callback that will allow us to
disconnect from the ActiveRecord connection in the primary puma process.
This will keep us from using up one of our 25 (or however many) connections.


Reply to this email directly or view it on GitHub
#304.

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

No branches or pull requests

2 participants