Comments (2)
That sounds like you're logging more than what it can handle. The channel can only absorb a „burst“, not a sustained higher amount of messages. If you raise it, it'll sustain it for a bit longer, but eventually will run out anyway. You can choose between:
- Slowing down the application by the logging (making it blocking).
- Preferring performance over all the log messages and losing messages.
You could, in theory, set the channel size to insanely huge size so it absorbs the whole stress test, but that doesn't sound like a good idea in general.
from async.
Thank you for your answer!
That's what I don't understand: I'm increasing the buffer like crazy and still got these drops.
I just want to do that for the stress test before setting a more reasonable size for the channel.
EDIT: after going up to 100k no drop anymore :D
EDIT2: It turns out I forgot to put a BufferWriter to my Drain, works way better with it… ^^'
from async.
Related Issues (13)
- Dropping AsyncCore in the logger thread will cause panic HOT 5
- A future-based drain for the asynchronous future HOT 7
- Release new minor version HOT 1
- Replace crossbeam with std::sync::mpsc HOT 5
- slog-rsync doesn't compile with rust-nightly-2017-07-08 or rust-nightly-2017-07-09 HOT 4
- Performance regression between 2.3.0 and 2.5.0 - crossbeam-channel? HOT 9
- crates-io release? HOT 4
- missing tag for v2.5.0 HOT 1
- panic with message '`ToSendSerializer` can't fail: Other'
- Solution for using in DLL
- question: How to flush on a async logger? HOT 7
- slog-async: logger dropped messages due to channel overflow HOT 3
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 async.