Commit Graph

2284 Commits (fd7e4aa0f782297bac5521061cec7a462e6bd790)

Author SHA1 Message Date
Sam Arnold fed8ca1ace
fix: redundant registration for prometheus collector metrics (#21156) 2021-04-07 12:38:00 -04:00
Daniel Moran 333cff1b15
fix(tsdb): exclude the stop time from the array cursor (#21139)
This is a backport of #14262 to the 1.x storage engine.

This also ports the table tests that existed with the pre-beta version of the
storage engine to the one that is now used in the production version.

A few of the tests are skipped. These are portions of the storage engine
that have not been ported over. They should be unskipped when that
functionality is ported over.


Co-authored-by: Jonathan A. Sternberg <jonathan@influxdata.com>
2021-04-06 14:50:07 -04:00
Sam Arnold f1aa051787
feat: make flux controller limits configurable (#21108)
* feat: make flux controller limits configurable

A sample of the new config:

```
[flux-controller]
  query-concurrency = 0
  query-initial-memory-bytes = 0
  query-max-memory-bytes = 0
  total-max-memory-bytes = 0
  query-queue-size = 0
```

Also use the prometheus metrics in debug/vars, here is a sample:

```
"query_control_all_active": {"name":"query_control_all_active","tags":null,"values":{"gauge":0}},
"query_control_all_duration_seconds": {"name":"query_control_all_duration_seconds","tags":null,"values":{"0.001":0,"0.005":0,"0.025":0,"0.125":0,"0.625":0,"15.625":2,"3.125":2,"count":2,"sum":2.9953034240000003}},
"query_control_compiling_active": {"name":"query_control_compiling_active","tags":null,"values":{"gauge":0}},
"query_control_compiling_duration_seconds": {"name":"query_control_compiling_duration_seconds","tags":null,"values":{"0.001":2,"0.005":2,"0.025":2,"0.125":2,"0.625":2,"15.625":2,"3.125":2,"count":2,"sum":0.0010411650000000001}},
"query_control_executing_active": {"name":"query_control_executing_active","tags":null,"values":{"gauge":0}},
"query_control_executing_duration_seconds": {"name":"query_control_executing_duration_seconds","tags":null,"values":{"0.001":0,"0.005":0,"0.025":0,"0.125":0,"0.625":0,"15.625":2,"3.125":2,"count":2,"sum":2.994032791}},
"query_control_memory_unused_bytes": {"name":"query_control_memory_unused_bytes","tags":null,"values":{"gauge":0}},
"query_control_queueing_active": {"name":"query_control_queueing_active","tags":null,"values":{"gauge":0}},
"query_control_queueing_duration_seconds": {"name":"query_control_queueing_duration_seconds","tags":null,"values":{"0.001":2,"0.005":2,"0.025":2,"0.125":2,"0.625":2,"15.625":2,"3.125":2,"count":2,"sum":0.000087963}},
"query_control_requests_total": {"name":"query_control_requests_total","tags":null,"values":{"counter":1}},
"query_control_requests_total:1": {"name":"query_control_requests_total","tags":null,"values":{"counter":1}}
```

* chore: update changelog

* fix: shorten metric names for query control

* fix: zaptest logger and goimports

* fix: races in the query controller

Previously some tests were failing due to logging after the end of the test.
2021-04-01 09:55:59 -04:00
Sam Arnold b9ee9e5b44
feat: add memory and concurrency limits in flux controller (#21100)
* chore: pull in controller from 2.x

* chore: fix up 2.x controller to work with 1.x

* feat: Default query limits in flux code

Partial fix of https://github.com/influxdata/influxdb/issues/17212

* chore: update changelog

* chore: refactor to remove panic and reformat code
2021-03-30 15:02:46 -04:00
Daniel Moran fbfd4b4651
test: add fluxtest harness (#21074)
* test: add script to run flux tests
* feat(flux): enable test capabilities in Flux controller
* feat(flux): add MergeFiltersRule
* build: bump existing Dockerfiles to go 1.15
* build: add flux tests to CI
* refactor: allow for overriding tcp.Mux logger
* build: upgrade to Flux v0.111.0
2021-03-30 11:18:18 -04:00
Sam Arnold db38959b7a
fix: fix help test for influx_inspect (#21052)
Closes #21007
2021-03-23 19:15:26 -04:00
Sam Arnold d1a5c06596
chore: Upgrade to go1.15.10 and flux 0.108.1 (#21015) 2021-03-22 14:11:53 -04:00
davidby-influx 70755bf42c
feat: Log query text for POST requests (#20993)
The HTTP handler logs URLs, but not body values for POST requests.
This means that queries sent by GET are logged, because the query
is in the URL, but queries sent by POST have no query text in the
log.  This feature prints all the key-value pairs in the post body,
which includes the query text, except passwords, which are redacted. 

Closes https://github.com/influxdata/influxdb/issues/20653
2021-03-22 10:31:56 -07:00
davidby-influx 642726e898
feat: influx_inspect export to standard out (#20977)
Add a special value to the -out flag, a hyphen, to write to stdout.
While writing to stdout, send status messages to stderr instead of
stdout (the current behavior).

Closes https://github.com/influxdata/influxdb/issues/20974
2021-03-17 10:01:40 -07:00
Sam Arnold 178a1d0c3b
chore: 1.9.0 rc0 changelog (#20948)
* chore: reset changelog to 1.8.5

* chore: update changelog in preparation for 1.9.0rc0
2021-03-15 12:34:04 -04:00
Pavel Závora 2ff73114a8
Merge branch 'master-1.x' into 18391/cors_v1 2020-06-26 06:29:30 +02:00
Tristan Su 57ea78e984
fix(httpd): add option to authenticate prometheus remote read (#18429) 2020-06-23 15:03:19 -07:00
Pavel Zavora fe150dc768 chore: update changelog 2020-06-10 19:50:30 +02:00
David Norton 129a78ea08 fix: verify precision parameter in write requests
This change updates the HTTP endpoints that service v1 and v2 writes to
verify the values passed in the precision parameter.
2020-04-07 11:29:53 -04:00
Hercules Mango Churchill 2e371db2a0 Update changelog 2020-03-16 17:08:16 +00:00
David Norton 7ea8fdb566 chore: update CHANGELOG.md 2020-03-13 21:55:04 -04:00
Stuart Carnie f71caf5c02
Merge pull request #16709 from influxdata/sgc/18/flux-cost
fix(flux): Reduce influxd and influx startup time if Flux unused
2020-03-02 15:16:13 -07:00
Hercules Mango Churchill a8cf52ba0e Update changelog 2020-02-04 20:45:16 +00:00
Gianluca Arbezzano 30621ca9ec chore(tsm1): skip WriteSnapshot during backup if snapshotter is busy
When an InfluxDB database is very busy writing new points the backup
the process can fail because it can not write a new snapshot.

The error is: `operation timed out with error: create snapshot: snapshot in progress`.

This happens because InfluxDB takes almost "continuously" a snapshot
from the cache caused by the high number of points ingested.

This PR skips snapshots if the `snapshotter` does not come available
after three attempts when a backup is requested.

The backup won't contain the data in the cache or WAL.

Signed-off-by: Gianluca Arbezzano <gianarb92@gmail.com>
2020-02-04 20:09:50 +01:00
Stuart Carnie 59d3f6f144
docs: Update CHANGELOG 2020-02-03 13:20:23 -07:00
Hercules Mango Churchill 3cf826f1cf Update changelog 2020-01-14 18:02:07 +00:00
Sean Brickley a6b1811afd chore: Correction to CHANGELOG - Moved link to PR #16524 from Features to Bugfixes under 1.8 2020-01-14 12:44:36 -05:00
Sean Brickley 924927c443 chore: Updated CHANGELOG.md with link to PR #16524 2020-01-14 12:40:58 -05:00
Hercules Mango Churchill 915c021e5a Update changelog 2019-11-12 23:39:15 +00:00
Hercules Mango Churchill 0f187b6b53 Update changelog 2019-10-07 14:25:21 +00:00
Gunnar Aasen 0c4703aaa3 feat(httpd): Add option to authenticate debug/pprof and ping endpoints 2019-09-20 16:32:22 -07:00
Hercules Mango Churchill 0c2c987891 Update changelog 2019-08-26 14:57:45 +00:00
Hercules Mango Churchill 8ab8c0bc29 Update changelog 2019-08-01 15:21:01 +00:00
Gunnar Aasen 86f78523cc feat(go): Update Go version to 1.12 2019-07-11 12:52:36 -07:00
Hercules Mango Churchill c822e2c8e7 Update changelog 2019-07-05 16:27:15 +00:00
Hercules Mango Churchill 8c471993f7 Update changelog 2019-04-23 19:39:48 +00:00
Hercules Mango Churchill 79545a3c5e Update changelog 2019-04-22 16:12:35 +00:00
Hercules Mango Churchill c53b649d99 Update changelog 2019-04-18 15:59:15 +00:00
Hercules Mango Churchill 1d23b6ba6f Update changelog 2019-04-17 16:39:37 +00:00
Hercules Mango Churchill 1bfe54169b Update changelog 2019-04-04 15:18:33 +00:00
Hercules Mango Churchill c7e43d4cf7 Update changelog 2019-02-19 16:54:57 +00:00
Hercules Mango Churchill 190b7df950 Update changelog 2019-02-18 23:34:42 +00:00
Hercules Mango Churchill 91ac42815b Update changelog 2019-02-12 23:41:20 +00:00
Hercules Mango Churchill 7fa9869b88 Update changelog 2019-02-12 21:55:21 +00:00
Hercules Mango Churchill cbdee3d933 Update changelog 2019-02-11 19:51:16 +00:00
Hercules Mango Churchill 42ec806e7e Update changelog 2019-02-11 10:23:34 +00:00
Edd Robinson 42267331bd
Merge pull request #10206 from rda0/master
Fix legacy restore bug #10072
2019-02-11 10:23:15 +00:00
Hercules Mango Churchill 126e4e2263 Update changelog 2019-02-07 01:14:32 +00:00
Hercules Mango Churchill 5e1e0b122a Update changelog 2019-02-06 15:14:52 +00:00
Ben Johnson 4083ae01e3
Merge branch '1.8' into hpb-no-series-rebuild-on-delete-when-series-still-in-cache 2019-02-04 08:32:04 -07:00
Edd Robinson 3a81921bb0
Merge pull request #10505 from hpbieker/hpb-no-series-rebuild-on-delete-without-overlap-timerange
Do not rebuild series index on delete for series not overlapping in time
2019-02-04 03:22:00 -08:00
Hercules Mango Churchill 87adbea5f3 Update changelog 2019-02-01 15:55:05 +00:00
Hercules Mango Churchill 7590d807e5 Update changelog 2019-01-25 17:33:27 +00:00
Hercules Mango Churchill a62e7864bb Update changelog 2019-01-09 23:10:14 +00:00
Hercules Mango Churchill 7db3db278b Update changelog 2018-12-20 22:10:34 +00:00
Hercules Mango Churchill 3b22abc962 Update changelog 2018-12-10 18:04:13 +00:00
Hercules Mango Churchill 10e013ddb2 Update changelog 2018-12-04 14:48:59 +00:00
Hans Petter Bieker 8f397e0e4a Fixed changelog. 2018-11-20 16:31:17 +01:00
Hans Petter Bieker f1bf1aa289 Fixed changelog. 2018-11-20 16:29:51 +01:00
Hans Petter Bieker fd21a0b326 Added changelog. 2018-11-20 16:28:26 +01:00
Hans Petter Bieker 7708e12bd7 Added changelog. 2018-11-20 10:39:53 +01:00
Hercules Mango Churchill f2cf118473 Update changelog 2018-11-19 19:05:18 +00:00
Jonathan A. Sternberg ebafd3714a
Update changelog 2018-11-05 12:28:50 -06:00
miya-masa c19788030d
Add the `QueryAsChunk` method to v2 client 2018-10-30 09:06:16 -05:00
Hercules Mango Churchill 6a98bb8aa4 Update changelog 2018-10-26 18:11:29 +00:00
Stuart Carnie 82447f1afe chore: Update changelog noting #10408 2018-10-25 11:32:33 -07:00
Hercules Mango Churchill 432f9eaf31 Update changelog 2018-10-17 14:53:08 +00:00
Hercules Mango Churchill 772a44eddf Update changelog 2018-10-16 13:34:47 +00:00
Hercules Mango Churchill b235036661 Update changelog 2018-10-10 14:12:37 +00:00
Hercules Mango Churchill 86ac358448 Update changelog 2018-10-09 16:08:23 +00:00
Hercules Mango Churchill 13e3dd5828 Update changelog 2018-10-08 14:35:28 +00:00
Hercules Mango Churchill 576c14c018 Update changelog 2018-10-08 14:31:38 +00:00
Hercules Mango Churchill 634f4219fd Update changelog 2018-10-04 18:55:37 +00:00
Jonathan A. Sternberg ad83a19ad9
Merge pull request #10333 from influxdata/js-subquery-fixes
Assorted fixes to subquery regressions in 1.6
2018-10-04 13:55:21 -05:00
Jonathan A. Sternberg 22fc9f6a19
Strip tags from a subquery when the outer query does not group by that tag
The following would, erroneously, not strip the tag from the inner
query:

    SELECT value FROM (SELECT value FROM cpu GROUP BY host)

The inner query was supposed to group by the host tag, but the outer
query should strip it away since it is not being grouped by anymore.
This fixes things so that the result will have the tags stripped away
when they are not requested in the grouping.
2018-10-04 10:05:46 -05:00
Jonathan A. Sternberg 634471f12e
Fix subquery functionality when a function references a tag from the subquery
It has previously been allowed for a subquery to use a tag within a
function (such as `count()`) when the tag is from a subquery and the
subquery itself references a field at some point to perform the join.

This functionality regressed in 1.6 because of a change in how
subqueries were executed that forgot to treat a tag the same as a string
field.

This fixes that regression and adds a test case to avoid hitting that
regression again.
2018-10-04 10:05:20 -05:00
Hercules Mango Churchill c6889b1a95 Update changelog 2018-10-02 14:43:52 +00:00
Hercules Mango Churchill 05acc10f0f Update changelog 2018-09-10 15:57:12 +00:00
Jonathan A. Sternberg 237801c212 Fixing the changelog
Since there is no v1.6.0 in the revision list for the changelog, it
assumes that the current commits are for 1.6.0.
2018-08-31 09:32:19 -05:00
Jonathan A. Sternberg c4f26dd62c Update changelog 2018-08-31 09:29:56 -05:00
Hercules Mango Churchill cfd4b0d35d Update changelog 2018-08-23 17:17:43 +00:00
Hercules Mango Churchill a8fd8d787d Update changelog 2018-08-21 17:27:43 +00:00
Sven Mäder 51bf753c6e Add pull reference #10206 to bugfixes 2018-08-17 10:21:01 +02:00
Hercules Mango Churchill ccc4fae0b5 Update changelog 2018-08-10 15:52:39 +00:00
Hercules Mango Churchill 0c724f1ce4 Update changelog 2018-08-10 13:50:59 +00:00
Hercules Mango Churchill 1320c09edd Update changelog 2018-08-09 18:21:02 +00: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
Hercules Mango Churchill 3c94ab188b Update changelog 2018-08-07 16:23:18 +00:00
Hercules Mango Churchill 3f49ab190e Update changelog 2018-08-03 17:55:28 +00:00
Jonathan A. Sternberg be83e81102 Modify the `ifql` section to `flux`
Mark the breaking changes in the changelog.
2018-08-02 15:50:23 -05:00
Hercules Mango Churchill 3e12599a44 Update changelog 2018-07-31 16:29:17 +00:00
Hercules Mango Churchill 818b1838de Update changelog 2018-07-18 17:50:50 +00:00
Hercules Mango Churchill e4384fe1c2 Update changelog 2018-07-18 16:41:16 +00:00
Edd Robinson 5641b2ef32
Merge pull request #10067 from influxdata/cl-master
Update CHANGELOG on master for 1.5.x releases and 1.6 release date.
2018-07-18 17:40:58 +01:00
Hercules Mango Churchill 4c7de894f2 Update changelog 2018-07-18 13:18:34 +00:00
Gershon Shif bb1db2eb52 updated 1.6.0 releade date 2018-07-13 13:28:24 -07:00
Jacob Marble dda1ae0cde Update changelog for #10005 2018-07-13 13:07:18 -07:00
timhallinflux adbfee28b3
Update CHANGELOG.md
Fixed year.  Put time machine back into storage.
2018-07-11 11:29:04 -07:00
timhallinflux 9c21c4120f
Update CHANGELOG.md
Update to include release date for 1.6 and maintenance releases for 1.5.x where x > 0
2018-07-11 01:41:19 -07:00
Hercules Mango Churchill ab786a1331 Update changelog 2018-07-10 15:16:49 +00:00
Hercules Mango Churchill ba38447e60 Update changelog 2018-07-05 17:20:45 +00:00
Hercules Mango Churchill 48797873ee Update changelog 2018-06-28 16:25:36 +00:00
Hercules Mango Churchill aed6b23cc8 Update changelog 2018-06-26 17:27:21 +00:00
Gershon Shif 6befcba50f Added the description for PR 9996 2018-06-22 13:50:55 -07:00
Hercules Mango Churchill 0a4f9dc1a2 Update changelog 2018-06-22 18:20:12 +00:00