Philip O'Toole
da25c94484
Move small utility function closer to its use
2015-03-25 19:35:27 -07:00
Philip O'Toole
c461c7e7b4
Remove logging to specific file
2015-03-25 17:41:39 -07:00
Todd Persen
94a8019fc7
Wire up DROP CONTINUOUS QUERY
2015-03-25 11:58:33 -07:00
Ben Johnson
21782c0a67
Merge branch 'master' of https://github.com/influxdb/influxdb into backup-restore
2015-03-24 16:05:49 -06:00
Philip O'Toole
bfad9a194d
Merge pull request #2061 from influxdb/show_diags_command
...
SHOW DIAGNOSTICS command
2015-03-24 12:25:56 -07:00
Philip O'Toole
895b781e72
Creates "values" correctly for various diags
2015-03-24 09:27:54 -07:00
Philip O'Toole
f6644d4de8
Add "shard groups" and "shards" to diags
2015-03-23 23:46:20 -07:00
Philip O'Toole
e79d063f4f
Count number of open shards
2015-03-23 23:45:57 -07:00
Philip O'Toole
1c440f8542
Implement "SHOW DIAGNOSTICS"
2015-03-23 23:45:57 -07:00
Philip O'Toole
fba41df82b
Push version and commit hash onto Server
2015-03-23 23:45:57 -07:00
Philip O'Toole
a8f0dbcf1d
Load shards on restart
...
Fix for #2012
2015-03-23 18:34:46 -07:00
Philip O'Toole
0a76c2bdfc
Clear server maps on close
...
These maps are reloaded from the metastore on open.
2015-03-23 18:27:36 -07:00
Philip O'Toole
51e98b85ef
Support sorting of retention policies
...
Sort them by name.
2015-03-23 17:27:15 -07:00
Philip O'Toole
c239914249
Track number of queries received and executed
2015-03-23 16:48:25 -07:00
Philip O'Toole
ab4e7b3047
Tighten up tag and ID choice for internal stats
2015-03-23 16:48:22 -07:00
Ben Johnson
3befa12fa3
Merge branch 'master' of https://github.com/influxdb/influxdb into backup-restore
...
Conflicts:
cmd/influxd/main.go
cmd/influxd/run.go
2015-03-22 15:38:41 -06:00
Ben Johnson
11c808f55f
Add restore and bootstrap.
...
This commit adds the "influxd restore" command to the CLI. This allows
a snapshot that has been produced by "influxd backup" to be restored
to a config location and the broker and raft directories will be
bootstrapped based on the state of the snapshot.
2015-03-22 15:31:49 -06:00
Ben Johnson
0461f401f6
Add SnapshotWriter.
2015-03-19 22:23:52 -06:00
Philip O'Toole
05fb2842ba
Use _id for Series IDs
...
Fix issue #2008
2015-03-19 19:04:07 -07:00
Philip O'Toole
62dc60d36d
Merge pull request #2004 from influxdb/limit-group-by
...
Limit group by to MaxGroupByPoints (currently 100,000)
2015-03-19 16:45:24 -07:00
Philip O'Toole
dc297e8012
Correctly use IsRawQuery
2015-03-19 16:32:25 -07:00
Philip O'Toole
b045a0008e
Remove redundant Aggregated() on select statement
2015-03-19 15:22:43 -07:00
Simon Kern
787d521ca5
removed unnecessary fmt.Sprintf
2015-03-19 22:17:15 +01:00
Cory LaNou
c13bdd5e86
refactor, bug fix, move tests to integration
2015-03-19 14:33:47 -06:00
Cory LaNou
e78e5f3e19
Limit group by to MaxGroupByPoints (currently 100,000)
2015-03-18 18:44:30 -06:00
Philip O'Toole
43a5747e6e
Track shard-level stats
2015-03-18 15:26:49 -07:00
Philip O'Toole
61b5c4ee3c
Set a timestamp when storing monitoring stats
2015-03-18 12:42:33 -07:00
David Norton
62ae32b0ce
wire up regex in FROM clause
2015-03-16 19:40:59 -04:00
David Norton
fd005a5f15
influxql: allow regex in FROM clause
2015-03-16 19:40:21 -04:00
Philip O'Toole
69530b7e8f
Use a time.Ticker object for precise self-monitoring
2015-03-15 14:32:47 -07:00
Philip O'Toole
eec2cf6bf6
Use a better ID for the server ID in stats
2015-03-15 14:32:46 -07:00
Philip O'Toole
50d2470041
Write totals, not diff, of internal stats
2015-03-15 14:32:46 -07:00
Philip O'Toole
032cfaa980
Launch self-monitoring in a go-routine
2015-03-15 14:32:46 -07:00
Philip O'Toole
43161bb5da
Small chance that a database exists
2015-03-15 14:32:46 -07:00
Philip O'Toole
d627634991
Ensure internal retention policy exists
2015-03-15 14:32:46 -07:00
Philip O'Toole
ae3b3d5252
Rename "metrics" to "stats"
2015-03-15 14:32:46 -07:00
Philip O'Toole
5240151517
Actually start self-monitoring if requested
2015-03-15 14:32:11 -07:00
Philip O'Toole
bf28720c6e
Add "name" to stats object
...
This "name" becomes the Measurement name. In addition the implementation
for "SHOW STATS" has been re-instated.
2015-03-15 14:32:11 -07:00
Philip O'Toole
6867d806de
Use Inc() shorthand for Stats
2015-03-15 14:32:11 -07:00
Philip O'Toole
f730257ee4
Implement self-monitoring
2015-03-15 14:31:16 -07:00
Philip O'Toole
228e238436
Remove unnecessary err variable
2015-03-15 14:31:16 -07:00
Philip O'Toole
8825580500
Track server stats
2015-03-15 14:31:16 -07:00
Todd Persen
b842bf2446
Merge pull request #1952 from dullgiulio/delete-no-panic
...
return error on delete statement, closes #1933
2015-03-15 10:16:42 -07:00
Ben Johnson
06d839223e
Integration test delay.
2015-03-14 14:31:25 -06:00
Ben Johnson
41d357ac04
Fixes based on code review comments.
2015-03-14 14:07:09 -06:00
Ben Johnson
53dbec8232
Add config notifications and increased test coverage.
2015-03-14 13:36:06 -06:00
Giulio Iotti
2cc2077c3d
do not accept empty database name in drop
2015-03-14 21:31:44 +02:00
Giulio Iotti
38bb2cf62e
do not allow empty database name, closes #1950
2015-03-14 15:39:22 +02:00
Giulio Iotti
a4f96a3b9f
return error on delete statement, closes #1933
2015-03-14 11:14:32 +02:00
Ben Johnson
4b9a93d924
Merge branch 'master' of https://github.com/influxdb/influxdb into stateless-broker
2015-03-12 15:46:04 -06:00
Philip O'Toole
d82d040e59
Create databases for Graphite at higher level
...
By doing this the SeriesWriter interface stays focused and just has
methods for writing data. Its name then remains coherent.
2015-03-12 13:33:25 -07:00
Ben Johnson
7880bc2452
Add zero length data checks.
2015-03-12 12:12:26 -06:00
Ben Johnson
7ab19b9f91
Merge branch 'master' of https://github.com/influxdb/influxdb into stateless-broker
2015-03-12 11:59:55 -06:00
Cory LaNou
ddc6e119ab
Add default column to SHOW RETENTION POLICIES
2015-03-12 11:07:51 -06:00
Cory LaNou
8655ed3d91
fixing default retention policy creation
2015-03-12 10:01:26 -06:00
Ben Johnson
5f6bcf523f
Fix broker integration bugs.
2015-03-11 12:00:45 -06:00
Cory LaNou
982e59a416
Merge pull request #1906 from influxdb/show-servers
...
Add show servers to query language
2015-03-11 10:38:11 -06:00
Cory LaNou
f6121a9b63
fixing edge case for infinite retention policy
2015-03-11 10:14:53 -06:00
Ben Johnson
66115f95ca
Merge branch 'master' of https://github.com/influxdb/influxdb into stateless-broker
...
Conflicts:
cmd/influxd/run.go
messaging/broker.go
messaging/client.go
messaging/client_test.go
messaging/intg_test.go
server.go
tx_test.go
2015-03-10 16:27:37 -06:00
Cory LaNou
5e65a07b31
retrieve list of data nodes
2015-03-10 15:47:34 -06:00
Ben Johnson
27e9132796
Integrate stateless broker into remaining packages.
2015-03-10 14:53:45 -06:00
Cory LaNou
db067b6a2d
move constant
2015-03-10 12:24:26 -06:00
Cory LaNou
91487cc8dd
update comment
2015-03-10 10:52:23 -06:00
Cory LaNou
b8fb723967
Enforce retention policy minimum (currently 1 hour)
2015-03-10 10:49:54 -06:00
Cory LaNou
c150a8c8bc
run all create shards groups through same methods
2015-03-09 18:54:37 -06:00
Cory LaNou
7495e6eb1c
fix comments, some renaming, adding rlock
2015-03-09 18:05:39 -06:00
Cory LaNou
b6e7210f47
close channel
2015-03-09 17:36:50 -06:00
Cory LaNou
67f03ef26b
Pre-create shard groups
...
1) Pre create shard groups
2) Calculate and save the ShardGroupDuration for Retention Policies. This should never change even if they alter a retention policy in the future
2015-03-09 17:30:17 -06:00
Philip O'Toole
abf664c18d
Merge pull request #1895 from influxdb/create_default_rp
...
Create retention policy by default
2015-03-09 16:26:41 -07:00
Philip O'Toole
f72313edd9
Support retention policy auto-creation
2015-03-09 16:24:03 -07:00
Ben Johnson
5f5c6ca297
Integrate stateless messaging into influxdb package.
2015-03-09 15:47:41 -06:00
Ben Johnson
713ca4b831
Merge branch 'master' into stateless-broker
...
Conflicts:
messaging/broker.go
2015-03-09 12:27:14 -06:00
Philip O'Toole
1db4851e49
RLock Server when checking retention policies
2015-03-09 10:56:59 -07:00
Joseph Rothrock
9b63eed767
Merge branch 'master' of github.com:influxdb/influxdb into 1753
...
Conflicts:
CHANGELOG.md
2015-03-06 12:37:15 -08:00
Joseph Rothrock
771ef1cec3
Don't Panic on Missing Dirs
...
Issue: 1753
Figure out what's missing, create it, and keep going.
2015-03-06 12:11:02 -08:00
Philip O'Toole
76c255a3c8
Add trace-level logging to server write path
2015-03-05 17:35:57 -08:00
Todd Persen
93b56ca058
Make sure queries for missing measurements return a `200 OK` even when using a `GROUP BY *`.
2015-03-05 17:27:46 -08:00
Philip O'Toole
77d8986626
Don't delete data with infinite retention
2015-03-05 15:22:36 -08:00
Ben Johnson
1bbf154f2a
Removing replicas and subscriptions from broker.
2015-03-01 22:32:20 -07:00
Kai Zhang
ef262171d6
trim command line before parse it
...
This can avoid some errors caused by an additional space at the end of
the command line.
For example: 'use db ' will be trimed to 'use db' and parsed correctly.
Signed-off-by: Kai Zhang <zhangk1985@gmail.com>
2015-03-01 10:44:20 +08:00
Philip O'Toole
a7c0d71d9c
Merge pull request #1770 from kylezh/dev
...
Fix error when alter retention policy
2015-02-27 20:55:14 -08:00
Paul Dix
a26f11f489
fixes based on @dgnorton's feedback
2015-02-27 01:09:38 -05:00
Paul Dix
52f257e349
Make show series return IDs and work with limit and offset.
...
Fixes #1765
2015-02-27 01:09:38 -05:00
Kai Zhang
9f8639ded8
Fix error when alter retention policy
...
+ fix error when execute ALTER RETENTION POLICY bar ON foo DURATION 1h
+ add test to verify the fix
Signed-off-by: Kai Zhang <zhangk1985@gmail.com>
2015-02-27 09:54:39 +08:00
Cory LaNou
0ab43cc8a5
adding better error message to return
2015-02-26 17:10:09 -07:00
Cory LaNou
499a5dcb33
show series should only return for measurements with series data
2015-02-26 17:10:09 -07:00
Cory LaNou
66c5750726
return early if no measurement. clarify comments
2015-02-25 12:56:23 -07:00
Cory LaNou
fb2f7416ed
drop shard data
2015-02-25 12:42:23 -07:00
Cory LaNou
a151fe64d4
deleting data from metastore. wip
2015-02-25 12:42:23 -07:00
Cory LaNou
0ad76c637d
broadcastig drop measurement
2015-02-25 12:42:23 -07:00
Cory LaNou
079f64338b
wiring up droping series, wip
2015-02-25 12:42:23 -07:00
Philip O'Toole
eb0480ebdf
Perform retention checks again UTC time
2015-02-25 10:55:48 -08:00
David Norton
e7e04cdeb0
fix #1717 : code review chng & update CHANGELOG.md
2015-02-24 14:35:22 -05:00
David Norton
95a5f2588e
fix #1717 : all points must have at least one field
2015-02-24 14:09:10 -05:00
Paul Dix
86972788d3
Merge pull request #1632 from influxdb/wildcard_group_by
...
Implement comprehensive query wildcard re-write
2015-02-24 00:13:37 -05:00
Philip O'Toole
41ad49f1c1
Add wildcard detection method to SelectStatement
2015-02-23 19:09:55 -08:00
Philip O'Toole
84de4ad56c
Add wildcard rewrite functionality for SELECT
...
This code, when given a SELECT statement, returns another SELECT
statement such that all "query" and GROUP BY wildcards have been
replaced with all Measurement fields and tag keys respectively.
2015-02-23 19:09:55 -08:00
Philip O'Toole
86b91ead94
"SHOW TAG VALUES" now outputs series per tag key
...
This change tightens up the type used for "Series" so the pre-existing
sort method can be used.
2015-02-23 17:15:55 -08:00
Philip O'Toole
2f0fe901e3
Rename "Values" to "Fields" for writes
2015-02-23 15:06:56 -08:00
Todd Persen
2cc23d3c66
Merge pull request #1529 from influxdb/stats-reporting
...
Bring back stats reporting.
2015-02-23 12:57:49 -08:00