Comments (2)
I'm going to close this for now. While there's a good solution to this, it would appear to be not worth the effort at this point. There's a strong consensus that for most use cases, if you're running Node on a machine with multiple CPUs, you should either:
- (if you're on a cloud provider) spend the same amount of money to turn that machine into multiple machines with single CPUs and run multiple instances of your app, or:
- (if you're on discrete hardware) use a hypervisor or container scheduler to run multiple instances of your app on that machine as though they are individualized machines.
With the above, you multiply your durability for literally free, and gain the advantage of a less complex codebase as a result.
I'll reopen if this becomes a popular request!
from bristol.
Good workaround -- unfortunately, this is the case with pretty much all logging libs that keep an open WriteStream (and frankly, using one that utilizes one-off writes would have so much of a performance impact and draught in the thread pool that it wouldn't be worth using one that doesn't).
However, I'm keeping this incident open because I have a decent idea to get child processes' Bristol instances to autoconfigure according to the parent process, and automate the passing of messages. I'll comment again when that's in.
from bristol.
Related Issues (20)
- Allow Bristol to be configured entirely through an options object passed to the constructor
- Allows targets to be configured by passing an options object, rather than using chained methods
- Move standard formatters to public export HOT 3
- Use json-stringify-safe for json formatter HOT 4
- Change log level in runtime HOT 2
- v0.3.3 not at latest on npm HOT 3
- Use splunk HOT 1
- A question about Bristol and cluster HOT 2
- Child logger support HOT 1
- Dates do not get passed to formatter
- Is it possible to add a unique request id to the logs for web apps?
- Moment.js vulnerability HOT 1
- Can't omit the file path altogether HOT 2
- Logs to file not flushed on exit
- Pass the unformatted message(s) to the target
- Bristol 1.0 HOT 10
- Consider using a lighter alternative to Moment HOT 3
- TypeScript
- Inconsistent nested field logging with the human formatter HOT 1
- Is this package still maintained?
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 bristol.