Coder Social home page Coder Social logo

Comments (1)

darend avatar darend commented on August 19, 2024

Update

We traced the issue to fluentd running out of memory and constantly restarting. This was not immediately apparent as the pod was not exiting, but if you look in the logs you would see an event like:

2018-03-20 15:58:45 +0000 [info]: Worker 0 finished unexpectedly with signal SIGKILL

In the host logs you would see an event like:

Mar 20 15:58:44 ip-172-20-60-200 kernel: Memory cgroup out of memory: Kill process 22663 (ruby2.3) score 1971 or sacrifice child
Mar 20 15:58:44 ip-172-20-60-200 kernel: Killed process 22663 (ruby2.3) total-vm:5557248kB, anon-rss:350160kB, file-rss:50628kB

With help from @frankreno we traced the issue to the flush interval being defaulted to 30s when installing via the chart. This is because the chart does not override the value, its commented out: https://github.com/kubernetes/charts/blob/c0e593513184490f895b3a82375934545677c309/stable/sumologic-fluentd/values.yaml#L44. The default of 30s is then inherited from the Dockerfile:

ENV FLUSH_INTERVAL "30s"

On hosts with any volume of traffic this buffer can easily require more than the default 256MB than the chart limits fluentd to: https://github.com/kubernetes/charts/blob/c0e593513184490f895b3a82375934545677c309/stable/sumologic-fluentd/values.yaml#L154

We reduced the flush interval to 5s and increased the memory limit to 512mb and collection has been stable.

Possible Improvements

  • Default the flush interval to a lower value within the Dockerfile and chart
  • Allow the container to exit in the event of OOM. The current approach is nice when running fluentd outside kubernetes. However when run in k8s, its better to allow it exit and be restarted. This type of activity is far more likely to be noticed

from fluentd-kubernetes-sumologic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.