Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance optimizations for kubernetes_metadata filter #71

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fenixil
Copy link

@fenixil fenixil commented Apr 15, 2021

Description of changes:
kubernetes_metadata filter enriches messages with kubernetes context
like pod_id, namespace_name, labels etc. It reads all pods from api
server and subscribed for the updates. With relatively large clusters
it generates enormous load on the api server as it list ALL pods for the
whole cluster instead of just for the machine where agent is running.

Issue is fixed by filter developers:
fabric8io/fluent-plugin-kubernetes_metadata_filter#170
However this fix is not included into the image used by AWS.

With this pull request I upgrade image version to latest with the filter
plugin fix and pass K8S_NODE_NAME env variable which enables the
optimization.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

kubernetes_metadata filter enriches messages with kubernetes context
like pod_id, namespace_name, labels etc. It reads all pods from api
server and subscribed for the updates. With relatively large clusters
it generates enormous load on the api server as it list ALL pods for the
whole cluster instead of just for the machine where agent is running.

Issue is fixed by filter developers:
fabric8io/fluent-plugin-kubernetes_metadata_filter#170
However this fix is not included into the image used by AWS.

With this pull request I upgrade image version to latest with the filter
plugin fix and pass K8S_NODE_NAME env variable which enables the
optimization.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant