Comments (6)
With atomicity and staleness handling, which I hope to get in with the new storage for 2.0, I can see this requiring more involved logic which makes considerations around the current implementation largely moot.
Let's get something working, and then benchmark.
from tsdb.
Federation does work modulo #10 which can cause duplicate entries for overlapping selectors right now. So yes, this is is a low priority issue for now.
from tsdb.
Just two thoughts at this point (not much time to dig deeper):
-
The fast access path for the last sample was not only motivated by federation but also by the fact that rule evaluation are often just accessing the last sample of a series.
-
Given that allocation churn of the query layer seems a problem right now, I could imagine that a low-alloc access path to the last sample would help here (note that many advanced setups have a huge amount of rule evaluations going on all the time). (This is based on naïve code reading if how the iteration for for federation works. Might be all wrong.)
from tsdb.
The fast access path for the last sample was not only motivated by federation but also by the fact that rule evaluation are often just accessing the last sample of a series.
To my knowledge rule evaluations are just regular queries and do not make us of the particular storage call. The query engine does not use it internally either.
I'd argue that almost all rule evaluations that are relevant in cost, use time aggregation anyway and it doesn't apply.
Given that allocation churn of the query layer seems a problem right now, I could imagine that a low-alloc access path to the last sample would help here (note that many advanced setups have a huge amount of rule evaluations going on all the time). (This is based on naïve code reading if how the iteration for for federation works. Might be all wrong.)
Not so much of a problem. Just way higher than it would need to be. The allocs don't relate so much to access but to what the QE allocates itself. v2 also allocates internally when being queried, but that's not happening in v3.
from tsdb.
Storage v2 transparently returns an "instant" series iterator for an instant query with a timestamp beyond the end of a series.
But yes, range queries obviously cannot benefit from that.
from tsdb.
As per reports federation actually works faster already and there's currently no need for adding complexity of the fast access.
from tsdb.
Related Issues (20)
- Memory issues on short block sizes HOT 23
- Flaky test with the new live reader HOT 3
- TSDB CLI tool doesn't work on live Prometheus HOT 1
- Snapshots with head block are unsafe HOT 7
- Support selectors for LabelNames and LabelValues HOT 2
- double metric HOT 4
- selectOverlappingDirs bug that misses some directories HOT 1
- Why do Max and Minn have opposite definitions? HOT 1
- Improve renameFile function HOT 5
- Cleanup temp file if rename/replace failed HOT 1
- "unknown series references" after clean shutdown HOT 47
- Log storage filesystem type at startup HOT 4
- Investigate WAL compression HOT 1
- Prometheus restart very slowly when the size of data folder is huge HOT 18
- prometheus_tsdb_compactions_failed_total metric not incremented when compaction fails HOT 1
- Unstable: Not all data returned after write HOT 2
- How best to write blocks when bulk importing? HOT 6
- Cannot run more than one wal.LiveReader with metrics
- Proposal to compute actual size of files on filesystems with compression HOT 4
- docs outdated on Label offset Table? 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 tsdb.