Giter Site home page Giter Site logo

Long shutdown times about log-courier HOT 2 CLOSED

driskell avatar driskell commented on June 24, 2024
Long shutdown times

from log-courier.

Comments (2)

driskell avatar driskell commented on June 24, 2024

Hi,

It's due to the internal queue waiting to flush. Anything that's already inside publisher needs to be sent first, thus the slight delay. If logstash is busy it will take longer. If the connection is severed it will not shutdown until it reconnects. These are known issues at the moment but I deemed them a low risk for most cases, and even if it gets killed thats just old behaviour - in most cases though it will shutdown cleanly.

I'll be improving it soon. So that if the publisher has a contiguous queue it just discards it. If it has a partially ack'd queue (non-contiguous) it will save it to a persistence file, reload on startup and resume send. So that shutdown is always as quick as possible. The only wait will then be for currently outstanding ACK - but the moment they timeout (approx 15s default) it will shutdown.

If I don't get around to the above improvements soon I'll document it on the README and CHANGELOG - probably as I should've done!

Jason

from log-courier.

driskell avatar driskell commented on June 24, 2024

Not seen this too much and I think it's not a simple thing to resolve. Any resolution would involve "trashing" state as it were, so in a way I wonder if letting it be killed is fine - at least then it's a signal of a problem somewhere rather than looking like a normal exit. Sorry for long response on this. Just got around to some time to tinker and update things.

from log-courier.

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.