Commit Graph

11076 Commits (1f31e8b70778c80a1bbfca0e3437f52eb26c3e7a)

Author SHA1 Message Date
Hung Nguyen Viet 1f31e8b707 clarify 2016-10-20 18:48:56 +07:00
Hung Nguyen Viet 4751ca1f43 use markdown 2016-10-20 18:47:54 +07:00
Hung Nguyen Viet dcb494ded5 use plural 2016-10-20 18:47:54 +07:00
Jason Wilder b50d9558cf Merge pull request #7479 from influxdata/jw-clean-err
Skip cleanup if dir does not exist
2016-10-18 15:49:09 -06:00
Jason Wilder f30b00c24f Skip cleanup if dir does not exist 2016-10-18 15:33:39 -06:00
Mark Rushakoff 987aaa7267 Merge pull request #7281 from influxdata/mr-compaction-stats
Add stats for active compactions
2016-10-18 14:30:16 -07:00
Mark Rushakoff 377c40f122 Add stats for active compactions
Unify logic around compaction execution to a single place.

Also report on the error stats that we track. Previously they were not
emitted in the stats output.
2016-10-18 14:12:21 -07:00
Jason Wilder 1aafea2e07 Merge pull request #7428 from ch33hau/prevent-trim-auth
auth command with leading spaces will be written to history
2016-10-18 15:12:01 -06:00
Jason Wilder 8f3da43ebb Merge pull request #7165 from influxdata/jw-deletes
Allow snapshot compactions during deletes
2016-10-18 14:27:16 -06:00
Jonathan A. Sternberg d5a30eeb52 Merge pull request #7473 from influxdata/js-7427-align-binary-math-with-fill
Align binary math expression streams by time
2016-10-18 15:27:07 -05:00
Joe LeGasse de9c743004 TSM: update comments for disabling level compactions 2016-10-18 14:14:59 -06:00
Joe LeGasse eda8f70372 TSM: Handle concurrent deletes for compaction 2016-10-18 14:14:59 -06:00
Jason Wilder 80cc956fb6 Fix changelog 2016-10-18 14:14:58 -06:00
Jason Wilder 47b8049e48 Update comment 2016-10-18 14:14:53 -06:00
Jonathan A. Sternberg 19a61dbb44 Align binary math expression streams by time
Also fills in missing values using the fill expression for any binary
aggregation.
2016-10-18 13:31:13 -05:00
Jason Wilder ed7975874f Rename Enabled -> Enable 2016-10-18 12:22:00 -06:00
Jason Wilder f254b4f3ae Allow snapshot compactions during deletes
If a delete takes a long time to process while writes to the
shard are occuring, it was possible for the cache to fill up
and writes to be rejected.  This occurred because we disabled
all compactions while writing tombstone file to prevent deleted
data from re-appearing after a compaction completed.

Instead, we only disable the level compactions and allow snapshot
compactions to continue.  Snapshots already handle deleted data
with the cache and wal.

Fixes #7161
2016-10-18 12:14:51 -06:00
Edd Robinson 4776e8ffd5 Merge pull request #7477 from influxdata/er-service-create
Input plugins should retry database creation
2016-10-18 18:10:59 +01:00
Mark Rushakoff cea7690b72 Merge pull request #7472 from influxdata/mr-cleanup-gitignore-editors
Add note to use global .gitignore
2016-10-18 10:00:00 -07:00
Edd Robinson 168c91cc67 graphite service should retry database creation 2016-10-18 16:50:07 +01:00
Edd Robinson 73c267abc1 udp service should retry database creation 2016-10-18 16:50:07 +01:00
Edd Robinson 0470f38478 opentsdb should retry creating its database 2016-10-18 16:50:07 +01:00
Edd Robinson cc60647827 collectd should retry creating database 2016-10-18 16:50:07 +01:00
Edd Robinson d3f3e020a6 Merge pull request #7463 from influxdata/er-services
Ensure input services can be safely opened and closed
2016-10-18 16:49:20 +01:00
Edd Robinson 6c149b31ef Remove unused exported methods 2016-10-18 16:19:44 +01:00
Mark Rushakoff b385decc06 Merge pull request #7475 from influxdata/mr-derivative-arg-panic
Disallow derivative call with non-duration 2nd arg
2016-10-18 08:05:52 -07:00
Edd Robinson ad2d33f859 Ensure input services can be safely opened and closed 2016-10-18 10:35:38 +01:00
Mark Rushakoff 0ddb7ad842 Disallow derivative call with non-duration 2nd arg
Previously, calling derivative with a non-duration second argument was
allowed during parsing but would panic during execution due to a failed
type conversion. This change ensures the second argument is a duration
literal.
2016-10-17 16:20:53 -07:00
Jonathan A. Sternberg 40c75fcd44 Merge pull request #7440 from influxdata/js-6896-influx-client-from-file
Correctly read in input from a non-interactive stream for the CLI
2016-10-17 15:52:13 -05:00
Jonathan A. Sternberg 2f5f995782 Correctly read in input from a non-interactive stream for the CLI
If you pipe in a file to the `influx` CLI, it will not try to open the
interactive line reader, but instead just send the contents of the
entire file to the server.
2016-10-17 12:58:44 -05:00
Jonathan A. Sternberg bf0ac921f7 Merge pull request #7429 from influxdata/js-6894-influx-cli-env-password
Support INFLUX_USERNAME and INFLUX_PASSWORD for setting username/password in the CLI
2016-10-17 12:58:12 -05:00
Jonathan A. Sternberg e457cefb24 Support INFLUX_USERNAME and INFLUX_PASSWORD for setting username/password in the CLI 2016-10-17 12:26:39 -05:00
Jonathan A. Sternberg 19b1a66a9d Merge pull request #7470 from influxdata/js-reduce-map-operations-in-tag-sets
Reduce map allocations when computing the TagSets of a measurement
2016-10-17 12:26:19 -05:00
Jonathan A. Sternberg 41e4e73d4e Reduce map allocations when computing the TagSets of a measurement
Instead of assigning a boolean value of true to the filter expressions
when there was no meaningful expression, this drops a boolean expression
of true from the filter expressions so we don't have to perform a map
assignment. This allows us to reduce allocations and assignments when a
`WHERE` clause only contains tag comparisons and no field comparisons.
2016-10-17 12:13:19 -05:00
Jonathan A. Sternberg 3496c5b85f Merge pull request #7442 from influxdata/js-5955-make-regex-work-on-field-keys-in-select
Support using regexes to select fields and dimensions
2016-10-17 11:37:47 -05:00
Jonathan A. Sternberg 5c30c23d1b Merge pull request #7443 from influxdata/js-7436-stddev-forbids-string-type
Remove accidentally added string support for the stddev call
2016-10-17 11:31:35 -05:00
Mark Rushakoff d14e972378 Add note to use global .gitignore 2016-10-17 08:33:13 -07:00
Jonathan A. Sternberg b60b4b371e Support using regexes to select fields and dimensions
The functionality works the same as wildcards, but this time, you can
specify a regular expression.

One limitation is that you can't specify whether you only want to select
fields or tags. Since the regex can be changed to suit the person's
needs, I don't currently think this is an issue.
2016-10-13 22:17:14 -05:00
Jason Wilder b66374eb1f Merge pull request #7458 from zhexuany/master
fixed two typo
2016-10-13 10:15:23 -06:00
zhexuany 931a6c6d08 fixed two typo 2016-10-13 13:43:38 +08:00
Jonathan A. Sternberg 95859b8ab4 Remove accidentally added string support for the stddev call
Strings would always return an empty string and stddev is meaningless
when it comes to strings. This removes that functionality so strings
don't automatically get picked up when using a wildcard.
2016-10-10 14:58:28 -05:00
Jason Wilder 31169512f4 Merge pull request #7430 from influxdata/jw-max-tag-cardinality
Add max-values-per-tag limit
2016-10-10 13:09:17 -06:00
Jason Wilder a5f871d62c Rework monitoring to avoid allocations 2016-10-10 11:42:15 -06:00
Jason Wilder bbecb3f03d Drop points that would execeed limits
This changes the behavior of the max-series-per-database and
max-values-per-tag limits to drop points that would exceed the limits
and allow the remaining points to be written.  Previously, the whole
batch would fail and return and 500 error to the client.

This now will write the allow points and return a `partial write`
error indicating some of the points were dropped, how many were
dropped and one of the problem measureent and tags.
2016-10-10 11:42:15 -06:00
Jason Wilder 8fce6bba48 Add tag value cardinality limit 2016-10-10 11:42:15 -06:00
Mark Rushakoff 89c7572dd6 Merge pull request #7441 from influxdata/mr-speedup-shutdown
Speed up shutdown
2016-10-10 09:34:49 -07:00
Mark Rushakoff 5ae8cf8312 Speed up shutdown
On my machine with about 20 shards, it would take 10+ seconds to shut
down InfluxDB with SIGINT. After this change, it shuts down in nearly
instantly.

(*tsdb.Store).Close was shutting down each of its shards sequentially.
Each shard's engine would signal to its compaction goroutines to quit,
and because each compaction goroutine has a hardcoded 1-second sleep in
between checks, waiting for the goroutines would often block for up to a
second.

This change closes all of the TSDB store's shards in parallel. This
means it's possible that multiple close values could error at once, but
we're still only returning the first error, consistent with previous
behavior. That being said, the return value of (*tsdb.Store).Close is
ignored in (*cmd/influxd/run.Server).Close anyway.
2016-10-10 09:18:47 -07:00
Jonathan A. Sternberg e955d16f82 Merge pull request #7388 from influxdata/js-cumulative-sum-over-time
Implement cumulative_sum() function
2016-10-07 15:43:23 -05:00
ch33hau b4e98e992d Fix tiny typo 2016-10-08 02:48:27 +08:00
ch33hau 933fd8e8fe Prevent auth command with leading spaces writing to history 2016-10-08 02:45:22 +08:00