MostDB
MOST: Model-Based Compression with Outlier Storage for Time Series Data
I. Requirements
- InfluxDB v2, both client and server
- OpenJDK v11
- A C++17 compiler
- CMake v3+
- Maven v3+
II. Before building: Create InfluxDBv2 token
- Start the InfluxDBv2 server.
- Create user(default 'mostdb'), password(default 'mostdb123'), bucket(default 'mostdb'), org(default 'mostdb') for MostDB.
- Open http://localhost:8086 on browser and copy your token to
// in src/main/java/team/ictdb/mostdb/MostDB.java
private char[] token = ("<Your token here>").toCharArray();
III. Building from source
1. Build and install libmostdb_core
export JAVA_HOME="..." #if necessary
cd src/main/cpp
cmake -B build .
cd build && make && make install
2. Build and install MostDB
# return to root directory of this project
mvn compile
mvn test
mvn package
mvn install
Then you can use MostDB in other maven projects.
Attention
This is a prototype implementation. We are still working on code refining.