Commit Graph

416 Commits (659706e8749cfc6848b46071cdc1075125c7710c)

Author SHA1 Message Date
Philip O'Toole 8c2f894fab Integrate more code review feedback 2015-01-08 11:14:57 -08:00
Philip O'Toole f3650b4797 Implement a distinct Graphite Parser
This encapsulates a few previously free-floating methods. This means
that params such as "separator" and "last-enabled" are not passed from
function to function, and also makes initialization of TCP and UDP
Servers somewhat clearer.

It also removes early use of "GraphiteProcessor".
2015-01-06 23:20:01 -08:00
Ben Johnson 1f27d042c3 Remove debugging. 2015-01-06 17:29:51 -07:00
Ben Johnson 70d84a9a2e Merge branch 'master' of https://github.com/influxdb/influxdb into join
Conflicts:
	cmd/influxd/run.go
	handler.go
	server.go
2015-01-06 17:25:34 -07:00
Ben Johnson 50a0826026 Add broker snapshot/restore and CLI join. 2015-01-06 17:21:32 -07:00
Philip O'Toole 4c4950a796 Rename AuthenticatedUser to Authenticate
Feedback from final code review.
2015-01-06 09:19:31 -08:00
Cory LaNou 098231f3ea Merge remote-tracking branch 'upstream/master' into graphite 2015-01-05 20:16:38 -07:00
Philip O'Toole 6b7af89119 Add new wrapper handlers for User authentication 2015-01-05 16:03:05 -08:00
Philip O'Toole 77764169b4 Function to return whether there is an admin user 2015-01-05 16:03:05 -08:00
Paul Dix 7743310432 Merge pull request #1264 from influxdb/in_mem_tag_index
Add in memory tag and metastore index
2015-01-02 14:28:25 -05:00
Paul Dix b42def229a Update database style based on feedback 2015-01-02 14:02:02 -05:00
Cory LaNou cc4630e268 vet shoudl pass for server.go 2015-01-02 09:56:25 -06:00
Paul Dix d5548aa136 Refactor Index into database
* Pull database, Measurement, Series, ReplicationPolicy, and Shard into database.go to keep things manageable and clean
* Remove the locks from the index method. The server will handle thread safety for database objects
* Move the Index tests into database_test.go and in the influxdb package because we're not exporting database
2014-12-31 18:55:45 -05:00
Paul Dix 3aa46c6b8a Wire up TagValues on index. 2014-12-31 14:54:28 -05:00
Ben Johnson dbb089488f Create cluster on initial run. 2014-12-31 12:42:53 -07:00
Paul Dix 0f64a29d78 Fix merge conflicts 2014-12-30 17:50:55 -05:00
Ben Johnson 70d561aa6f Refactor main/run. 2014-12-30 15:46:50 -07:00
Paul Dix f763060b68 Refactor measurementIndex into the measurement object.
* Updated megastore to build the per database index for the server object
* Changed Server to have MeasurementNames and MeasurementSeriesIDs methods instead of generic Measurement method.
2014-12-30 16:45:58 -05:00
Ben Johnson 957ea91997 Add DataNode autoincrementing sequence. 2014-12-30 09:01:19 -07:00
Ben Johnson e88bd55762 Rename Node to DataNode. 2014-12-30 08:50:15 -07:00
Ben Johnson a04eb398cf Add node management. 2014-12-29 16:12:51 -07:00
Paul Dix e49d2b728b Rename TagIndex to Index 2014-12-26 11:10:46 -05:00
Paul Dix 9ec210f7f9 Add comments for clarity 2014-12-24 19:01:53 -05:00
Paul Dix bbe859c981 WIP: Add in memory tag and megastore index
* Refactor metastore to remove tag mappings
* Add TagIndex and tests
* Update server to use TagIndex
2014-12-23 23:46:54 -05:00
Ben Johnson 7a1de8a459 Use replica id instead of replica name. 2014-12-23 17:01:06 -07:00
Ben Johnson bc84151b00 Fix leaky shard creation. 2014-12-23 11:18:46 -07:00
Ben Johnson ca6d0e30af Code review fixes. 2014-12-23 08:47:32 -07:00
Ben Johnson b25ced9b8e Refactor database methods into server. 2014-12-22 23:18:05 -07:00
Paul Dix 4d4b9656c7 Add Fields to Measurement.
* Add Field
* Changes series on meta to measurements for consistency
* Update metastore to store serialized Series object instead of tags
2014-12-22 07:35:29 -05:00
Paul Dix f6948b14c8 Update Database and Metastore to keep series info
* Change database to keep all data under a bucket in bolt
* Subbucket under the database to keep tagbytes to ids
* Subbucket under the database to keep ids to tag values
2014-12-22 07:35:29 -05:00
Paul Dix 6f5643a9ed Remove the old series cruft from database and metastore 2014-12-22 07:35:29 -05:00
Paul Dix 3190840f4b gofmt 2014-12-03 11:32:53 -05:00
Paul Dix edb9aa8dae Update tagsToBytes to fix possible collisions 2014-12-03 11:10:13 -05:00
Paul Dix 1b96efac8f Remove todo 2014-12-03 10:41:05 -05:00
Paul Dix ec96fe2eb9 Change getSeriesId to seriesID to be idomatic 2014-12-03 10:32:39 -05:00
Paul Dix 2f362e557d Make writeSeries create shards if necessary and write data through. 2014-11-30 18:00:50 -05:00
Paul Dix c008594b0d Finish up creating new series.
* setSeriesId changed to createSeriesIfNotExists
* changed tagsToBytes implementation to be more compact and accunt for maps not having keys in sorted order
* remove maxFieldId from database and use a sequence on the bucket for the db in the series bucket instead
2014-11-28 19:50:02 -05:00
Paul Dix 8d9a063cc2 Implement setting of new series id 2014-11-28 14:14:04 -05:00
Paul Dix d08bc0297d WIP: Implement writes series data on database
* Add setSeriesId to raft, metastore
* Add methods to get seriesIds

[ci skip]
2014-11-26 11:26:18 -05:00
David Norton 3478866fcb Wire up GET /db/:db/users/:user and use Matcher
In addition to wiring up the endpoint, this commit also changes the
user endpoints to use two []*Matcher for readFrom and writeTo instead
of a single []string for permissions.
2014-11-26 11:02:17 -05:00
Paul Dix 291360d42b Fix impl and test for setting default retention policy 2014-11-18 19:41:50 -05:00
Paul Dix 8788314e4d Add set default retention policy 2014-11-18 18:59:37 -05:00
Paul Dix 87f5ea1f6a Refactor ShardSpace to RetentionPolicy
* Remove regex since they will be written to or queried explicitly
* Rename retention to duration
* Remove duration
2014-11-18 17:57:10 -05:00
Ben Johnson 4858f58877 Change writeSeriesData() interface. 2014-11-18 08:03:26 -07:00
Ben Johnson 0cc1818eaa Remove protobufs. 2014-11-17 17:23:21 -07:00
Ben Johnson f52c85a8a1 Query engine and parser integration into root pkg. 2014-11-09 19:55:53 -07:00
Ben Johnson dcef4baeb1 Add bolt-backed metastore. 2014-11-05 00:32:17 -05:00
Ben Johnson 922931500f Intermediate commit. 2014-11-03 23:25:33 -05:00
Ben Johnson 31f981e804 Refactoring common, cluster, and protobuf. 2014-10-31 19:31:19 -06:00
Ben Johnson cb6c9ddc3f Add Database.CreateShardSpace() and Database.DeleteShardSpace(). 2014-10-30 17:30:34 -06:00
Ben Johnson bf36b2a797 Shard space JSON marshaling. 2014-10-29 18:21:17 -06:00
Ben Johnson 09d09a9b8f Add cluster admin deletion and listing. 2014-10-28 19:34:12 -06:00
Ben Johnson 3ec34340a0 Add cluster admin deletion. 2014-10-28 18:43:03 -06:00
Ben Johnson fd6f17f079 Add cluster admin creation. 2014-10-28 17:54:49 -06:00
Ben Johnson ec0835c256 Refactor user commands. 2014-10-28 20:30:21 -06:00
Ben Johnson 3a0e1b817c Add database listing. 2014-10-27 18:16:03 -06:00
Ben Johnson 2722e89299 Add user listing. 2014-10-27 17:31:45 -06:00
Ben Johnson f683eabb7a Add change password. 2014-10-25 13:30:41 -06:00
Ben Johnson e47a19ada6 Add user deletion. 2014-10-25 11:54:23 -06:00
Ben Johnson f3ab736d83 Add user creation failure testing. 2014-10-25 09:17:08 -06:00
Ben Johnson 0b1dc6f6e3 Add CreateUser flow. 2014-10-24 22:38:01 -06:00
Ben Johnson 4b276bada3 Refactor messaging error handling. 2014-10-24 17:45:02 -06:00
Ben Johnson a3c7549ee9 Implement CreateDatabase command. 2014-10-23 23:38:03 -06:00
Ben Johnson 9c1e9d93bc Add broker client publishing. 2014-10-23 18:54:12 -06:00
Ben Johnson dc8a73b857 More refactoring. 2014-10-22 22:21:48 -06:00
Ben Johnson 7db0e15799 Refactoring into root. 2014-10-21 23:32:19 -06:00