{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/35216","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/35216/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/35216/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/35216/events","html_url":"https://github.com/kubernetes/kubernetes/pull/35216","id":184293549,"number":35216,"title":"cluster-addons: enable Jemalloc for Fluentd based images","user":{"login":"edsiper","id":369718,"avatar_url":"https://avatars.githubusercontent.com/u/369718?v=3","gravatar_id":"","url":"https://api.github.com/users/edsiper","html_url":"https://github.com/edsiper","followers_url":"https://api.github.com/users/edsiper/followers","following_url":"https://api.github.com/users/edsiper/following{/other_user}","gists_url":"https://api.github.com/users/edsiper/gists{/gist_id}","starred_url":"https://api.github.com/users/edsiper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edsiper/subscriptions","organizations_url":"https://api.github.com/users/edsiper/orgs","repos_url":"https://api.github.com/users/edsiper/repos","events_url":"https://api.github.com/users/edsiper/events{/privacy}","received_events_url":"https://api.github.com/users/edsiper/received_events","type":"User","site_admin":false},"labels":[{"id":176978828,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/cla:%20yes","name":"cla: yes","color":"bfe5bf","default":false},{"id":349530249,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/release-note-none","name":"release-note-none","color":"c2e0c6","default":false},{"id":255776949,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/retest-not-required","name":"retest-not-required","color":"eb6420","default":false},{"id":253450793,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/size/XS","name":"size/XS","color":"009900","default":false}],"state":"open","locked":false,"assignee":{"login":"Crassirostris","id":1756505,"avatar_url":"https://avatars.githubusercontent.com/u/1756505?v=3","gravatar_id":"","url":"https://api.github.com/users/Crassirostris","html_url":"https://github.com/Crassirostris","followers_url":"https://api.github.com/users/Crassirostris/followers","following_url":"https://api.github.com/users/Crassirostris/following{/other_user}","gists_url":"https://api.github.com/users/Crassirostris/gists{/gist_id}","starred_url":"https://api.github.com/users/Crassirostris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Crassirostris/subscriptions","organizations_url":"https://api.github.com/users/Crassirostris/orgs","repos_url":"https://api.github.com/users/Crassirostris/repos","events_url":"https://api.github.com/users/Crassirostris/events{/privacy}","received_events_url":"https://api.github.com/users/Crassirostris/received_events","type":"User","site_admin":false},"assignees":[{"login":"Crassirostris","id":1756505,"avatar_url":"https://avatars.githubusercontent.com/u/1756505?v=3","gravatar_id":"","url":"https://api.github.com/users/Crassirostris","html_url":"https://github.com/Crassirostris","followers_url":"https://api.github.com/users/Crassirostris/followers","following_url":"https://api.github.com/users/Crassirostris/following{/other_user}","gists_url":"https://api.github.com/users/Crassirostris/gists{/gist_id}","starred_url":"https://api.github.com/users/Crassirostris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Crassirostris/subscriptions","organizations_url":"https://api.github.com/users/Crassirostris/orgs","repos_url":"https://api.github.com/users/Crassirostris/repos","events_url":"https://api.github.com/users/Crassirostris/events{/privacy}","received_events_url":"https://api.github.com/users/Crassirostris/received_events","type":"User","site_admin":false},{"login":"piosz","id":10819974,"avatar_url":"https://avatars.githubusercontent.com/u/10819974?v=3","gravatar_id":"","url":"https://api.github.com/users/piosz","html_url":"https://github.com/piosz","followers_url":"https://api.github.com/users/piosz/followers","following_url":"https://api.github.com/users/piosz/following{/other_user}","gists_url":"https://api.github.com/users/piosz/gists{/gist_id}","starred_url":"https://api.github.com/users/piosz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piosz/subscriptions","organizations_url":"https://api.github.com/users/piosz/orgs","repos_url":"https://api.github.com/users/piosz/repos","events_url":"https://api.github.com/users/piosz/events{/privacy}","received_events_url":"https://api.github.com/users/piosz/received_events","type":"User","site_admin":false}],"milestone":null,"comments":14,"created_at":"2016-10-20T17:37:04Z","updated_at":"2016-11-06T12:33:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/35216","html_url":"https://github.com/kubernetes/kubernetes/pull/35216","diff_url":"https://github.com/kubernetes/kubernetes/pull/35216.diff","patch_url":"https://github.com/kubernetes/kubernetes/pull/35216.patch"},"body":"**What this PR does / why we need it**:\n\nThis Pull Request includes two patches that enable the recommended use of Jemalloc memory allocator for container images that are based in Fluentd. The patches applies to the following cluster-addons:\n- fluentd-es-image\n- fluentd-gcp-image\n\n**Which issue this PR fixes** \n\nThis PR is part of the solution for issues:\n-  kubernetes/kubernetes/issues/32762\n-  GoogleCloudPlatform/fluent-plugin-google-cloud/issues/87\n\nWhen Fluentd runs in high load environments, it's likely the default operating system memory allocator will generate a high fragmentation ending up in a high memory usage. In order to reduce fragmentation and decrease memory usage an alternative memory allocator as Jemalloc is used. \n\n![](https://cloud.githubusercontent.com/assets/369718/19498577/eaa9f324-954e-11e6-9a6b-6b30310a66a3.png)\n\nFor the record: fluentd-es-image uses [td-agent](https://docs.treasuredata.com/articles/td-agent) Fluentd package maintained by Treasure Data, which contains Jemalloc 4.2.1 (latest stable version). The google-fluentd package used in fluentd-gcp-image comes with Jemalloc 2.2.5, which have many known issues, I strongly suggest google-fluentd package gets updated.\n\n**Special notes for your reviewer**:\n\nIn the research of this topic have been involved @piosz and @Crassirostris.\n\n<!-- Reviewable:start -->\n---\n\nThis change is [<img src=\"https://reviewable.kubernetes.io/review_button.svg\" height=\"34\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.kubernetes.io/reviews/kubernetes/kubernetes/35216)\n\n<!-- Reviewable:end -->\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/258678109","html_url":"https://github.com/kubernetes/kubernetes/pull/35216#issuecomment-258678109","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/35216","id":258678109,"user":{"login":"piosz","id":10819974,"avatar_url":"https://avatars.githubusercontent.com/u/10819974?v=3","gravatar_id":"","url":"https://api.github.com/users/piosz","html_url":"https://github.com/piosz","followers_url":"https://api.github.com/users/piosz/followers","following_url":"https://api.github.com/users/piosz/following{/other_user}","gists_url":"https://api.github.com/users/piosz/gists{/gist_id}","starred_url":"https://api.github.com/users/piosz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piosz/subscriptions","organizations_url":"https://api.github.com/users/piosz/orgs","repos_url":"https://api.github.com/users/piosz/repos","events_url":"https://api.github.com/users/piosz/events{/privacy}","received_events_url":"https://api.github.com/users/piosz/received_events","type":"User","site_admin":false},"created_at":"2016-11-06T12:33:31Z","updated_at":"2016-11-06T12:33:31Z","body":"LGTM, thanks!"}}
{"actor":{"display_login":"piosz"}}