Commit Graph

14114 Commits (fd21a0b326be9e58bbe02e38fb28122b18129ba9)

Author SHA1 Message Date
Edd Robinson 61a11c1b64
Merge pull request #10212 from influxdata/er-retention-index
Ensure orhpaned series cleaned up with shard drop
2018-08-21 18:20:07 +01:00
Edd Robinson ca1b780906
Merge pull request #10213 from influxdata/er-test-go1.11
Test InfluxDB on Go 1.11rc1
2018-08-21 18:19:25 +01:00
Edd Robinson 663566e3e0 Ensure go fmt passes on 1.10/11 2018-08-21 17:39:42 +01:00
tmgordeeva df001c117c
Merge pull request #10200 from influxdata/tg-auth
httpd/meta: use open auth when unrestricted
2018-08-21 08:40:23 -07:00
Edd Robinson 1a5bcd29da Test InfluxDB on Go 1.11rc1 2018-08-21 15:49:14 +01:00
Edd Robinson f52de2d1e7 Ensure orphaned series removed from inmem index
This commit ensures that any orphaned series (series that are to be
removed and no longer are referenced anywhere in the database) are
removed from the `inmem` index when a shard is dropped.
2018-08-21 15:00:35 +01:00
Edd Robinson dece5b847f Refactor index names 2018-08-21 14:32:30 +01:00
liukun d3039e2870 use the const var as the parameter in the construction function 2018-08-21 15:40:14 +08:00
Tanya Gordeeva 9d711d9417 httpd/meta: use open auth when unrestricted
This changes adds additional auth shortcutting, primarily for enterprise
usecases with simple FGA setups. OSS users won't see any changes.
2018-08-20 12:55:40 -07:00
Edd Robinson a67f15fad4 Promote DropSeriesGlobal to Index interface 2018-08-20 17:57:16 +01:00
Edd Robinson 035b26cadd Refactor DropSeriesGlobal 2018-08-20 16:37:55 +01:00
Ben Johnson 2d266ca186
Merge pull request #9801 from influxdata/bj-validate-write
Add option for unicode validation.
2018-08-20 03:44:41 -10:00
Edd Robinson 5536493f51
Merge pull request #10209 from liukun4515/fix_typos
fix the comments error
2018-08-20 12:17:32 +01:00
liukun ee9892dea5 fix the comments error 2018-08-20 17:19:35 +08:00
Jeff Wendling c314fc494e
Merge pull request #10202 from influxdata/jmw-snowflake-improvements
pkg/snowflake: be more robust against sequence rollover
2018-08-16 13:59:07 -06:00
Jeff Wendling 35645a67f5 pkg/snowflake: be more robust against sequence rollover
it's slightly slower, but the safety is worth it i think.

```
name            old time/op  new time/op  delta
Next-8          30.0ns ± 2%  31.0ns ± 3%   +3.56%  (p=0.002 n=7+8)
NextParallel-8  79.4ns ± 1%  92.5ns ± 1%  +16.58%  (p=0.000 n=8+8)
```
2018-08-16 11:18:06 -06:00
Jeff Wendling 5c38332fa2
Merge pull request #10197 from influxdata/jmw-snowflake-contention
pkg/snowflake: reduce contention in Next calls
2018-08-15 19:50:58 -06:00
Jeff Wendling d4a08ce5c1 pkg/snowflake: reduce contention in Next calls
use atomics rather than mutexes to synchronize state between calls.

```
name            old time/op  new time/op  delta
Next-8           244ns ± 0%    30ns ± 2%  -87.70%  (p=0.000 n=8+7)
NextParallel-8   215µs ±60%     0µs ± 1%  -99.96%  (p=0.000 n=8+8)
```

The results for NextParallel are around ~80ns/op, but that doesn't
show up in the benchstat output.
2018-08-15 15:12:21 -06:00
Tim Brooks fee13d0150 Minor fix for legacy restore (#9978)
Restore would fail when file paths contained extra periods.
Taking the basename of the files fixes this.
2018-08-15 09:06:44 -04:00
Hercules Mango Churchill ccc4fae0b5 Update changelog 2018-08-10 15:52:39 +00:00
Edd Robinson b7f1097176
Merge pull request #10190 from influxdata/er-tagsets
Reduce allocations in TSI TagSets implementation
2018-08-10 16:52:23 +01:00
Edd Robinson 6b3860e9a1 Reduce allocations in TSI TagSets implementation
Since all tag sets are materialised to strings before this method
returns, a large number of allocations can be avoided by carefully
resuing buffers and containers.

This commit reduces allocations by about 75%, which can be very
significant for high cardinality workloads.

The benchmark results shown below are for a benchmark that asks for all
series keys matching `tag5=value0'.

name                                               old time/op    new time/op    delta
Index_ConcurrentWriteQuery/inmem/queries_100000-8     5.66s ± 4%     5.70s ± 5%     ~     (p=0.739 n=10+10)
Index_ConcurrentWriteQuery/tsi1/queries_100000-8      26.5s ± 8%     26.8s ±12%     ~     (p=0.579 n=10+10)
IndexSet_TagSets/1M_series/inmem-8                   11.9ms ±18%    10.4ms ± 2%  -12.81%  (p=0.000 n=10+10)
IndexSet_TagSets/1M_series/tsi1-8                    23.4ms ± 5%    18.9ms ± 1%  -19.07%  (p=0.000 n=10+9)

name                                               old alloc/op   new alloc/op   delta
Index_ConcurrentWriteQuery/inmem/queries_100000-8    2.50GB ± 0%    2.50GB ± 0%     ~     (p=0.315 n=10+10)
Index_ConcurrentWriteQuery/tsi1/queries_100000-8     32.6GB ± 0%    32.6GB ± 0%     ~     (p=0.247 n=10+10)
IndexSet_TagSets/1M_series/inmem-8                   3.56MB ± 0%    3.56MB ± 0%     ~     (all equal)
IndexSet_TagSets/1M_series/tsi1-8                    12.7MB ± 0%     5.2MB ± 0%  -59.02%  (p=0.000 n=10+10)

name                                               old allocs/op  new allocs/op  delta
Index_ConcurrentWriteQuery/inmem/queries_100000-8     24.0M ± 0%     24.0M ± 0%     ~     (p=0.353 n=10+10)
Index_ConcurrentWriteQuery/tsi1/queries_100000-8      96.6M ± 0%     96.7M ± 0%     ~     (p=0.579 n=10+10)
IndexSet_TagSets/1M_series/inmem-8                     51.0 ± 0%      51.0 ± 0%     ~     (all equal)
IndexSet_TagSets/1M_series/tsi1-8                     80.4k ± 0%     20.4k ± 0%  -74.65%  (p=0.000 n=10+10)
2018-08-10 16:01:49 +01:00
Edd Robinson 9f883c8dee Add benchmark for TagSets across indexes 2018-08-10 16:01:49 +01:00
Jonathan A. Sternberg 73798764c4
Merge pull request #10149 from influxdata/js-dep-0.5
Run dep ensure with dep 0.5.0
2018-08-10 09:49:18 -05:00
Jonathan A. Sternberg 16dd24bbb2 Run dep ensure with dep 0.5.0 2018-08-10 09:29:10 -05:00
Hercules Mango Churchill 0c724f1ce4 Update changelog 2018-08-10 13:50:59 +00:00
David Norton 91d55b98e1
Merge pull request #10181 from influxdata/dn-fix-line-proto-panic
Fix line protocol parsing panic
2018-08-10 09:48:42 -04:00
Stuart Carnie 12f7f45707 feat(tsdb): Add CursorType to enable selection of batch cursors 2018-08-10 06:39:14 -07:00
Hercules Mango Churchill 1320c09edd Update changelog 2018-08-09 18:21:02 +00:00
Jacob Marble f1fc1b0264
Merge pull request #10175 from influxdata/jgm-copy-byte-slices
tsdb: Copy return value of IndexSet.MeasurementNamesByExpr
2018-08-09 11:20:45 -07:00
Stuart Carnie 990824ceca fix(tsdb): Fix panic, don't add nil iterator to slice
fixes #10171
2018-08-09 10:12:49 -07:00
David Norton 01d5805952 fix line protocol parsing panic 2018-08-09 10:56:34 -04:00
Jacob Marble 7bd9b2a627 tsdb: Copy return value of IndexSet.MeasurementNamesByExpr 2018-08-08 23:48:06 -07:00
Stuart Carnie f70fb7a631 test(stress): Fix flaky test 2018-08-08 13:31:23 -07:00
Jonathan A. Sternberg beae42a090
Merge pull request #10151 from influxdata/js-480-config-flux-section
Modify the `ifql` section to `flux`
2018-08-08 11:26:33 -05:00
Jonathan A. Sternberg ebd77d1b3d
Merge pull request #10170 from influxdata/js-create-series-cursor-panic
Prevent a panic from occuring when CreateSeriesCursor fails
2018-08-08 08:19:40 -05:00
Jacob Marble 3dab795f69
Merge pull request #10166 from influxdata/jgm-throughput-cleanup
tsdb: Cleanup compaction throughput code
2018-08-07 22:29:32 -07:00
Jonathan A. Sternberg fe996612eb Prevent a panic from occuring when CreateSeriesCursor fails
The internals of `newSeriesCursor` returned a struct pointer that
implicitly got turned into the interface. Unfortunately, Go treats this
type of interface conversion as a nil pointer to the struct rather than
as just nil so if you attempted to compare the returned cursor to nil,
they would not be equal and it would think it was non-nil and attempt to
use the cursor.
2018-08-07 22:55:02 -05:00
Jacob Marble d1bb38e074
Merge pull request #10164 from influxdata/jgm-buildtsi-modular
influx_inspect: Make buildtsi code resusable
2018-08-07 12:36:21 -07:00
Jacob Marble 5c8f350dd8 influx_inspect: Make buildtsi code resusable 2018-08-07 11:33:21 -07:00
Jacob Marble 786d637780 tsdb: Cleanup compaction throughput code 2018-08-07 11:12:41 -07:00
Hercules Mango Churchill 3c94ab188b Update changelog 2018-08-07 16:23:18 +00:00
Jacob Marble 034822177f
Merge pull request #9939 from zachgoldstein/master
Add configuration parameter to expose rate limit for TSM compaction.
2018-08-07 09:22:58 -07:00
Zach Goldstein 0ef3752a1a Add configuration parameter to expose rate limit for TSM compaction.
Closes: 9938
2018-08-07 10:05:36 -04:00
Edd Robinson 3bcb8ad9b2
Merge pull request #10161 from influxdata/er-tidy
Simplify loops
2018-08-06 15:24:49 +01:00
Edd Robinson 9eece563b1 Simplify loops 2018-08-05 15:16:33 +01:00
David Norton c20e813782
Merge pull request #10113 from influxdata/dn-digest-manifest
Add digest manifest
2018-08-03 15:55:04 -04:00
David Norton 50bbf11299 add digest manifest 2018-08-03 15:17:08 -04:00
Hercules Mango Churchill 3f49ab190e Update changelog 2018-08-03 17:55:28 +00:00
Edd Robinson c4947d9901
Merge pull request #10152 from influxdata/er-madvise
Add option to hint MADV_WILLNEED to kernel
2018-08-03 18:55:11 +01:00