Git Product home page Git Product logo

Comments (2)

fabxc avatar fabxc commented on May 21, 2024

Two unrelated things are likely at play here.

The series in question contains a very large gap, which throws off our heuristic of how many result samples we will generate. I'll see whether this can be improved but it doesn't seem unreasonable to consider this an edge case for which we don't have to reach the target optimum.

The final chunk with the negative timestamps is a small bug.

from thanos.

fabxc avatar fabxc commented on May 21, 2024

The culprit is here: https://github.com/improbable-eng/thanos/blob/b4dbb272888930961d1418a8eb655410eb89de46/pkg/compact/downsample/downsample.go#L415-L428

The series in question is highly irregular and has stale markers set almost every 4th sample (something must've been sketchy with the target's reachability at the time).

Now we basically had the edge case of the last batch only containing a single sample and on top that sample being a staleness marker, which is skipped. Thus we add the nonsensical sample with timestamp -1.

Of course we should avoid having single sample batches as well. Will prepare a fix for both.

from thanos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.