Commit Graph

30 Commits

Author SHA1 Message Date
Victor Marmol
42add2409a Removing sampling and percentiles from interface.
Also removing all implementations.
2014-09-15 14:13:07 -07:00
Vishnu Kannan
9b5b221a57 Buffer stats in influxdb driver before writing to the Db. The buffering duration
is configurable via a flag and is set to 60 seconds by default.
The storage driver test code has been refactored a bit to help test the new buffering
feature and will be future proof.

Docker-DCO-1.1-Signed-off-by: Vishnu Kannan <vishnuk@google.com> (github: vishh)
2014-08-19 19:59:33 +00:00
Rohit Jnagal
ca9cd37e8a Reduce influxdb schema to only the values we currently plan to use.
We'll re-add new params as they are needed and as we understand influxdb
scalability better.

Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
2014-08-09 22:59:32 +00:00
Rohit Jnagal
67021958b7 Revert changes for smaller test size.
Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
2014-08-09 15:27:42 +00:00
Rohit Jnagal
24a5a6aa82 Resolve test conflicts on #167.
Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
2014-08-09 15:13:22 +00:00
Rohit Jnagal
10d631be6d Factor out data comparator for storage tests.
For influxdb, we are planning to export lesser data. Having a separate
comparator will let us reuse the same tests.

Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
2014-08-09 01:28:27 +00:00
Vish Kannan
6c2694a53b Merge pull request #105 from monnand/re-enable-influxdb
re-enable unit tests for influxdb
2014-08-06 16:46:21 -07:00
Nan Deng
55b65f4eb9 Retrieve 0 stats/samples when user asked for zero stats/samples 2014-07-23 17:28:41 -07:00
Nan Deng
f1a9a72146 more info from unit tests 2014-07-22 16:02:29 -07:00
Nan Monnand Deng
8c4a1ef81d Requires storage driver to return stats in time increasing order. Change influxdb driver to return stats in correct order. 2014-07-11 22:09:12 +00:00
Nan Deng
a96e4e12e2 style 2014-07-07 16:10:09 -07:00
Nan Deng
a1cb5bf4ef allow the storage to store some inaccurate time 2014-07-03 20:55:56 +00:00
Nan Deng
41dcf6d42d no curry 2014-07-02 15:20:21 -07:00
Nan Deng
562a150592 more on test 2014-07-02 15:12:37 -07:00
Nan Deng
795b451288 tested on multi-machine multi-container scenario 2014-07-02 14:24:45 -07:00
Nan Deng
ecf2346443 fix a bug in storage unit tests 2014-06-24 15:13:18 -07:00
Nan Deng
43346e5f29 fix typo 2014-06-19 14:19:44 -07:00
Nan Deng
77dc470f54 increase the coverage 2014-06-18 13:49:23 -07:00
Nan Deng
05ce0c01e3 fix a deadlock bug along with unit tests 2014-06-18 13:43:08 -07:00
Nan Deng
83d12ed5fa check error on AddStats() 2014-06-18 12:01:24 -07:00
Nan Deng
7f542f2952 do not always allocate a new slice 2014-06-18 11:45:24 -07:00
Nan Deng
21cf8472a0 remove constraints 2014-06-18 11:17:35 -07:00
Nan Deng
7258101720 add doc 2014-06-17 21:09:49 -07:00
Nan Deng
9c54221a54 defines the order of the returned recent stats 2014-06-17 21:07:40 -07:00
Nan Deng
20b13c4cfc add unit test 2014-06-17 20:59:33 -07:00
Nan Deng
cf8257cd70 fix a bug in memory storage and add a new unit test 2014-06-17 20:54:48 -07:00
Nan Deng
e412c042d3 storage unit test percentiles 2014-06-17 20:33:13 -07:00
Nan Deng
14581757e7 unit test for memory storage 2014-06-17 15:22:11 -07:00
Nan Deng
ca65e11486 storage unit tests 2014-06-17 15:12:35 -07:00
Nan Deng
7dd1f031a6 unit tests for storage driver implementations 2014-06-17 14:40:11 -07:00