k3s/cluster/addons/fluentd-elasticsearch
Kubernetes Submit Queue 48ef0faa0e Merge pull request #35216 from edsiper/fluentd-jemalloc
Automatic merge from submit-queue

cluster-addons: enable Jemalloc for Fluentd based images

**What this PR does / why we need it**:

This 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:
- fluentd-es-image
- fluentd-gcp-image

**Which issue this PR fixes** 

This PR is part of the solution for issues:
-  kubernetes/kubernetes/issues/32762
-  GoogleCloudPlatform/fluent-plugin-google-cloud/issues/87

When 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. 

![](https://cloud.githubusercontent.com/assets/369718/19498577/eaa9f324-954e-11e6-9a6b-6b30310a66a3.png)

For 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.

**Special notes for your reviewer**:

In the research of this topic have been involved @piosz and @Crassirostris.
2016-11-06 05:26:58 -08:00
..
es-image Replace client with clientset in code 2016-10-23 22:00:35 +02:00
fluentd-es-image cluser/addons: fluentd-elasticsearch: preload Jemalloc for td-agent 2016-10-20 10:50:58 -06:00
kibana-image Fixed kibana image and controller to work through proxy 2016-11-02 22:06:22 +01:00
es-controller.yaml Update elasticsearch and kibana usage 2016-10-17 21:04:25 +02:00
es-service.yaml Move things into a 'kube-system' namespace. 2015-07-06 15:08:23 -07:00
kibana-controller.yaml Fixed kibana image and controller to work through proxy 2016-11-02 22:06:22 +01:00
kibana-service.yaml Move things into a 'kube-system' namespace. 2015-07-06 15:08:23 -07:00