Michael Desa
0035b79a84
Remove unneeded lines
2015-10-21 19:26:58 -07:00
Philip O'Toole
64bf96e007
100B_STD should actually write 100B points
...
[ci skip]
2015-10-15 16:54:29 -07:00
Michael Desa
359f50ff85
Add support for flags overwriting config file
...
Previously the test file would over write any flags passed to
influx_stress, now flags overwrite config file options
Ammended with nit fixes
2015-10-14 16:14:20 -07:00
Michael Desa
02349a63d5
Change precison on example
2015-10-05 12:29:58 -07:00
Michael Desa
70c7d1c4d8
Change file names to be more semantic
2015-10-05 12:29:11 -07:00
Michael Desa
2ca11072e8
Change `jitter` to false in examples
2015-10-05 12:19:59 -07:00
Michael Desa
52b7e557c1
Add support for timestamp jitter
2015-10-05 12:09:08 -07:00
Michael Desa
68c1d05ad4
First pass at adding timestamps
2015-10-02 16:05:06 -07:00
Michael Desa
027da3dbb4
Add examples folder
2015-09-30 15:55:09 -07:00
Michael Desa
f056753afe
Add moderate burn test
...
First pass at constructing points myself
2015-09-30 15:55:07 -07:00
Michael Desa
d6027071d2
Add optional jitter to timestamps
2015-09-30 15:55:07 -07:00
Michael Desa
293fad1e20
Add note about buffer time and change example_2
2015-09-30 15:55:07 -07:00
Michael Desa
8a76e7db78
Add comments and tests
2015-09-30 15:55:07 -07:00
Michael Desa
ee9c78735e
Add configurable channel buffer size
2015-09-30 15:55:07 -07:00
Michael Desa
ecb9bd9592
Add support for stress test under query load
2015-09-30 15:55:07 -07:00
Michael Desa
2465dbc788
Add high performance stress test example
...
First round at adding query load
Working draft:
Not happy with things, but it works
2015-09-30 15:55:07 -07:00
Michael Desa
22a6f79a3c
Add support for `tag_count` config option
...
It is now possible to configure arbitrarily many tags in a generic
format. That is specifying the config option `tag_count=10` will add 10
tags to a series that are of the form `tag-key-n=tag-value` where n
ranges from 0 to 9.
Save current state
2015-09-30 15:55:06 -07:00
Michael Desa
03f291d78c
Add comments and shuffle var declarations
2015-09-30 15:55:06 -07:00
Michael Desa
fdfb039a44
Allow configuration via config file or flags
...
Note that config file takes precedence to flags
2015-09-30 15:55:06 -07:00
Michael Desa
4e587b4622
Add comment to example toml file
2015-09-30 15:55:06 -07:00
Michael Desa
48dde6b16c
Add support for config file
2015-09-30 15:55:06 -07:00
Michael Desa
911623f5f6
Add quick notes
2015-09-30 15:55:06 -07:00
Michael Desa
e608e9b79b
Add stress
...
First pass at running stress test from a toml
2015-09-30 15:55:06 -07:00
Michael Desa
e43b60b8e1
Add example config for stress test
2015-09-30 15:55:06 -07:00
Michael Desa
d85c4f7699
Cherry pick failed requests from 2d67a9e
...
Commit 2d67a9ea22
started tracking failed request. This commit cherry picks the
functionality introduced there.
2015-09-11 15:10:15 -07:00
Michael Desa
70c816e236
Add optional precision setting
2015-09-09 11:21:17 -07:00
Michael Desa
551e51a643
Move `cmd/influx_stress/runner` pkg to `stress`
2015-09-09 11:21:17 -07:00
Michael Desa
c773df00ef
Add throttling of requests
2015-09-09 11:21:17 -07:00
Michael Desa
2b0b66d7d6
Add a configurable `Measurements` type
...
Previously the measurement that was getting written into InfluxDB was
hard coded in the `Run` method as `cpu`. Now you can specify a
measurements by passing an `-m` flag to `influx_stress`.
The `-m` flag accepts a comma separated list of measurements. (e.g.
`influx_stress -m cpu,mem,disk`)
2015-09-09 11:21:17 -07:00
Michael Desa
d63ac6a842
Add tests for runner.go
2015-09-09 11:21:17 -07:00
Michael Desa
35a0477f05
Add the an error to the NewCleint
...
Additionally the Config definition of the Config type was moved to just
above the definition of the NewClient Method.
2015-09-09 11:21:17 -07:00
Michael Desa
dd8413d9ac
Missed one last thing for the timer
2015-09-09 11:21:17 -07:00
Michael Desa
e29b159079
Change Timer method names to be more semantic.
...
Additionally, getter and setter method were added to the Timer type.
2015-09-09 11:21:17 -07:00
Michael Desa
1a3d6cb74a
Rename newResponseTime to NewResponseTime
2015-09-09 11:21:16 -07:00
Michael Desa
4413b302be
Fix sorting for the ResponseTimes type
...
The `sort` methods were failing as responseTimes couldn't be cast to an
[]int. To fix this `ResponseTimes` now implements the `sort.Interface`
interface.
2015-09-09 11:21:16 -07:00
Michael Desa
d54e439385
Change responseTimes to its own type
...
`responesTimes` was an []int and is now it own type
2015-09-09 11:21:16 -07:00
Michael Desa
3ae5183592
Add comments where needed
2015-09-09 11:21:16 -07:00
Michael Desa
a19e2d9f50
Rename `Runner` to `Run`
2015-09-09 11:21:16 -07:00
Michael Desa
71d8047ad3
Pull the body of influx_stress main out
...
This commit abstracts out the body of `main()` and moves it into a separate
function `Runner` in `runner/runner.go`. Additonally two new types,
`Timer` and `Config` were introduced.
`Runner` takes in a `*Config` and returns the total number of points
written `totalPoints`, an slice of response times `responseTimes`, and a
timer with the starting and ending times of the test `*Timer`.
2015-09-09 11:21:16 -07:00
Michael Desa
d57771dc17
Add Timer type that keeps track of start & end
2015-09-09 11:21:16 -07:00
Michael Desa
8b89332029
Add new file `runner.go`
2015-09-09 11:21:16 -07:00
Paul Dix
375afc3fcc
Update stress to work with fewer than 10k series.
2015-08-20 09:36:06 -04:00
Paul Dix
9a53406e55
remove extraneous debug stuff
2015-08-16 12:46:50 -04:00
Paul Dix
6776014047
Fix bug in stress script, remove extraneous printlns
2015-08-16 12:46:50 -04:00
Paul Dix
48ede78d98
mend
2015-08-16 12:46:50 -04:00