Coder Social home page Coder Social logo

Comments (7)

rummble avatar rummble commented on August 15, 2024

Could it be that this needs only to be done on node failure so the perforamnce issue does not need to be too high? i.e., only when you start trying to see if a node has recovered, which I believe is done at a decreasing frequency, e.g. 30secs, 1 min, 2 min etc?

from fluentd.

rummble avatar rummble commented on August 15, 2024

Just wondered where this fix fits into the fluentd roadmap, as its the only thing that really stopping me switching from Flume to fluentd. :-)

from fluentd.

kzk avatar kzk commented on August 15, 2024

@tagomoris Do you think is it acceptable to have new TCP connections, everytime chunks are sent? On EC2 environment, the same hostname could be resolved in to different IP. So we want to resolve DNS every time.

from fluentd.

tagomoris avatar tagomoris commented on August 15, 2024

To reconnect for every chunks is not so bad for good network conditions, but a few times of SYN packet resending (in Linux, it needs 3sec timeout) makes great problems with reconnect per chunks and cofigurations such as 'flush_interval=1'.

I vote +1 to reconnection revery 30sec/1min/2min (or configurable & default 1min?).

from fluentd.

kzk avatar kzk commented on August 15, 2024

I vote +1 to reconnection revery 30sec/1min/2min (or configurable & default 1min?).

Sounds reasonable. I will take a look at current implementation.

from fluentd.

frsyuki avatar frsyuki commented on August 15, 2024

I implemented dns cache. out_forward newly supports "expire_dns_cache" option.

default behavior: out_forward caches resolved host name and invalidates it only when the node becomes not available.
expire_dns_cache > 0: out_forward caches resolved host name and invalidates it when the node becomes not available or the specified expired time passed.
expire_dns_cache = 0: out_forward doesn't cache resolved host name.

from fluentd.

frsyuki avatar frsyuki commented on August 15, 2024

connection keepalive is another problem.

from fluentd.

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.