Commit Graph

88 Commits (d0688201ba013baea8a1a15f5ac2283db1981afe)

Author SHA1 Message Date
Edd Robinson 67d1fa3972 Cleanup remaining packages 2018-01-21 12:08:25 -08:00
Edd Robinson b1b2b8d43d Clean up stress package 2018-01-21 10:07:08 -08:00
Stuart Carnie f3d45ba301 influxdata/influxdb/influxql -> influxdata/influxql 2017-10-30 14:40:26 -07:00
Andrew Montgomery-Hurrell 2ed0d2d1c9
Make client errors more helpful on downstream errs
When a downstream server such as a proxy or loadbalancer between
influxdb and the client produces an error, the client currently does
not make this very obvious.

This change introduces checks on both the content type and the
influx version header to identify whether a request was served by
influxdb itself and returns a more appropriate error in the cases
where it can be determined a downstream issue is at play.
2017-10-26 11:56:29 +01:00
Adam 2259ada8c3 adds a new header key/value X-Influxdb-Build that has value OSS if called from open-source build, and ENT if called from enterprise. This commit sets the value for the OSS case, and also creates the proper flag 2017-07-07 10:59:26 -04:00
Jason Wilder 2cac46ebbc Convert usage of strings to []byte
Measurement name and field were converted between []byte and string
repetively causing lots of garbage.  This switches the code to use
[]byte in the write path.
2017-05-12 14:05:19 -06:00
Mark Rushakoff 601cbcd084 Merge branch '1.2' into mr-merge-12 2017-02-17 16:14:22 -08:00
Jonathan A. Sternberg 2fe48d6781 Rename zap import back to github.com/uber-go/zap
They rebased a revision we were previously relying upon that allowed us
to use the vanity name so we are reverting back to an older version with
the old import path.
2017-02-17 17:17:22 -06:00
Edd Robinson fb7388cdfc Remove dead code from various pkgs 2017-01-17 09:47:34 -08:00
Cory LaNou 3c518f8927
panicing is bad -> error returns are good 2017-01-03 14:28:29 -06:00
Gustav Westling 56d98325da
Removed ineffective assignments, and added checks for errors that previsouly was not checked 2016-12-29 20:26:15 +01:00
Jack Zampolin 07071279dc Update README.md 2016-09-15 15:49:29 -07:00
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
Ben Johnson 8aa224b22d
reduce memory allocations in index
This commit changes the index to point to index data in the shards
instead of keeping it in-memory on the heap.
2016-08-16 14:09:00 -06:00
Jonathan A. Sternberg ccd1bd91f4 Copy tags in influx_stress to avoid a concurrent write panic on a map
Removing lock from the same object as that object never does anything
except for having attributes read.
2016-08-01 13:18:21 -05:00
Cory LaNou 1117526873 remove IF EXISTS/IF NOT EXISTS from influxql language 2016-07-29 12:58:05 -05:00
Jack Zampolin f9e082663c Add @ symbol to -v2 stress 2016-07-06 17:10:28 -07: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 fe0ba554e6 Add ssl, un, pw support to v2 stress 2016-06-14 16:47:47 -07:00
Jack Zampolin 216021371a Fix write to and query from cluster 2016-06-13 11:30:56 -07:00
Joe LeGasse 04c72a2c07 Correct stress/v2 tests to not depend on $GOPATH
The test assumed that you were working within a single directory
$GOPATH. `go test` actually sets the current directory to the directory
of the package being tested, so the relative path to the test file could
be used instead.
2016-05-26 11:46:10 -04:00
Jack Zampolin 1f62ecd778 Merge pull request #6443 from influxdata/js-new-stress
Add v2 stress test
2016-05-23 13:47:33 -07:00
Ross McDonald 96ad9c57d9 Move to Go 1.6.2. 2016-05-03 11:33:49 -05:00
Jack Zampolin 49a5309ac1 Add DESIGN.md for clarification 2016-05-02 15:57:56 -07:00
Jack Zampolin dc69aadd83 Add DESIGN.md 2016-04-28 14:26:57 -07:00
Jack Zampolin 9a8a794ebb Address PR comments 2016-04-28 14:22:39 -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
Jason Wilder 7aefe1e889 Make TestTime_Elapsed less flaky
This test fails sometimes because the elapsed time is 1.999s which
is less than 2s, but very close to 2s to not matter.
2016-04-20 14:13:32 -06:00
Jack Zampolin 16d1f14d11 Move stress/README to stress/DESIGN and add a stress/README 2016-04-07 15:41:40 -07:00
Jonathan A. Sternberg ddf655c222 Fix influx stress point writer
It previously used the content type `application/x-www-form-urlencoded`.
When the HTTP write handler was changed to check an HTTP form parameter
in d96eef4, the body for any POST requests with that content type would
result in an empty body.
2016-03-21 17:34:41 -04:00
Nathaniel Cook 2ce94c4ee9 kapacitor fixes for stress 2016-03-11 17:34:34 -07:00
Michael Desa 11424a889f Fix concurrent map access 2016-03-10 10:06:08 -08:00
Ben Johnson d9a6a7340f add canonical paths 2016-02-10 11:30:52 -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
Michael Desa 3535096a5c Change pps output to int 2015-12-16 10:28:17 -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
Jack Zampolin 39dc75ea4c Implement retry logic 2015-12-14 13:46:10 -08:00
Michael Desa b1be2d595c Rework outputConfig for influx_stress 2015-12-08 14:19:07 -08:00
Jack Zampolin 8d64c9985e Things!! All the things! 2015-12-08 13:34:55 -08:00
Jack Zampolin 11aaf631e6 Implement WriteHTTPHandler 2015-12-08 11:43:57 -08:00
Michael Desa c7709643b1 Add broadcast channel for stress 2015-12-08 11:10:44 -08:00
Michael Desa 14b5ed3001 Merge pull request #4961 from influxdb/md-stress-cluster
Add cluster support to stress test
2015-12-04 15:20:31 -08:00
Jason Wilder 94e5dc075b Change default stress batch size to 5000
10000 is too large and causes a lot of allocations.  5000 doubles the
throughput.
2015-12-03 14:41:46 -07: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 d6b4f64006 Add basichttp write handler 2015-11-27 19:20:29 -08:00