Comments (3)
Is it possible to implement some kind of sharding in your cluster? Thanos supports sharding using re-labelling: https://thanos.io/tip/thanos/sharding.md/#relabelling With sharding, compactors can create sharded smaller blocks and you'll likely not run into this hard limit.
@harry671003 Thanks for the prompt response. I have checked this out but it is super unclear to me how i would apply this.
The metrics come from 26 clusters and are all tagged with a globally unique label per cluster. We have 3 large receivers and all clusters write to a single remote write endpoint.
So for example is it possible to run 2 compactor instances each responsible for half the clusters? Would they not drop all blocks as we have a single remote write for all clusters?
See: https://github.com/prometheus/prometheus/blob/main/tsdb/docs/format/index.md#symbol-table.
Do i understand this correctly that dropping labels (for example uid) will reduce the size of this table?
from thanos.
This is a hard limit in the symbol table size in Prometheus TSDB of 4GB.
See: https://github.com/prometheus/prometheus/blob/main/tsdb/docs/format/index.md#symbol-table. The length field in the symbol table cannot exceed 4 bytes which limits the size to 2^32 bytes.
Is it possible to implement some kind of sharding in your cluster? Thanos supports sharding using re-labelling: https://thanos.io/tip/thanos/sharding.md/#relabelling
With sharding, compactors can create sharded smaller blocks and you'll likely not run into this hard limit.
from thanos.
I have checked this out but it is super unclear to me how i would apply this.
I'll admit that I haven't used this myself. Full disclaimer, I work on Cortex, another project that shares some code with Thanos. Maybe you can reach out on the Thanos slack channel asking for help.
Do i understand this correctly that dropping labels (for example uid) will reduce the size of this table?
Yes. The symbol table contains all the unique label strings. Dropping high cardinality labels will reduce the size of the symbol table.
from thanos.
Related Issues (20)
- compactor: Fails cleaning blocks marked for deletion with Access Denied (solved)
- Caching Bucket File Unknown Flag HOT 2
- Enhance Thanos Ruler UI with Deep Linking Capabilities for Specific Alerts
- Thanos Store Does Not Reflect S3 Storage Unavailability in Health Checks HOT 2
- fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?) HOT 1
- Compactor Warning: block has no labels left, creating one
- Compactor: Deadlock on S3 error during meta sync HOT 3
- Problem with receiver and store HOT 1
- Compactor: Skip compaction block index verification if metadata file hash enabled
- Compactor: Context canceled HOT 2
- Ruler: Evaluations stop without errors or logs
- Receiver: Introduce max bucket limit for native histograms
- Enable OpenSSF Scorecard to enhance security practices across the project
- Compactor: UI shows `[object Object]`
- Check correct error when opening rule files in tools
- thanos-sidecar uploads OOO block before Prometheus compacts it, upsetting thanos-compact HOT 1
- Query: possible goroutine leak seen between queriers on v0.35.1 HOT 2
- Will already downsampled blocks be merged?When downsampled blocks are merged into new blocks, do the new blocks still need to be downsampled?
- Thanos doesn't show metrics older than ~38 hours after upgrade from 0.15 to 0.35.1 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 thanos.