Git Product home page Git Product logo

Comments (4)

peterbourgon avatar peterbourgon commented on May 15, 2024

A forwarder does nothing more than netcat would. Why would it be overkill to have one per process? This is the pattern employed by e.g. svlogd and many other logging pipeline systems.

from oklog.

jtarchie avatar jtarchie commented on May 15, 2024

Is there a reason not to have one process for multiple writers?

The reasoning is that our deployments can have very specific allocations on them. Each process needs a certain amount of CPU, disk space, memory, etc. The overhead of adding a forward for each process can cause a lot of context switching for kernel.

Is it more expensive to have a many processes select from a single pipe or have a single process select from many pipes? That is an honest question, I don't know.

The work we've done with the metron forwarder is about having one process read from multiple sources.

I could also be spewing a lot of nonsense I know nothing about. πŸ˜›

from oklog.

peterbourgon avatar peterbourgon commented on May 15, 2024

The overhead of adding a forward for each process can cause a lot of context switching for kernel.

I'll take your word for itβ€”but I'm not really convinced without concrete e.g. profiling data :)

The main reason to use a single forwarder per process (service) is because it's the most straightforward way to abide the 12factor rule of logs as streams. There's certainly nothing wrong with running a single forwarder for multiple processes (services), if it's not too complicated. But I don't have any specific recommendations.

from oklog.

josephglanville avatar josephglanville commented on May 15, 2024

@jtarchie you could write a plugin for your existing forwarder that connects to and forwards to the ingest nodes. This would allow you to continue to capture the logs from multiple processes (or harvest from log files) and forward to oklog.

from oklog.

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.