Comments (5)
typically this happens when write queues are not sized correctly.
when the queue fills up it will block ingest. this is by design.
you can either make your queues bigger, or increase write concurrency to cassandra. (may or may not be very helpful, depends on how long it takes for the queue to fill up and drain)
you can look at the write queue panel on the dashboard to see this.
from metrictank.
The write queues are at 5.5 Million each and write concurrency is set to 24.
On metric flush the queues wont exceed 2 million. This might be a bit inaccurate because we only have a resolution of 30sec on metrictanks metrics.
I think there was some kind of formula to calculate the min queue size, but i have to search it in the docs. But i might be wrong with it.
Edit:
Found it:
Does unique series relate to active series idx or tank? https://github.com/grafana/metrictank/blob/v1.0.0/docs/cassandra.md#write-queues
For tank it would fit into the queue size but for idx it won't fit.
Queue Size: (245.500.000) = 132.000.000
Tank: (series * (34+1)) = 47.450.000
Idx: (series * (3*4+1)) = 181.090.000
from metrictank.
if not the queues, the other reason may be that your cpu's get maxed out when it starts sealing all chunks and adding them to the write queue
from metrictank.
It seems you're right, the primary which has to handle more metrics reaches 85% and builds up the backlog.
The second primary which has to process less metrics only has 50% cpu usage and no significant backlog.
Maybe we can reassign some partitions to distribute the metric load more evenly.
I will close this ticket after our measures were successful to confirm that it was the cpu usage.
Thanks for your help
from metrictank.
I could confirm that it was in fact a cpu bottleneck, we've rebalanced the metrics more evenly and even a big flush does not cause backlog anymore.
Thanks for your help
from metrictank.
Related Issues (20)
- MT-Whisper-Importer-Writer can get stuck on invalid requests HOT 1
- request: tag-native divide and asPercent functions HOT 9
- Panic and crash in chunk cache
- Graphite API responds with 413 when response is too large not request HOT 5
- Add more logging with traceID HOT 2
- Ability to "revive" archived series HOT 15
- Support "archive" in tags/delByQuery HOT 2
- Stored 'lastupdate' being approximate can cause inconsistent missing data HOT 6
- deletes don't affect stale metrics. They may resurface if max-stale gets increased HOT 2
- Move to go modules for dependency management HOT 5
- Authentication in mt-gateway or document other way to proceed without tsdb-gw HOT 4
- Panic in mt-whisper-importer-reader HOT 1
- Conf parsing changes fail to parse regex HOT 2
- Multiple shards on same hardware node HOT 2
- metrictank memory issues HOT 6
- UnpartitionedMemoryIdx.Get does not check writeQueue
- MetricData messages in mdm topic poorly defined. make versioning explicit?
- Is the project stalled? HOT 2
- Control partition size using Cassandra as backend HOT 1
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 metrictank.