xephonhq / xephon-b

A time series database benchmark suite
https://xephonhq.github.io/xephon-b/
MIT License
8 stars 3 forks source link

Data loading #10

Closed at15 closed 7 years ago

at15 commented 7 years ago

Related #1 #9

Generated data is stored to disk and need to be inserted into TSDB

NOTE: the generated data is independent of specify tsdb and is serialized using protobuf. So it need to be transformed before inserted into TSDB

On the fly transform

Pre transform

However when it comes to implementation these two have little different

data -> de serialization ->  pack into certain format (i.e. JSON) -> client lib -> TSDB
data -> de serialization ->  pack into certain format (i.e. JSON) -> file -> client lib -> TSDB
at15 commented 7 years ago

There is a problem for decoding value, the value could be integer/double. The current solution is, specify the data type when load the data, one data file can only have integer or double, not both.

at15 commented 7 years ago

as for exp backoff, besides influx comparison, there is another example https://github.com/rdegges/go-ipify

at15 commented 7 years ago

similar to backoff, saw a Circuit Breaker Pattern and an implementation https://github.com/sony/gobreaker