Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data loading #10

Closed
at15 opened this issue Nov 12, 2016 · 3 comments
Closed

Data loading #10

at15 opened this issue Nov 12, 2016 · 3 comments
Assignees
Milestone

Comments

@at15
Copy link
Member

at15 commented Nov 12, 2016

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

  • read and de serialize generated file, post into TSDB
  • Pro
    • take less disk space
    • less disk IO
  • Con
    • de serialization overhead
    • can not be reused

Pre transform

  • read and de serialize generated file, save as the exact post format to file
  • read the saved the file and post exact bytes to TSDB
  • Pro
    • no de serialization overhead
    • can be reused
  • Con
    • may take large disk space, due to tag and series name will be duplicated
    • larger disk IO

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 at15 added this to the 0.0.1 milestone Nov 12, 2016
@at15 at15 added working and removed disscusion labels Nov 24, 2016
@at15 at15 self-assigned this Nov 24, 2016
@at15 at15 mentioned this issue Nov 24, 2016
12 tasks
@at15
Copy link
Member Author

at15 commented Nov 24, 2016

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 at15 mentioned this issue Nov 24, 2016
13 tasks
@at15 at15 removed the working label Dec 4, 2016
@at15
Copy link
Member Author

at15 commented Dec 16, 2016

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

@at15
Copy link
Member Author

at15 commented Jan 6, 2017

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

@at15 at15 closed this as completed in d3f0e11 Mar 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant