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

Use new poolboy 'stack based' strategy #179

Open
davidw opened this issue May 12, 2014 · 2 comments
Open

Use new poolboy 'stack based' strategy #179

davidw opened this issue May 12, 2014 · 2 comments

Comments

@davidw
Copy link
Contributor

davidw commented May 12, 2014

Poolboy has long had a bit of a problem with managing resources like databases that are "expensive" to set up and hold:

devinus/poolboy#29

devinus/poolboy#30

They've decided to allow stack based usage of poolboy, beyond the regular round robin system:

devinus/poolboy#50

That, combined with some fiddling on the Chicago Boss side of things, might resolve the resource problem like. CB would start off with a lot of database workers that are, however, not connected. When requested, they connect and stay connected. When idle for X seconds, they disconnect. That way, the ones at the top of the stack will be used often and stay connected, others will disconnect, releasing database workers.

@choptastic
Copy link
Contributor

This sounds awesome, imo!

On Mon, May 12, 2014 at 9:52 AM, David N. Welton
[email protected]:

Poolboy has long had a bit of a problem with managing resources like
databases that are "expensive" to set up and hold:

devinus/poolboy#29 devinus/poolboy#29

devinus/poolboy#30 devinus/poolboy#30

They've decided to allow stack based usage of poolboy, beyond the regular
round robin system:

devinus/poolboy#50 devinus/poolboy#50

That, combined with some fiddling on the Chicago Boss side of things,
might resolve the resource problem like. CB would start off with a lot of
database workers that are, however, not connected. When requested, they
connect and stay connected. When idle for X seconds, they disconnect. That
way, the ones at the top of the stack will be used often and stay
connected, others will disconnect, releasing database workers.


Reply to this email directly or view it on GitHubhttps://github.com//issues/179
.

Jesse Gumm
Owner, Sigma Star Systems
414.940.4866 || sigma-star.com || @jessegumm

@davidw
Copy link
Contributor Author

davidw commented May 21, 2014

I have implemented this here:

https://github.com/davidw/boss_db/tree/disconnect_on_inactive

But I'm not entirely happy with it. See the discussion here:

devinus/poolboy#30

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