{"action":"opened","issue":{"url":"https://api.github.com/repos/seth/pooler/issues/60","repository_url":"https://api.github.com/repos/seth/pooler","labels_url":"https://api.github.com/repos/seth/pooler/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/seth/pooler/issues/60/comments","events_url":"https://api.github.com/repos/seth/pooler/issues/60/events","html_url":"https://github.com/seth/pooler/issues/60","id":149518931,"number":60,"title":"eredis and pooler - pair not made in heaven","user":{"login":"sdebnath","id":59411,"avatar_url":"https://avatars.githubusercontent.com/u/59411?v=3","gravatar_id":"","url":"https://api.github.com/users/sdebnath","html_url":"https://github.com/sdebnath","followers_url":"https://api.github.com/users/sdebnath/followers","following_url":"https://api.github.com/users/sdebnath/following{/other_user}","gists_url":"https://api.github.com/users/sdebnath/gists{/gist_id}","starred_url":"https://api.github.com/users/sdebnath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdebnath/subscriptions","organizations_url":"https://api.github.com/users/sdebnath/orgs","repos_url":"https://api.github.com/users/sdebnath/repos","events_url":"https://api.github.com/users/sdebnath/events{/privacy}","received_events_url":"https://api.github.com/users/sdebnath/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-19T16:56:28Z","updated_at":"2016-04-19T16:56:28Z","closed_at":null,"body":"This has occurred too many times for me and I am not sure what could be the cause. Hoping someone else has experienced the issue and can provide some workarounds. \r\n\r\nI manage 5 riak connections and 1 redis via pooler on my application. After N weeks all of a sudden eredis connections start reporting the below while riak connections are fine:\r\n\r\n    2016-04-04 19:17:53 =SUPERVISOR REPORT====\r\n         Supervisor: {local,pooler_redis01_member_sup}\r\n         Context:    child_terminated\r\n         Reason:     killed\r\n         Offender:   [{pid,<0.4356.64>},{name,eredis},{mfargs,{eredis,start_link,undefined}},{restart_type,temporary},{shutdown,brutal_kill},{child_type,worker}]\r\n\r\nThe kills continues after the first error and doesn't really seem to be able to recover.\r\n\r\nMy config is as follows:\r\n\r\n    [\r\n      {pooler, [\r\n        {pools, [\r\n          [{name, riak01},\r\n           {group, riak},\r\n           {max_count, 5000},\r\n           {init_count, 10},\r\n           {start_mfa, {riakc_pb_socket, start_link, [\"riak-01.prod.domain.com\", 8087]}}],\r\n    \r\n          [{name, riak02},\r\n           {group, riak},\r\n           {max_count, 5000},\r\n           {init_count, 10},\r\n           {start_mfa, {riakc_pb_socket, start_link, [\"riak-02.prod.domain.com\", 8087]}}],\r\n    \r\n          [{name, riak03},\r\n           {group, riak},\r\n           {max_count, 5000},\r\n           {init_count, 10},\r\n           {start_mfa, {riakc_pb_socket, start_link, [\"riak-03.prod.domain.com\", 8087]}}],\r\n    \r\n          [{name, riak04},\r\n           {group, riak},\r\n           {max_count, 5000},\r\n           {init_count, 10},\r\n           {start_mfa, {riakc_pb_socket, start_link, [\"riak-04.prod.domain.com\", 8087]}}],\r\n    \r\n          [{name, riak05},\r\n           {group, riak},\r\n           {max_count, 5000},\r\n           {init_count, 10},\r\n           {start_mfa, {riakc_pb_socket, start_link, [\"riak-05.prod.domain.com\", 8087]}}],\r\n    \r\n          [{name, redis01},\r\n           {group, redis},\r\n           {max_count, 5000},\r\n           {init_count, 10},\r\n           {start_mfa, {eredis, start_link, [\"redis.prod.domain.com\", 6379]}}]\r\n         ]}\r\n      ]},\r\n\r\n\r\nRiak and redis are both operating and being used successfully by other services. Open file descriptors for the beam.smp process is about 106 and limited to 65536. Unfortunately not much else in the log. Any help appreciated."}}