Commit Graph

48 Commits (e5e4b898727bbf4028306ed6036cd94e6ace2df8)

Author SHA1 Message Date
Jason Wilder 67a2317c77 Remove timeBetweenInclusive
The logic in this function was wrong when used for shard group
bound calculations so remove it and use functions on shard group
instead.
2015-05-19 11:20:18 -06:00
Philip O'Toole 2d1af26d1a Update messaging client connection index
With this change heartbeating to the brokers will always communicate the
index of the most recently replicated message. This will allow broker
truncation and broker diagnostics to operate correctly.
2015-05-11 15:29:12 -07:00
Philip O'Toole 6cbc80fa50 Only access shard stats if shard is local
Fixes issue #2452
2015-04-29 15:05:45 -07:00
Cory LaNou c27953a764 put shard responsibilities in shard.go 2015-04-23 16:33:18 -06:00
Cory LaNou 9fee13ce41 format show stats properly and add more shard stats 2015-04-22 17:14:37 -06:00
Cory LaNou e205abbcb4 sort stats for testing. check for nil stats before updating 2015-04-22 16:03:37 -06:00
Cory LaNou e7eb3838f5 track more stats and report errors for shards 2015-04-22 15:37:59 -06:00
Philip O'Toole e75e6a9526 Add HTTP endpoint that serves a requested shard
With this change a datanode can stream the requested shard to the
client. An error is returned if the shard does not exist or the the
shard is not local to that node.

1 data node can hit this endpoint to request data for a given shard if
the data no longer resides on the broker.
2015-04-22 09:29:19 -07:00
Philip O'Toole ec57f8c84f RLock shard during diagnostics 2015-04-20 14:03:55 -07:00
Philip O'Toole bf1a8aa1e4 Use uint64 for Series IDs
Fixes issue #1649
2015-04-10 16:11:34 -07:00
Philip O'Toole a755c91b56 Synchronize access to shard index 2015-03-30 13:50:17 -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 43a5747e6e Track shard-level stats 2015-03-18 15:26:49 -07:00
Cory LaNou dc1a103ec9 Drop measurement was taking to long due to transactions 2015-03-17 11:44:08 -06:00
Ben Johnson 7dc465b9db Fix shard close race condition. 2015-03-14 14:47:20 -06:00
Ben Johnson 96748cb217 Update file permissions. 2015-03-14 13:49:25 -06:00
Ben Johnson 27e9132796 Integrate stateless broker into remaining packages. 2015-03-10 14:53:45 -06:00
Ben Johnson 5f5c6ca297 Integrate stateless messaging into influxdb package. 2015-03-09 15:47:41 -06:00
Philip O'Toole 05d630bfb8 Refactor shard group time bound checking
This allows it to be tested.
2015-02-27 14:03:13 -08:00
Cory LaNou b4218e9740 bucket may not exist, that is ok, only err if it is something other than not found 2015-02-26 17:10:09 -07:00
Cory LaNou 0f42be34bd check that the store exists 2015-02-21 22:32:07 -07:00
Cory LaNou 5ab3731159 delete -> drop for series naming 2015-02-21 17:18:50 -07:00
Cory LaNou 6d5be3da25 wip. compiles now. tests next 2015-02-21 17:10:11 -07:00
Philip O'Toole 612ef1fa08 Write batch in a single BoltDB transaction 2015-02-20 11:28:07 -08:00
Philip O'Toole 2585a9ea4f Encode real batches for shards 2015-02-20 11:28:07 -08:00
Philip O'Toole baf32a0a9b Remove debug line that is output unconditionally 2015-02-17 15:15:29 -08:00
Philip O'Toole 0ca98ea6c2 Remove unmarshalValues 2015-02-12 16:07:25 -08:00
Philip O'Toole 5b8c0748af Remove marshalValues
Code now on Measurement type
2015-02-12 16:07:20 -08:00
Philip O'Toole aa6a45c017 Add marshalling for more field types 2015-02-12 16:06:42 -08:00
Ben Johnson ef50a180b4 Fix measurement persistence. 2015-01-28 02:53:16 -05:00
Ben Johnson 0e2aae61e3 Basic query engine integration. 2015-01-14 16:44:09 -07:00
Ben Johnson 47cd03f3d3 Partial engine integration. 2015-01-13 10:16:43 -07:00
Ben Johnson ff470047ef Code review fixes. 2015-01-12 13:10:26 -07:00
Ben Johnson 5652e12c63 Add write series. 2015-01-10 13:29:43 -07:00
Ben Johnson 946007916c Partial write series code. 2015-01-10 08:48:50 -07:00
Ben Johnson bb7cdfb2af Reanme Shard.nodeIDs to Shard.dataNodeIDs. 2014-12-30 10:20:45 -07:00
Ben Johnson a04eb398cf Add node management. 2014-12-29 16:12:51 -07:00
Ben Johnson 7a1de8a459 Use replica id instead of replica name. 2014-12-23 17:01:06 -07:00
Ben Johnson b25ced9b8e Refactor database methods into server. 2014-12-22 23:18:05 -07:00
Paul Dix 2f362e557d Make writeSeries create shards if necessary and write data through. 2014-11-30 18:00:50 -05:00
Ben Johnson 0cc1818eaa Remove protobufs. 2014-11-17 17:23:21 -07:00
Ben Johnson 37ee2ac23c Remove engine, parser, and Makefile. 2014-11-17 15:54:35 -07:00
Ben Johnson f52c85a8a1 Query engine and parser integration into root pkg. 2014-11-09 19:55:53 -07:00
Ben Johnson b78d4f1329 Add basic query code into the database. 2014-11-06 20:18:36 -05:00
Ben Johnson c138aaaf58 Integrating query into shards. 2014-11-06 01:03:35 -05:00
Ben Johnson 922931500f Intermediate commit. 2014-11-03 23:25:33 -05:00