Code Monkey home page Code Monkey logo

Comments (4)

komamitsu avatar komamitsu commented on September 27, 2024

Have you tried https://github.com/komamitsu/fluency#enable-ack-response-mode ?

from fluency.

thomasgermain avatar thomasgermain commented on September 27, 2024

Yes we did, and it's working as expected. But using the ack response mode makes the sending synchronous and we have to support up to ~20MB log and for our use case, this is not acceptable to block the application during the sending.

from fluency.

komamitsu avatar komamitsu commented on September 27, 2024

In Fluency, buffered data is sent by a background thread, so it shouldn't block the application thread that calls Fluency#emit. But if you faced Fluency's buffer full because the throughput between Fluentd and Fluency didn't catch up with the ingestion throughput from application, the application could be blocked. In this case, it may be worth trying buffer configuration tuning.

From the view point of the throughput between Fluentd and Fluency, ACK response mode may affect the performance. But I think it's a kind of trade off between performance and durability.

from fluency.

thomasgermain avatar thomasgermain commented on September 27, 2024

Well, actually I did a test again while ack mode is enabled and this is working async. I can't figure out how I concluded it was blocking 🤔

Anyway, I did some tests again while restarting fluentd and no message lost so far.

Thanks for your help !

Thomas

from fluency.

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.