Skip to content

Commit 7b9c935

Browse files
committed
[doc][db] Update required files
- data model is the most basic one - read/write path give general overiew of what happens - query language and query execution is something full fledged database should have (not the case for all the tsdb though) - storage engine, actually it's two parts, data and index for tags - distributed, a lot of tsdb are distributed (in some way ...)
1 parent a0ba24a commit 7b9c935

17 files changed

+44
-253
lines changed

.travis.yml

+2-8
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,10 @@ git:
88
# TODO: use docker service to start influxdb etc. and create database like oltpbench
99
# https://github.com/benchhub/oltpbench/blob/config/cleanup-v2/.travis.yml
1010
go:
11-
- 1.9.x
12-
- "1.10"
1311
- tip
1412

1513
install:
16-
- go get -u github.com/golang/dep/cmd/dep
17-
- dep version
18-
- dep ensure
19-
- pwd
14+
- go version
2015

2116
script:
22-
# - make install
23-
- make test
17+
- go version

Gopkg.lock

-196
This file was deleted.

Gopkg.toml

-37
This file was deleted.

doc/database/README.md

+26-11
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,35 @@
11
# Databases
22

3+
This folder contains notes on implementation of TSDBs.
4+
They should be merged into [awesome-time-series-database](https://github.com/xephonhq/awesome-time-series-database) eventually.
5+
36
Required list in readme
47

5-
- status: active|dead
6-
- repo: https://github.com/some/tsdb
7-
- website: https://some.tsdb.com
8-
- company: The TSDB Corp.
8+
- link to [awesome tsdb](https://github.com/xephonhq/awesome-time-series-database), which should contains all the basic meta
9+
- link to required files within the folder
10+
- a short overview
11+
- a key take way from this database
12+
13+
Required files for describing each database.
14+
15+
Internal
16+
17+
- **data-model.md** General data model, what is a time series for this TSDB (yeah, this definition varies).
18+
- **write.md** Write path, link to source w/ commit hash.
19+
- **protocol.md** Wire protocol format and transport, mainly about write because many TSDB have dedicated query language.
20+
- **read.md** Read path, link to source w/ commit hash.
21+
- **query-language.md** Query language.
22+
- **query-execution.md** Query execution and optimization, especially for distributed ones.
23+
- **storage-engine.md** Only applies to TSDB w/ their own storage format, i.e. write opaque blob to local fs or object store.
24+
- **schema.md** Only applies to TSDB w/ underlying database i.e. Cassandra, ElasticSearch
25+
- **distributed.md** Only applies to distributed TSDB, replication model, consensus protocol. Including those built on top of distributed data store i.e. Cassandra, S3.
926

10-
Required files for describing each databases, they will be merged into [awesome-time-series-database](https://github.com/xephonhq/awesome-time-series-database) eventually
27+
Operation
1128

12-
- **build.md** how to build it from source locally
13-
- **docker.md** how to run it using docker(-compose)
14-
- **config.md** config file example, how to config the system (underlying database, operating system) properly
15-
- **schema.md** schema for underlying database (i.e. Cassandra, ElasticSearch) if there is any
16-
- **write-path.md** how data is write into the database, link to source code file if possible
17-
- **read-path.md**
29+
- **build.md** How to build from source locally
30+
- **docker.md** How to run it using docker(-compose) locally
31+
- **config.md** Config file example, how to config the system (underlying database, operating system) properly
32+
- **k8s.md** How to run it on k8s, operator and special things about their operator e.g. local volume
1833

1934
## TODO
2035

doc/database/influxdb/read.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Read path for InfluxDB

doc/database/influxdb/write-path.md doc/database/influxdb/write.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Write Path
1+
# Write path for InfluxDB
22

33
Based on original notes from Xephon-K
44

doc/design/README.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Design
2+
3+
## TODO
4+
5+
- [ ] [data model](data-model.md)
6+
- [ ] [protocol](protocol.md)
7+
- [ ] [query language](query-language.md)

doc/design/data-model.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Data model

doc/design/protocol.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Protocol

doc/design/query-language.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Query Language
2+

doc/survey/collector/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Survey on metrics collectors
2+
3+
This folder contains survey on metrics collectors that supports multiple tsdb, which is no longer the goal of libtsdb-go.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)