Giter Site home page Giter Site logo

Comments (1)

tdunning avatar tdunning commented on June 16, 2024 1

Pure sliding windows are probably not possible with a t-digest and basing windows on counts is a bit unusual as well. You can implement a form of exponential windowing pretty easily, but it becomes very difficult to understand the digest invariant if you do that.

Typically, what is done instead is to store a digest per time period in compressed form, typically for a minute or 5 minutes. At query time, you simply combine as many digests as necessary to cover the window you want. In many cases, you store many digests for each window so the aggregation involves multiple digests at each time point.

The key point here is that the total bandwidth of metrics is heavily compressed but accuracy is not lost. Suppose that you are storing 10,000 digests every minute, a few of which get a million values per second, most get thousands of samples per second and some get only a few values per minute. The hot digests will have nearly the maximum number of centroids, but will be bounded in size to a few kB (for compression = 100 or 200). The cold digests will only have a few centroids and thus will be considerably smaller. Overall, however, the overall number of bytes per second required to store your methods will be less than 250kB/s which is very modest for such a large amount of metrics. Moreover, a year of data at full resolution is less than 10TB which is (amazingly) now a relatively small amount of data.

If you add aggregated digests for each day then querying any time period will be very fast.

In the end, the question of windowed aggregates is why you need a truly windowed digest.

from t-digest.

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.