Commit Graph

30 Commits (c6763fc0aec7fe6964c7a5ab3b690f4b0af58697)

Author SHA1 Message Date
Jack Zampolin e39dcaf8f0 Clean up code, fix struct and file names to fit with golang convention 2016-06-22 13:13:36 -07:00
Jack Zampolin 92c5e3828f Address PR comments 2016-04-25 11:19:02 -07:00
Jack Zampolin 0521ae78a0 Address PR comments 2016-04-25 11:13:10 -07:00
Jack Zampolin 9decf09d48 Add v2 stress test 2016-04-21 11:03:43 -07:00
Ben Johnson 5a0d1ab7c1 rename influxdb/influxdb to influxdata/influxdb
This commit changes all the import and URL references from:

    github.com/influxdb/influxdb

to:

    github.com/influxdata/influxdb
2016-02-10 10:26:18 -07:00
Michael Desa 7c025d8497 Change db flag message 2015-12-29 13:12:05 -08:00
Michael Desa ebd9b9978e Add flag to specify db and clarify flag descriptions 2015-12-29 11:31:28 -08:00
Jack Zampolin 7d0d9b75d9 Add backoff to retry function
Set backoff constant

Wait to parse flags

Remove unnecessary logging

Fix retry logic
2015-12-14 13:46:40 -08:00
Michael Desa 59169dcdc4 Implement WriteHTTPHandler 2015-12-08 16:09:12 -08:00
Michael Desa 364a699416 Add broadcast channel for stress 2015-12-08 14:29:22 -08:00
Michael Desa b86c0d31d7 Refactor stress tool
Add StressTest type and auxillary interfaces

Add config structs

Move generator to config

Add utility methods used in stress

Add basic components for a stress test

Add touches

Add configuration options

Add unified results handlers

Add final print out of results

Add Success function to response type

Add query support

Send query results

Add comments to run.go

Change Basic to BasicWriter

Add basic query

Add incomplete README

Abstract out response handling

Change plugin to basic

Add responseHandler type

Add additional parameter to Query function

Add todo comments and cleanup main

Lower hard coded value

Add flag for profiling

Fix race condition

Wait at the right place

Chane point from struct to interface

Improve generic write throughput

Reorganize

Fastest State

Add toml config

Add test server

Add basic working version of config file

Move config file logic into its own file

Fix broken config file

Add query count to stress config

Add support for concurrency and batch interval

Reorder config option

Remove unneeded init

Remove old stress package

Move new stress code into stress directory

Rework influx_stress tool

Do something reasonable if no config is given

Remove unneeded comments

Add tests for stress package

Add comments and reorganize code

Add more comments

Count lines posted correctly

Add NewConfig method

Fix style issues

Add backticks to flag description

Fix grammar

Remove `StartTimer` calls where appropriate

Fix comment language

Change Reader to Querier

Reorder defer

Fix issues bought up by golint

Add more comments

Add more detailed Readme

Increase counter appropriately

Add return errors where appropriate

Add test coverage

Move `now()` from QueryClient to QueryGenerator
2015-11-17 12:16:31 -08:00
Michael Desa 0035b79a84 Remove unneeded lines 2015-10-21 19:26:58 -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 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 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 e608e9b79b Add stress
First pass at running stress test from a toml
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 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 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 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
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