Giter Club home page Giter Club logo

Comments (2)

svetob avatar svetob commented on July 21, 2024

I see. What's happening is that the message buffer before logstash sending is being filled up, causing logging to block until logs have been sent to logstash and space is available in the buffer.

This is probably a symptom of logs being produced faster than logstash can consume them, but just to make sure it's not a problem with the library: do you have any numbers on the max throughput in logs/second your logstash backend can handle, versus how much your applications were producing per second during the spike?

Assuming that the problem is a momentary spike exceeding what the backend can consume, there is not much we can do about it in the library.

We could drop log messages instead of block, but I would prefer the library to never drop messages if possible.

Another option is to have no limit on queue size, however you are then running into potential OOM-problems instead. You can try increasing the buffer_size config to something much higher to trade memory for spike tolerance.

from logstash-json.

svetob avatar svetob commented on July 21, 2024

Closing this for now. If you again encounter issues with the lib underperforming compared to volumes you know your logging backend can handle, feel free to reopen this.

from logstash-json.

Related Issues (14)

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.