Commit Graph

10631 Commits (27650da7b9562de722ed6cd2c873a6c04a243283)

Author SHA1 Message Date
Edd Robinson f680ab0f0d Fix vet issues 2016-05-18 13:34:11 +01:00
Edd Robinson 887e4ba4d4 Merge pull request #6654 from influxdata/er-http-stat
Add some HTTP statistics
2016-05-18 11:54:00 +01:00
Edd Robinson ce0064cd88 Add stat for currently active write requests 2016-05-17 22:14:19 +01:00
Edd Robinson 36480c6271 Add client and server status code stats 2016-05-17 16:57:20 +01:00
joelegasse 046561181c Merge pull request #6651 from influxdata/jl-close-race
Fix loop variable reuse in database close
2016-05-17 11:38:02 -04:00
Joe LeGasse af432e7d12 Fix loop variable reuse in database close
Fixes #6650
2016-05-17 11:25:39 -04:00
Jonathan A. Sternberg 1dcc9f1e63 Merge pull request #6645 from influxdata/js-6644-panic-stack-trace
Print the query executor's stack trace on a panic to the log
2016-05-17 10:12:20 -04:00
Jonathan A. Sternberg c01cda58e8 Print the query executor's stack trace on a panic to the log
Fixes #6644.
2016-05-17 09:23:55 -04:00
Edd Robinson a1cd346985 Merge pull request #6646 from influxdata/er-licence-deps
Update dependency licences
2016-05-17 13:54:33 +01:00
David Norton c325c825e9 Merge pull request #6648 from influxdata/dn-check-admin
check admin exists instead of user count
2016-05-17 08:36:05 -04:00
David Norton 7ed188185d check admin exists instead of user count
When authenticating a request, check that an admin user exists instead
of checking for len(users) > 0. This prevents getting stuck with no
admin user and being unable to create one.
2016-05-17 08:07:37 -04:00
Edd Robinson 19e781fe24 Merge pull request #6639 from influxdata/er-hh-tidy
Remove references to Hinted Handoff
2016-05-17 12:19:08 +01:00
Edd Robinson 0983139846 Update dependency licences 2016-05-17 12:13:27 +01:00
Jonathan A. Sternberg 42cdaf0365 Merge pull request #6529 from influxdata/js-6519-select-tag-key-specifier
Support cast syntax for selecting a specific type
2016-05-16 12:30:14 -04:00
Jonathan A. Sternberg 23f6a706bb Support cast syntax for selecting a specific type
Casting syntax is done with the PostgreSQL syntax `field1::float` to
specify which type should be used when selecting a field. You can also
do `field1::field` or `tag1::tag` to specify that a field or tag should
be selected.

This makes it possible to select a tag when a field key and a tag key
conflict with each other in a measurement. It also means it's possible
to choose a field with a specific type if multiple shards disagree. If
no types are given, the same ordering for how a type is chosen is used
to determine which type to return.

The FieldDimensions method has been updated to return the data type for
the fields that get returned. The SeriesKeys function has also been
removed since it is no longer needed. SeriesKeys was originally used for
the fill iterator, but then expanded to be used by auxiliary iterators
for determining the channel iterator types. The fill iterator doesn't
need it anymore and the auxiliary types are better served by
FieldDimensions implementing that functionality, so SeriesKeys is no
longer needed.

Fixes #6519.
2016-05-16 12:08:29 -04:00
Edd Robinson 5249bdffd6 Remove references to Hinted Handoff 2016-05-16 16:48:58 +01:00
Jason Wilder ce141eae37 Merge pull request #6637 from influxdata/jw-revert-compact
Revert "Fix memory spike when compacting overwritten points"
2016-05-16 09:46:24 -06:00
Jason Wilder 23fc9ff748 Revert "Fix memory spike when compacting overwritten points"
This reverts commit d99c5e26f6.
2016-05-16 09:30:34 -06:00
Jonathan A. Sternberg 274647b5b2 Merge pull request #6616 from influxdata/js-6607-show-tag-values-with-negative-regex-in-where-clause
SHOW TAG VALUES accepts != and !~ in WHERE clause
2016-05-16 09:22:49 -04:00
Jonathan A. Sternberg a17f3d960a SHOW TAG VALUES accepts != and !~ in WHERE clause
Fixes #6607.
2016-05-16 08:51:09 -04:00
Jonathan A. Sternberg 2ce8fa5f06 Merge pull request #6631 from influxdata/js-6629-query-log-enabled
query-log-enabled not ignored in config anymore
2016-05-16 08:50:25 -04:00
Jonathan A. Sternberg ecacdb7d21 query-log-enabled not ignored in config anymore
Fixes #6629.
2016-05-15 22:36:18 -04:00
Jonathan A. Sternberg 2c9d0fcc04 Merge pull request #6628 from influxdata/js-add-docker-badge
Add docker pull badge to the README
2016-05-15 22:16:54 -04:00
Jonathan A. Sternberg a3b8b1adca Add docker pull badge to the README 2016-05-15 22:05:17 -04:00
Edd Robinson 6c3e76e0ce Merge pull request #6625 from xboston/patch-1
fix import block in example
2016-05-15 13:06:45 +01:00
Jason Wilder 57d4becaec Fix possible deadlock when queries and delete series run concurrently
This locks showeed up in a deadlock systems running queries and
delete series across a large dataset.  Queries should not need to
lock the tsdb.Store for writes
2016-05-13 17:04:12 -06:00
Jason Wilder 1bfc832046 Merge pull request #6626 from influxdata/jw-shard-load
Limit concurrent shards loading to number of cores available
2016-05-13 15:55:49 -06:00
Jason Wilder 5b6f3afefa Limit concurrent shards loading to number of cores available 2016-05-13 15:41:32 -06:00
Nikolay Kirsh ad8b64dea8 fix import block in example
remove unused imports
2016-05-14 02:02:41 +05:00
Jason Wilder 11871958c6 Merge pull request #6618 from influxdata/jw-shard-load
Optimize shard index loading
2016-05-13 14:16:17 -06:00
Jason Wilder 9191474ac7 Merge pull request #6623 from influxdata/jw-drop-database
Speed up drop database
2016-05-13 14:16:02 -06:00
Ross McDonald 9f7ef02acc Merge pull request #6594 from influxdata/ross-build-updates
Minor fixes for build.py
2016-05-13 12:15:49 -05:00
Jason Wilder 9e54adc719 Speed up drop database
Drop database was closing and deleting each shard dir individually and
serially.  It would then delete the empty database dirs.

This changes drop database to close all shards in parallel and run
one os.RemoveAll to remove everything under the db dir which is more
efficient.

This also reworked the locking to avoid locking the tsdb.Store for
long periods of time.  That can cause queries and writes for other
databases to block as well.
2016-05-13 10:26:28 -06:00
Jonathan A. Sternberg 51b3f46970 Merge pull request #6601 from influxdata/js-6559-http-connection-limits
Teach the http service how to enforce connection limits
2016-05-12 16:51:46 -04:00
Jonathan A. Sternberg 4fab68b53b Teach the http service how to enforce connection limits
The http connection limit is for any HTTP operation and is independent
of the other connection limits. It should be set to a higher value than
the query limit. The difference between this and the query limit is it
will close out the connection immediately without any further
processing.

This is the equivalent of the `max_connections` option in PostgreSQL.

Also removes some unused config options from the cluster config.

Fixes #6559.
2016-05-12 16:25:16 -04:00
Jason Wilder 0dbd4893da Optimize shard index loading
On data sets with many series and potentially large series keys,
the cost of parsing the key and re-indexing can be high.

Loading the TSM keys into the index was being done repeatedly for
series that were already index by an earlier TSM file.  This was
wasted worked and slows down shard loading.

Parsing the key was also innefficient and allocated a new string
slice.  This was simplified to remove that allocation.
2016-05-12 14:02:42 -06:00
Jonathan A. Sternberg 9840d6fa30 Merge pull request #6606 from influxdata/js-fix-encode-tags
Fix decodeTags to decode tags correctly
2016-05-12 12:14:26 -04:00
Jonathan A. Sternberg f1a5ebe9c9 Merge tag 'v0.13.0' 2016-05-12 11:54:56 -04:00
Ben Johnson 7afb73aa99 Merge pull request #6598 from benbjohnson/parallelize-planning
Parallelize query planning
2016-05-12 09:00:58 -06:00
David Norton 06ec2ce41a Merge pull request #6609 from influxdata/dn-bearer-token
feat #4448: add support for JWT tokens
2016-05-12 08:58:49 -04:00
David Norton c0a772c068 update CHANGELOG.md 2016-05-12 08:20:07 -04:00
David Norton 2080cfb35d improve error message 2016-05-12 08:20:07 -04:00
David Norton d42f5f8062 require token expiration 2016-05-12 08:20:07 -04:00
David Norton 5842e206ae bump token expiration time up in test 2016-05-12 08:20:07 -04:00
David Norton efba07993a update Godeps: add jwt-go 2016-05-12 08:20:07 -04:00
David Norton 4e2605e98d feat #4448: add support for JWT tokens 2016-05-12 08:20:07 -04:00
Jason Wilder 590b3f9fc7 Merge pull request #6604 from influxdata/jw-cluster
Remove old cluster code
2016-05-11 16:57:06 -06:00
Edd Robinson e059c2324d Merge pull request #6602 from influxdata/er-mention
Filtering some authors from mention bot
2016-05-11 23:08:18 +01:00
Jonathan A. Sternberg fb7be8ce4e Fix decodeTags to decode tags correctly from encodeTags
encodeTags would encode the tags by outputting every key followed by
every value in alphabetical order. decodeTags would try to read this in
an old format that printed tags in key/value order.

This fix matches decodeTags to match the same format encodeTags outputs.
2016-05-11 16:21:39 -04:00
Jason Wilder e57fb88a05 Update 0.13.0 release date 2016-05-11 13:37:42 -06:00