Commit Graph

61 Commits (1f31e8b70778c80a1bbfca0e3437f52eb26c3e7a)

Author SHA1 Message Date
Jonathan A. Sternberg 477d6231db Update source files to pass vet checks for go 1.7
The vet checks for some files did not pass for go 1.7. As part of a
preliminary start to making go 1.7 work with this software, go vet
should pass.

Also updated the gogo/protobuf dependency which fixed the code generator
to work with go 1.7 too. Ran `go generate` on the entire repository to
ensure every file was up to date.
2016-09-14 15:01:22 -05:00
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 a507a8dd8e Add README.md for influx_stress 2015-12-16 16:20:37 -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 f9fa366861 Add querying across cluster
Add support for precision
2015-12-02 14:49:23 -08:00
Michael Desa b0f27beb12 Add support for writing to a cluster 2015-11-30 10:22:12 -08:00
Michael Desa eb0e760763 Update stress config examples 2015-11-17 14:36:10 -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
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