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

Bump pool size to 5 since puma + miq seems to use more connections #6786

Merged
merged 1 commit into from
Feb 18, 2016

Conversation

jrafanie
Copy link
Member

Fixes some sporadic errors seen locally:

ActiveRecord::ConnectionTimeoutError (could not obtain a connection from the pool within 5.000 seconds).

We'll have to circle back to this and figure out why this is happening.
#3415

Fixes some sporadic errors seen locally:

ActiveRecord::ConnectionTimeoutError (could not obtain a connection from the pool within 5.000 seconds).

We'll have to circle back to this and figure out why this is happening.
ManageIQ#3415
@jrafanie
Copy link
Member Author

cc @matthewd

@Fryguy
Copy link
Member

Fryguy commented Feb 18, 2016

👍

@matthewd
Copy link
Contributor

matthewd added a commit that referenced this pull request Feb 18, 2016
Bump pool size to 5 since puma + miq seems to use more connections
@matthewd matthewd merged commit 9d24b8e into ManageIQ:master Feb 18, 2016
@matthewd matthewd added this to the Sprint 37 Ending Mar 7, 2016 milestone Feb 18, 2016
@jrafanie jrafanie deleted the bump_pool_size_for_puma branch February 19, 2016 19:23
carbonin added a commit to carbonin/manageiq that referenced this pull request Nov 14, 2017
…ble worker

Before ManageIQ#6786 we used to
have one connection specified in the connection pool in database.yml

Installations which have been upgraded from before this change
still have that one connection pool in place.

The EmbeddedAnsible worker uses a thread rather than a new process
so it shares the connection pool with the server. When the pool
is set to only contain one connection, the EmbeddedAnsible worker
will not be able to start.

This commit adds a connection to the pool in the same way that we do
for workers which specify a specific connection pool size in their settings:
https://github.com/ManageIQ/manageiq/blob/f6f7120749d16fd7825f83001dfd875cdecb903c/app/models/miq_worker/runner.rb#L71-L78

https://bugzilla.redhat.com/show_bug.cgi?id=1484150
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants