Commit Graph

11373 Commits (a135906b430721918ed532c44a44da471cbcc60f)

Author SHA1 Message Date
Edd Robinson aff2d7ce64 Ensure user privs dropped along with db (#7677) 2016-12-02 18:23:35 +00:00
Hrvoje Marjanovic 6ed708e3fd Reduce pool size, change WAL writers default
Big pool can lead to huge memory usage in certain loads.

See #7640 for detailed discussion.
2016-12-02 18:45:43 +01:00
Jonathan A. Sternberg 681f00cef2 Merge pull request #7681 from influxdata/js-7669-uncomment-sections-from-default-config
Uncomment section headers from the default configuration file
2016-12-02 10:02:20 -06:00
Jonathan A. Sternberg cbb689e706 Uncomment section headers from the default configuration file
It would be potentially confusing for someone if they uncommented a line
in the default configuration file, but forgot to also uncomment the
section header. The section headers don't cause any actual change to the
underlying configuration file so I've uncommented them to reduce
potential confusion.
2016-12-02 09:24:31 -06:00
Jason Wilder 2f776ea9e1 Fix string fields w/ trailing slashes
A string field w/ a trailing slash before the quote would parse incorrectly
because the quote would be seen as escaped.  We have to treat \\ as an
escape sequence within strings in order to handle this.
2016-12-01 15:24:11 -07:00
Ross McDonald f7c686dbef Merge pull request #7536 from ast-systemtechnik/skladd-patch-init.sh
make init.sh compatible with busybox
2016-12-01 14:08:10 -06:00
Jonathan A. Sternberg 6ec203a9c6 Merge pull request #7637 from influxdata/js-7634-percentile-selector
Return the time from a percentile call on an integer
2016-12-01 13:22:38 -06:00
Jonathan A. Sternberg bffc759cf9 Return the time from a percentile call on an integer
`percentile()` is supposed to be a selector and return the time of the
point, but that only got changed when the input was a float. Updating
the integer processor to also return the time of the point rather than
the beginning of the interval.
2016-12-01 12:34:48 -06:00
DanKans e0291e419b Update Client documentation
* Added additional variable to fulfil NewUDPClient function requirement (there was one instead of 2) and it caused multiple-value client.NewUDPClient() in single-value context error

* Update README.md

Added error handling.
2016-12-01 18:18:28 +00:00
Cory LaNou 7106c8a9c9 Merge pull request #7610 from influxdata/cjl-7601-prune-shards
Prune shards in meta data
2016-12-01 11:32:39 -06:00
Cory LaNou d54d32b9d4
prune shards in meta data 2016-12-01 11:22:16 -06:00
Jonathan A. Sternberg 5d63ebe311 Merge pull request #7676 from influxdata/js-7356-xff-changelog
Update changelog for #7356 (PR #7662)
2016-12-01 11:03:27 -06:00
Jonathan A. Sternberg 3427c7b356 Update changelog for #7356 (PR #7662) 2016-12-01 10:41:39 -06:00
Jonathan A. Sternberg edeb70c1da Merge pull request #7662 from influxdata/js-7356-xff-logging-for-http-requests
Use X-Forwarded-For IP address in HTTP logger if present
2016-12-01 10:40:18 -06:00
Jonathan A. Sternberg 825aa07877 Use X-Forwarded-For IP address in HTTP logger if present 2016-12-01 09:16:36 -06:00
Jonathan A. Sternberg 3dc5165b3c Merge pull request #7505 from oiooj/pr-influx-unixsocket
support unix socket connection for influx CLI
2016-11-30 09:02:32 -06:00
oiooj 8ddb11cee2 support unix socket connect for influx CLI 2016-11-30 22:37:56 +08:00
Jonathan A. Sternberg 128cbf04a2 Merge pull request #7658 from allenpetersen/ap_7656
Use slash separator for filenames in tar archives
2016-11-29 15:48:22 -06:00
Jonathan A. Sternberg e0c1908683 Merge pull request #7644 from influxdata/js-fix-empty-variable-serialization
Quote the empty string as an ident
2016-11-29 12:16:35 -06:00
Allen Petersen 31129ab0e9 Use slash separator for filenames in tar archives
NO-OP on platforms with unix path separator.
On Windows paths get converted to slashes before adding to archive and back to backslashes during restore.
2016-11-29 09:44:08 -08:00
Jonathan A. Sternberg 933702549d Merge pull request #7368 from influxdata/js-partial-in-json-response
Introduce syntax for marking a partial response with chunking
2016-11-29 11:17:24 -06:00
Abdisamad Hashi 0ea807dce1 Make monitor golintable (#7652)
* added comment on top of the Reporter interface
* fixed a capitalisation typo which threw a linting error
* added comment on top of type Statistics
* Added a proper comment to Reporter interface
* Added a proper comment to type Statistics
* Update service.go
Changed wording 'list' to 'slice'.
2016-11-28 10:47:02 +00:00
Cameron Sparr fa2b78d67e Optimize string escaping & unescaping
benchmarks pre-commit:

go test ./pkg/escape/... -bench=. -benchmem
BenchmarkStringEscapeNoEscapes-8         10000000          122 ns/op     0 B/op      0 allocs/op
BenchmarkStringUnescapeNoEscapes-8       300000000         5.69 ns/op    0 B/op      0 allocs/op
BenchmarkManyStringEscape-8               1000000          1073 ns/op    320 B/op    8 allocs/op
BenchmarkManyStringUnescape-8             1000000          1557 ns/op    288 B/op    8 allocs/op
PASS
ok      github.com/influxdata/influxdb/pkg/escape    6.304s

benchmarks post-commit:

go test ./pkg/escape/... -bench=. -benchmem
BenchmarkStringEscapeNoEscapes-8         100000000         17.5 ns/op    0 B/op      0 allocs/op
BenchmarkStringUnescapeNoEscapes-8       300000000         5.70 ns/op    0 B/op      0 allocs/op
BenchmarkManyStringEscape-8               3000000          451 ns/op     224 B/op    6 allocs/op
BenchmarkManyStringUnescape-8             2000000          944 ns/op     304 B/op    9 allocs/op
PASS
ok      github.com/influxdata/influxdb/pkg/escape    8.727s
2016-11-24 10:25:35 +00:00
Jason Wilder 27d157763a Merge pull request #7651 from influxdata/jw-shard-last-modified
Expose Shard.LastModified
2016-11-23 10:19:26 -07:00
Jason Wilder e8a28cfbab Expose Shard.LastModified
This returns the LastModified time of the shard.  The LastModified
time is the wall time when a change to the shards state occurred.
It uses the WAL or FileStore to determine the max mod time.
2016-11-23 10:04:07 -07:00
Edd Robinson b83b8df32f Merge pull request #7635 from influxdata/er-msg
Fix incorrect error message
2016-11-23 13:58:33 +00:00
Edd Robinson f488c5bcf4 Merge pull request #7645 from shaybix/make-influxdb/tcp-golintable
removed parentheses to make tcp golintable
2016-11-23 13:47:17 +00:00
Jonathan A. Sternberg b4db76cee2 Introduce syntax for marking a partial response with chunking
The `partial` tag has been added to the JSON response of a series and
the result so that a client knows when more of the series or result will
be sent in a future JSON chunk.

This helps interactive clients who don't want to wait for all of the
data to know if it is done processing the current series or the current
result. Previously, the client had to guess if the next chunk would
refer to the same result or a new result and it had to match the name
and tags of the two series to know if they were the same series. Now,
the client just needs to check the `partial` field included with the
response to know if it should expect more.

Fixed `max-row-limit` so it counts rows instead of results and it
truncates the response when the `max-row-limit` is reached.
2016-11-22 11:16:22 -06:00
shaybix 1240ffd66f removed parentheses to make tcp golintable 2016-11-19 04:13:25 +00:00
Jonathan A. Sternberg c957bf7f99 Quote the empty string as an ident
Without this quoting, the function `max("")` turns into `max()` and will
not be reparsed correctly.
2016-11-18 16:25:39 -06:00
Cameron Sparr 3fe0ffd5ad String escape unit tests 2016-11-18 16:02:52 +00:00
Jason Wilder b765a4b8c7 Merge pull request #7631 from influxdata/jw-timer-allocs
Allocation/pointer removal
2016-11-17 18:02:01 -07:00
Edd Robinson 9e9719749f Sprinkle some golint 2016-11-17 16:31:38 +00:00
Edd Robinson 28ba8ced74 Fixes #7625 2016-11-17 16:31:36 +00:00
Jason Wilder 63554ce5a3 Update changelog
Add #7616
2016-11-16 17:05:47 -07:00
Jason Wilder bdf389d13c Merge pull request #7616 from ccasey/master
fix chuid argument order
2016-11-16 17:04:12 -07:00
Jason Wilder 89706dbd60 Merge pull request #7632 from influxdata/jw-merge-11
Merge 1.1 branch
2016-11-16 12:38:10 -07:00
Jason Wilder 62177826d5 Merge branch '1.1' into jw-merge-11 2016-11-16 11:16:44 -07:00
Jason Wilder 3a5a01181b Switch all Value types from pointers 2016-11-15 16:13:55 -07:00
Jason Wilder bf17074f58 Avoid allocation when counting tag keys
A new sorted slice was called by the monitor func every 10s.  The
tag keys don't need to be sorted so this avoid the allocation of the
slice and one during sorting.
2016-11-15 16:13:55 -07:00
Jason Wilder 0ee58c208a Switch time.Sleep to time.Ticker
Avoids an allocation when calling time.Sleep
2016-11-15 16:13:55 -07:00
Jason Wilder 73b8f52ca0 Cache results onf findGenerations
This allocates quite a bit and it's called multiple times per
second per shard.  The generations don't change until a compaction
has occurred so most of the time is re-calculating the same thing
and creating garbage.
2016-11-15 16:13:55 -07:00
Jason Wilder 61daedac03 Use time.Tick instead of time.After
Eliminates an allocation
2016-11-15 16:13:55 -07:00
Jonathan A. Sternberg 4b9c88037f Merge pull request #7628 from influxdata/js-7621-sample-wildcard
Expand string and boolean fields when using a wildcard with sample()
2016-11-15 16:15:52 -06:00
Jonathan A. Sternberg e885fe5117 Expand string and boolean fields when using a wildcard with sample() 2016-11-15 15:56:47 -06:00
Jason Wilder 4fcbedad3f Merge pull request #7622 from marcv81/bug-7602
Fix references to Go 1.6.2 in doc
2016-11-15 14:44:46 -07:00
Marc 20d0653aa6 Fix references to Go 1.6.2 in doc 2016-11-12 11:50:44 +08:00
Jason Wilder 800da5732b Update release date 2016-11-11 16:25:22 -07:00
Jason Wilder 77e2c80a4f Merge pull request #7435 from marcv81/feature-7066
Support for collectd signed and encrypted packets
2016-11-11 11:30:24 -07:00
Chris Casey 8e720a3308 fix chuid argument order 2016-11-10 16:31:50 -06:00