{"action":"created","issue":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/8332","repository_url":"https://api.github.com/repos/ManageIQ/manageiq","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/8332/labels{/name}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/8332/comments","events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/8332/events","html_url":"https://github.com/ManageIQ/manageiq/pull/8332","id":151704089,"number":8332,"title":"Configure connection pool size since puma creates 5 threads by itself","user":{"login":"jrafanie","id":19339,"avatar_url":"https://avatars.githubusercontent.com/u/19339?v=3","gravatar_id":"","url":"https://api.github.com/users/jrafanie","html_url":"https://github.com/jrafanie","followers_url":"https://api.github.com/users/jrafanie/followers","following_url":"https://api.github.com/users/jrafanie/following{/other_user}","gists_url":"https://api.github.com/users/jrafanie/gists{/gist_id}","starred_url":"https://api.github.com/users/jrafanie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrafanie/subscriptions","organizations_url":"https://api.github.com/users/jrafanie/orgs","repos_url":"https://api.github.com/users/jrafanie/repos","events_url":"https://api.github.com/users/jrafanie/events{/privacy}","received_events_url":"https://api.github.com/users/jrafanie/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/core/workers","name":"core/workers","color":"5319e7"},{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/darga/yes","name":"darga/yes","color":"000000"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-28T17:52:46Z","updated_at":"2016-04-28T18:45:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/8332","html_url":"https://github.com/ManageIQ/manageiq/pull/8332","diff_url":"https://github.com/ManageIQ/manageiq/pull/8332.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/8332.patch"},"body":"**Increase connection pool to allow for 5 puma + worker threads.**\r\nThreads:\r\nconfig/puma.rb 5\r\nmain worker thread\r\nmain worker heartbeat thread\r\n\r\nRelated: #8275\r\n\r\nFrom that PR, we frequently have 5 connections in the pool with 2 threads\r\nwaiting for connections.  8 should give us enough connections so the 7 known puma\r\nand main worker threads aren't competing with each other.\r\n\r\n`MIQ(ActiveRecord::ConnectionAdapters::PostgreSQLAdapter#log_after_checkout) pool_size: 5, connections: 5, in use: 5, waiting_in_queue: 2`\r\n\r\n**There's no need to set connection_pool_size 5 since the default in database.yml is 5.**"},"comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments/215524495","html_url":"https://github.com/ManageIQ/manageiq/pull/8332#issuecomment-215524495","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/8332","id":215524495,"user":{"login":"miq-bot","id":7806257,"avatar_url":"https://avatars.githubusercontent.com/u/7806257?v=3","gravatar_id":"","url":"https://api.github.com/users/miq-bot","html_url":"https://github.com/miq-bot","followers_url":"https://api.github.com/users/miq-bot/followers","following_url":"https://api.github.com/users/miq-bot/following{/other_user}","gists_url":"https://api.github.com/users/miq-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/miq-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miq-bot/subscriptions","organizations_url":"https://api.github.com/users/miq-bot/orgs","repos_url":"https://api.github.com/users/miq-bot/repos","events_url":"https://api.github.com/users/miq-bot/events{/privacy}","received_events_url":"https://api.github.com/users/miq-bot/received_events","type":"User","site_admin":false},"created_at":"2016-04-28T18:45:08Z","updated_at":"2016-04-28T18:45:08Z","body":"<rubocop />Checked commits https://github.com/jrafanie/manageiq/compare/ea6aff3a09476b2848bbdb29aa065d0770c362c1~...a74699779f5b03a9cdd8b7ecff0446eca0e78780 with ruby 2.2.3, rubocop 0.37.2, and haml-lint 0.16.1\n0 files checked, 0 offenses detected\nEverything looks good. :trophy:\n"}}