Commit Graph

11159 Commits (05d929caa9a73d308a5e72001dd6880a46baf990)

Author SHA1 Message Date
Marc 05d929caa9 Update CHANGELOG.md 2016-11-08 08:42:14 +08:00
Marc 7d277d0def Add support for collectd security policy
There are 2 new keys in the configuration file.
- security-level: "none", "sign", or "encrypt".
- auth-file: The location of the user/password file.

Please see the collectd network doc for more details.
2016-11-08 08:42:09 +08:00
Marc 0260dfb575 Replace kimor79/gollectd with collectd.org
At this point this is a like-for-like swap.

collectd.org is more active and supports more features.
2016-11-08 08:24:57 +08:00
Mark Rushakoff d52eb01c17 Merge pull request #7492 from influxdata/mr-influx_inspect-help-verify
Mention verify subcommand in influx_inspect help
2016-11-07 13:23:39 -08:00
Jason Wilder 3c0aaae8ff Merge pull request #7556 from influxdata/rk-readme-fix
Update example in influx_inspect README.md
2016-11-07 14:16:43 -07:00
Jason Wilder 8c1228169d Merge pull request #7592 from Tomcat-Engineering/remove-unused-function
Remove old code which is no longer used.
2016-11-07 14:15:38 -07:00
Jonathan A. Sternberg be49f3ee2c Merge pull request #7586 from influxdata/js-7575-fix-execute-flag-with-no-tty
Fix the `-execute` and `-import` when there is no TTY
2016-11-07 15:07:21 -06:00
Jason Wilder d4a0f715a5 Merge pull request #7597 from influxdata/jw-admin
Disable/deprecate admin interface
2016-11-07 13:32:28 -07:00
Jason Wilder b6863b04d1 Disable/deprecate admin interface 2016-11-07 12:04:51 -07:00
Ross McDonald fe75085bb5 Merge pull request #7580 from tcheneau/arm64-build-fix
Fix ARM64 build by replacing "aarch64" string with "arm64"
2016-11-07 09:16:22 -06:00
Cory LaNou e112de2ee0 Merge pull request #7554 from influxdata/cjl-godeps
update latest dependencies with Godeps
2016-11-07 09:10:30 -06:00
Cory LaNou 3774d5e734
update latest dependencies with Godeps 2016-11-07 08:49:29 -06:00
Cory LaNou 40f626d20f Merge pull request #7449 from influxdata/cjl-7488-fix-rp-defaults
fix retention policy creation inconsistencies
2016-11-07 08:20:34 -06:00
Tom Young 24fa1ac1c0 Remove old function which is no longer used. 2016-11-06 13:38:59 +00:00
Jonathan A. Sternberg 8a57f27eb9 Fix the `-execute` and `-import` when there is no TTY 2016-11-04 16:35:38 -05:00
Tony Cheneau 89d091e23e Fix ARM64 build by replacing "aarch64" string with "arm64" 2016-11-03 22:23:43 +00:00
Cory LaNou 6e290040bb
remove SetDefaultRetentionPolicy method from meta.Client 2016-11-03 09:39:41 -05:00
Cory LaNou cd272ce6c3 fix retention policy creation inconsistencies 2016-11-03 09:09:43 -05:00
Jonathan A. Sternberg 4b85371a71 Merge pull request #7568 from influxdata/js-7564-group-by-incorrect-with-multiple-aggregates
Fix incorrect grouping when multiple aggregates are used with sparse data
2016-11-02 14:28:54 -05:00
Jonathan A. Sternberg 1b2fa645ee Fix incorrect grouping when multiple aggregates are used with sparse data
When a query would use a grouping with two different aggregates, it was
possible for one of the aggregates to return a value from a different
series key than the second aggregate. When these series keys didn't
match, the returned grouping would be screwed up because it sorted by
time before checking for name and tags.

This did not happen when the aggregates returned values for the same
series keys because then the iterators were aligned with each other.
2016-11-02 13:35:22 -05:00
Jonathan A. Sternberg cf7f1da8b2 Merge pull request #7560 from influxdata/js-7552-fix-show-tag-values-when-using-on
Support the ON syntax in SHOW TAG VALUES
2016-11-01 16:36:07 -05:00
Jonathan A. Sternberg 83e998fbed Support the ON syntax in SHOW TAG VALUES
The parser was updated previously in #7295 and the functionality was
supposed to be there, but the wiring in the query engine for that to
happen was never written.
2016-11-01 15:54:45 -05:00
Regan Kuchan 3ebaba4714 Update example in influx_inspect README.md 2016-11-01 10:16:23 -07:00
Jason Wilder 90ec3ce3fe Merge pull request #7550 from influxdata/jw-changelog
Highlight new query features
2016-10-31 13:37:41 -06:00
Jason Wilder 7f1f1b002d Highly new query features 2016-10-31 12:47:36 -06:00
Jonathan A. Sternberg 6f57448b73 Merge pull request #7549 from influxdata/js-7548-show-queries-shows-wrong-units
Fix output duration units for SHOW QUERIES
2016-10-31 13:27:34 -05:00
Jonathan A. Sternberg ce1831160d Fix output duration units for SHOW QUERIES
The previous version was showing the microseconds unit when it was
outputting nanoseconds. Now we correctly identify which sub-second unit
to use (milliseconds, microseconds, or nanoseconds) and use the correct
unit while dividing the duration unit correctly to produce the correct
output.

Also updated to use the default duration string instead of our own
custom formatters. It turns out that the string method for
`time.Duration` does the correct thing as long as we truncate the value
first.
2016-10-31 12:48:01 -05:00
Jason Wilder 97ba0bbb98 Merge pull request #7538 from influxdata/jw-limits
Add config option to messages when limits exceeded
2016-10-31 09:26:30 -06:00
Jason Wilder 0b6f5441b9 Add config option to messages when limits exceeded
When a limit is exceeded, we return errors and sometimes log (if appropriate)
that a limit was exceeded.  The messages don't always provide an indication
as to where or how they are configured.

Instead, return the config option (easily searchable for) as well as the limit
currently set and the value that exceeded it when possible.
2016-10-28 14:54:45 -06:00
Jason Wilder bcb48a8ff2 Merge pull request #7533 from influxdata/jw-7498
Fix panic: interface conversion: tsm1.Value is *tsm1.FloatValue, not *tsm1.StringValue
2016-10-28 12:53:08 -06:00
Jason Wilder b1ceb5e66d Add cache write OK, Dropped, Error stats
Adds a new dropped stat as well as fixes OK and error stats not
actually get collected and stored.
2016-10-28 12:15:50 -06:00
Jason Wilder 873189e0c2 Fix panic: interface conversion: tsm1.Value is *tsm1.FloatValue, not *tsm1.StringValue
If concurrent writes to the same shard occur, it's possible for different types to
be added to the cache for the same series.  The way the measurementFields map on the
shard is updated is racy in this scenario which would normally prevent this from occurring.
When this occurs, the snapshot compaction panics because it can't encode different types
in the same series.

To prevent this, we have the cache return an error a different type is added to existing
values in the cache.

Fixes #7498
2016-10-28 12:15:50 -06:00
Jason Wilder e388912b6c Fix race in findGenerations
The file store stats slice is re-used which causes the race below:

WARNING: DATA RACE
Write at 0x00c42007e140 by goroutine 43:
  github.com/influxdata/influxdb/tsdb/engine/tsm1.(*FileStore).Stats()
      /Users/jason/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/file_store.go:511 +0x22e
  github.com/influxdata/influxdb/tsdb/engine/tsm1.(*DefaultPlanner).findGenerations()
      /Users/jason/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/compact.go:461 +0x6f
  github.com/influxdata/influxdb/tsdb/engine/tsm1.(*DefaultPlanner).PlanLevel()

Previous read at 0x00c42007e140 by goroutine 40:
  github.com/influxdata/influxdb/tsdb/engine/tsm1.(*DefaultPlanner).findGenerations()
      /Users/jason/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/compact.go:463 +0x13d
  github.com/influxdata/influxdb/tsdb/engine/tsm1.(*DefaultPlanner).PlanOptimize()
2016-10-28 12:15:49 -06:00
Jason Wilder 96648d2045 Merge pull request #7532 from influxdata/jw-7093
Don't normalize drop/delete series statements
2016-10-28 12:07:20 -06:00
Jonathan A. Sternberg 017ff229ef Merge pull request #7531 from influxdata/js-7526-fix-documentation-button-with-patch-versions
Truncate the version string when linking to the documentation
2016-10-27 19:44:54 -05:00
Jason Wilder d105e344c2 Don't normalize drop/delete series statements
7093 causes a parse error to be returned from delete and drop
statements.  Normalizing them cause an invalid statement to be generated
which cannot be reparse if converted to a string and back.
2016-10-27 16:21:07 -06:00
Jonathan A. Sternberg 3e29d3d9ca Truncate the version string when linking to the documentation
The admin console would dynamically discover the version from the
InfluxDB server, but for patch releases, it included the patch in the
link to the documentation and that wasn't a valid link.

Truncate the version so the documentation url is correct since we only
do documentation for `major.minor`.
2016-10-27 16:40:08 -05:00
joelegasse 05c252696e Merge pull request #7499 from influxdata/jl-export-doc
Update `influx_inspect export` doc
2016-10-26 14:17:27 -04:00
Jason Wilder 67c1d9c6bd Merge pull request #7523 from influxdata/jw-default-config
Actually update the defaults for TSM
2016-10-26 10:13:02 -06:00
Jason Wilder 96c9fb3648 Actually update the defaults for TSM
7510 update the defaults in the sample config, but did not update
the code.  This updates the defaults in the config that changed.
2016-10-26 09:49:25 -06:00
Jason Wilder d785a2d9f2 Merge pull request #7522 from influxdata/jw-go173
Use go1.7.3
2016-10-26 09:47:57 -06:00
Jason Wilder 1ccdda88aa Use go1.7.3 2016-10-25 20:16:58 -06:00
Jason Wilder 7cc95ce28b Merge branch 'stevenh-cache-lock-contention' 2016-10-25 15:29:42 -06:00
Steven Hartland 3f16197243 Improve tsm1 cache performance
Reduce the cache lock contention by widening the cache lock scope in WriteMulti, while this sounds counter intuitive it was:
* 1 x Read Lock to read the size
* 1 x Read Lock per values
* 1 x Write Lock per values on race
* 1 x Write Lock to update the size

We now have:
* 1 x Write Lock

This also reduces contention on the entries Values lock too as we have the global cache lock.

Move the calculation of the added size before taking the lock as it takes time and doesn't need the lock.

This also fixes a race in WriteMulti due to the lock not being held across the entire operation, which could cause the cache size to have an invalid value if Snapshot has been run in the between the addition of the values and the size update.

Fix the cache benchmark which where benchmarking the creation of the cache not its operation and add a parallel test for more real world scenario, however this could still be improved.

Add a fast path newEntryValues values for the new case which avoids taking the values lock and all the other calculations.

Drop the lock before performing the sort in Cache.Keys().
2016-10-25 15:24:51 -06:00
Jonathan A. Sternberg e7629e9668 Merge pull request #7519 from influxdata/js-4461-default-time-boundaries
Change default time boundaries for raw queries
2016-10-25 16:22:20 -05:00
Jonathan A. Sternberg f1fbb55909 Change default time boundaries for raw queries
Changes the default time boundaries for raw queries so raw queries will
range until the end of time. Aggregate queries continue to have their
default end time be `now()`.
2016-10-25 15:08:51 -05:00
Jonathan A. Sternberg 17eb8cb476 Merge pull request #7497 from influxdata/js-6704-first-last-optimization
Optimize first/last when no group by interval is present
2016-10-25 14:33:55 -05:00
Cory LaNou 5840cc473c Merge pull request #7514 from influxdata/cjl-7494-influx-inspect-escape-export
Escape fields when exporting tsm/wal files
2016-10-25 14:23:24 -05:00
Cory LaNou cc8e34886c escape fields when exporting tsm/wal files 2016-10-25 13:36:45 -05:00
Jason Wilder af72d9b0e4 Merge pull request #7515 from influxdata/jw-7053
Return parse error from delete/drop when db or rp is specified
2016-10-25 12:05:56 -06:00