Giter Site home page Giter Site logo

ollie314 / akumuli Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhouzhenghui/akumuli

0.0 2.0 0.0 760 KB

Storage engine for time-series database

Home Page: akumuli.org

License: Apache License 2.0

CMake 1.57% C++ 97.02% C 1.21% Shell 0.19%

akumuli's Introduction

README

Akumuli is a time-series database. The word "akumuli" can be translated from esperanto as "accumulate".

Rationale

Most open source projects focus on query language and things useful for web-analytics, but they ignore some serious problems:

  • Dependencies on third-party software.
  • As a consequence, it's impossible to use them as embedded database.
  • Timestamps: they're doing it wrong!
  • General purpose storage engines don't work well for time-series data (low write throughput).
  • They can't fit in constant amount of disk space, like RRD-tool.

For example, OpenTSDB depends on Hadoop and HBase and can't be used in embedded scenario. RRD-tool can be used in embedded scenario and uses constant amount of disk space, but has very slow and inefficient storage engine.

Most systems round timestamps up to some value (for example, OpenTSDB rounds every timestamp up to one second). This makes it difficult or impossible to use these systems in process control domain. Worse than that, they only work with real timestamps (like UNIX time or UTC time). It means one can't use some other values as timestamps. For example, some sensors or ASICs can generate time-series data that contains sequence numbers that can be used as timestamps directly.

This project was started to solve these issues. Akumuli is embedded time-series database, without dependency on third-party software or services, that implements custom storage engine designed specifically for time series data.

Some characteristics of time series data

  • High write throughput (millions of data-points per second)
  • Many time series data sources are periodical
  • Write depth is limited (very late writes can be dropped)

These characteristics can be used to "cut corners" and optimize write and query performance.

Features

  • Implemented as dynamic C library
  • Memory mapped
  • x64 only
  • Uses constant amount of disk space (like RRD-tool)
  • Crash recovery
  • Very high write throughput
  • Allows unordered writes
  • Compressed (up to 3x)
  • Interpolation search and fast range scans

Documentation

How to build

Ubuntu

Prerequisites

Automatic
  • Run prerequisites.sh. It will try to do the best thing.
Manual

In case automatic script didn't work:

  • Boost:

    sudo apt-get install libboost-dev libboost-system-dev libboost-thread-dev libboost-filesystem-dev libboost-test-dev libboost-coroutine-dev libboost-context-dev

  • APR:

    sudo apt-get install libapr1

  • Cmake:

    sudo apt-get install cmake

Building

  1. cmake .
  2. make -j

Questions?

Google group

akumuli's People

Contributors

lazin avatar mkpankov avatar sumkincpp avatar

Watchers

 avatar  avatar

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.