Comments (4)
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.
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.
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.
@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)
- Panic: short record HOT 2
- Move to length-delimited records HOT 8
- Add first-class concept of topics HOT 11
- Extend record identifier HOT 9
- Long-term storage
- Docker repo doesn't contain recent releases HOT 4
- network HOT 3
- forwarder mangles bare percent signs HOT 2
- Integration with Fluentd HOT 1
- bufio.Scanner: token too long HOT 1
- Log records can be stored in wrong order HOT 8
- Implement optional text indexing for faster queries
- Implement token based access control
- Compacter writes too much data to disk HOT 1
- Proposal: Create ULID from timestamp contained in record HOT 1
- Local node unable to connect to self after netowrk change
- Unable to "make install" using the tar.gz package and no oklog command found HOT 2
- What's the best way to test the cluster in large installation is working
- How oklog stores data?
- Web UI Improvements
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oklog.