Comments (2)
I see. What's happening is that the message buffer before logstash sending is being filled up, causing logging to block until logs have been sent to logstash and space is available in the buffer.
This is probably a symptom of logs being produced faster than logstash can consume them, but just to make sure it's not a problem with the library: do you have any numbers on the max throughput in logs/second your logstash backend can handle, versus how much your applications were producing per second during the spike?
Assuming that the problem is a momentary spike exceeding what the backend can consume, there is not much we can do about it in the library.
We could drop log messages instead of block, but I would prefer the library to never drop messages if possible.
Another option is to have no limit on queue size, however you are then running into potential OOM-problems instead. You can try increasing the buffer_size
config to something much higher to trade memory for spike tolerance.
from logstash-json.
Closing this for now. If you again encounter issues with the lib underperforming compared to volumes you know your logging backend can handle, feel free to reopen this.
from logstash-json.
Related Issues (14)
- Reconnnect on connection issues HOT 2
- Need to add field dynamically HOT 2
- Remove timex dependency
- Add a formatter for TCP logging HOT 1
- application is crashed on some data HOT 3
- Use Travis CI
- Publish new hex package HOT 1
- Unchecked dependencies for environment tes HOT 4
- Optional JSON library selection HOT 1
- Use message formatter from :console
- UDP appender HOT 1
- Add :error_log parameter
- cannot import in logstash 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 logstash-json.