{"action":"created","issue":{"url":"https://api.github.com/repos/newrelic-forks/docker/issues/1","labels_url":"https://api.github.com/repos/newrelic-forks/docker/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/newrelic-forks/docker/issues/1/comments","events_url":"https://api.github.com/repos/newrelic-forks/docker/issues/1/events","html_url":"https://github.com/newrelic-forks/docker/pull/1","id":107255099,"number":1,"title":"Fix nasty logging unbounded buffer","user":{"login":"relistan","id":267761,"avatar_url":"https://avatars.githubusercontent.com/u/267761?v=3","gravatar_id":"","url":"https://api.github.com/users/relistan","html_url":"https://github.com/relistan","followers_url":"https://api.github.com/users/relistan/followers","following_url":"https://api.github.com/users/relistan/following{/other_user}","gists_url":"https://api.github.com/users/relistan/gists{/gist_id}","starred_url":"https://api.github.com/users/relistan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/relistan/subscriptions","organizations_url":"https://api.github.com/users/relistan/orgs","repos_url":"https://api.github.com/users/relistan/repos","events_url":"https://api.github.com/users/relistan/events{/privacy}","received_events_url":"https://api.github.com/users/relistan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-18T18:38:34Z","updated_at":"2015-09-19T16:38:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/newrelic-forks/docker/pulls/1","html_url":"https://github.com/newrelic-forks/docker/pull/1","diff_url":"https://github.com/newrelic-forks/docker/pull/1.diff","patch_url":"https://github.com/newrelic-forks/docker/pull/1.patch"},"body":"When anything fails to read from the buffer, it will back up. When the drain cycles, it will create a new buffer but not actually remove any data. So if the logging rate continues to be higher than the flush rate, the buffer will grow unbounded.\r\n\r\nThis addresses that by taking the approach of throwing away more than `maxRetainedBytes` number of bytes at each drain cycle. Additionally, the drain cycle is ratcheted down substantially so that the buffer is cycled more often and the buffer truncated in the face of massive logging overruns.\r\n\r\ncc @didip @dselans @intjonathan "},"comment":{"url":"https://api.github.com/repos/newrelic-forks/docker/issues/comments/141686632","html_url":"https://github.com/newrelic-forks/docker/pull/1#issuecomment-141686632","issue_url":"https://api.github.com/repos/newrelic-forks/docker/issues/1","id":141686632,"user":{"login":"relistan","id":267761,"avatar_url":"https://avatars.githubusercontent.com/u/267761?v=3","gravatar_id":"","url":"https://api.github.com/users/relistan","html_url":"https://github.com/relistan","followers_url":"https://api.github.com/users/relistan/followers","following_url":"https://api.github.com/users/relistan/following{/other_user}","gists_url":"https://api.github.com/users/relistan/gists{/gist_id}","starred_url":"https://api.github.com/users/relistan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/relistan/subscriptions","organizations_url":"https://api.github.com/users/relistan/orgs","repos_url":"https://api.github.com/users/relistan/repos","events_url":"https://api.github.com/users/relistan/events{/privacy}","received_events_url":"https://api.github.com/users/relistan/received_events","type":"User","site_admin":false},"created_at":"2015-09-19T16:38:00Z","updated_at":"2015-09-19T16:38:00Z","body":"cc @benders "}}