Commit Graph

189 Commits (2585a9ea4f1882b8a19088fa17c21c3fcd43e349)

Author SHA1 Message Date
Mark Rushakoff 6954090024 Merge pull request #1574 from influxdb/client-user-agent
Client user agent is configurable
2015-02-18 12:10:53 -08:00
Paul Dix 36d16a3172 Update broker to have URLs for replicas
* Update the infludb broker to not need a server so that it'll work on non-data node servers
* Update messaging broker to keep track of connect urls for replicas
2015-02-17 21:02:53 -05:00
Paul Dix 3809514cd2 Fixed issue on running servers that are data nodes only 2015-02-17 21:02:53 -05:00
Paul Dix 9f5bf814d8 Remove old config settings 2015-02-17 21:02:53 -05:00
Paul Dix 8fee14fbf8 Fixes based on PR feedback.
* Pull out magic numbers for running CQs in the broker
* Typo fixes in comments
* Update the process_continuous_queries endpoint to not have gzip
* Remove previous implementation of MeasurementNames in favor of new simpler one
2015-02-17 21:02:53 -05:00
Paul Dix fec6764b09 WIP: wire up continuous queries
* Fix run to work with CQ broker
* Fix CQ handler
* Fix SetTimeRange to use RFC3339Nano
* Fix the time range tests
* Fix the parser to parse for RFC3339Nano literals in addition to the other format
* Add logic for running CQs
* Remove duplicate WriteBufferSize default setting from config
2015-02-17 21:02:18 -05:00
Paul Dix f2d132b361 Implement continuous queries with group by intervals
* Update defaults on Broker for when to trigger CQ runs
* Add config settings for how often to calculate and recalculate CQ results
* Update Server to have CQ settings
* Update AST to fold removed time literals when setting time range
* Add periodic CQ running functionality to server
2015-02-17 21:00:24 -05:00
Paul Dix 4217778a08 Add periodic triggering of continuous queries to broker.
* Create influxdb specific broker that will periodically start continuous query calculation. Will send to the same data node as long as it's up and responding
* Add endpoint in handler to start processing of continuous queries on a data node
2015-02-17 21:00:24 -05:00
Paul Dix 5f14d5faf5 WIP: start implementation of continuous queries
* Update SelectStatement to have GroupByInterval
* Update parser to verify that CQs have GroupByInterval if Aggregated
* Implement CreateContinousQuery on Server
* Add ContinuousQueries to database
2015-02-17 21:00:24 -05:00
Mark Rushakoff f6b26d30dd Shell includes version in user agent string
Note on how overriding the version works:

If you just run `go run cmd/influx/main.go` you'll see the shell print
out "Influx DB shell 0.9" as this commit sets the package-level variable
`version` to the string "0.9".

Running `go run -ldflags "-X main.version 123" cmd/influx/main.go` will
print out "Influx DB shell 123". (`-ldflags` works for `go install` and
`go build`, too.)
2015-02-11 22:08:21 -08:00
Todd Persen 93201bd68c Make admin interface enabled by default. 2015-02-11 16:33:21 -08:00
Todd Persen 26279cb8df Tweak configurability of the admin server. 2015-02-11 16:12:13 -08:00
Todd Persen 4fd6e3707f Some name cleanup and making the admin test not crappy. 2015-02-11 15:48:04 -08:00
Mark Rushakoff e9d5b74738 Client user agent is configurable 2015-02-11 12:35:15 -08:00
Philip O'Toole 3b64f34d28 Remove obsolete data config options 2015-02-11 10:26:39 -08:00
Philip O'Toole 8cb06c5b8e Refactor retention policy enforcement for testing 2015-02-11 09:54:07 -08:00
Philip O'Toole 50ef1672cb Add stubbed enable of retention policy enforcement 2015-02-11 09:54:07 -08:00
Philip O'Toole 61e1fa0efb Add config control for retention policies 2015-02-11 09:54:07 -08:00
Philip O'Toole c5f17dae89 go fmt changes 2015-02-11 08:25:17 -08:00
Todd Persen 286c9a9635 Fix admin configuration. 2015-02-10 23:42:17 -08:00
Todd Persen 4cdda0ba31 Initialize the admin interface on startup. 2015-02-10 23:04:19 -08:00
Cory LaNou 7dbd9c0d3d combine error checking 2015-02-10 09:12:18 -07:00
Cory LaNou 7b28df0d49 someone needs to add a precommit hook... 2015-02-10 08:54:19 -07:00
Philip O'Toole 0c14a5e5de Group util functions together 2015-02-09 20:00:45 -08:00
Philip O'Toole bfc9ea66be Perform query against full slice of nodes
This will allow the integration tests to query against any portion of
the cluster, to ensure data has been correctly replicated.
2015-02-09 19:56:54 -08:00
Philip O'Toole 87bd21d204 Allow integration tests to specify query 2015-02-09 19:46:01 -08:00
Philip O'Toole cdeab14201 Pretty up test JSON for cluster testing 2015-02-09 19:42:56 -08:00
Philip O'Toole 8bbdfd237a Break out write and query 2015-02-09 19:38:06 -08:00
Philip O'Toole 221954fbdc nNodes is now redundant 2015-02-09 18:13:40 -08:00
Philip O'Toole de1122e133 Skip multi-node tests when '-short' passed 2015-02-09 18:09:32 -08:00
Philip O'Toole cb3a222cbd Rename integration test file
It now performs multi-node cluster testing.
2015-02-09 18:01:25 -08:00
Philip O'Toole a1953f225e Use new type for []nodes 2015-02-09 18:00:58 -08:00
Philip O'Toole e3110cee4e Add explicit leader flag 2015-02-09 17:59:19 -08:00
Philip O'Toole 567fd2bfef Pass around slices of nodes as cluster 2015-02-09 17:55:07 -08:00
Philip O'Toole 252286d035 Factor out database and retention policy creation 2015-02-09 17:37:17 -08:00
Philip O'Toole 81855662c3 Use different port ranges for each cluster
Long-term we need to expose methods on the top-level object such that
the TCP listeners used by the HTTP handlers can be shut down.
2015-02-09 16:39:15 -08:00
Philip O'Toole 0b349baaac Return both broker and server from call to run() 2015-02-09 16:35:28 -08:00
Philip O'Toole 76d732f5ff Remove unneeded delay between node joins 2015-02-09 16:28:29 -08:00
Philip O'Toole 01379651f8 Scale wait times as node number increases 2015-02-09 15:55:18 -08:00
Philip O'Toole d888b41a44 Add simple 5-node test 2015-02-09 15:46:55 -08:00
Philip O'Toole 0aefa3e708 Wait longer for write data to be commited 2015-02-09 15:42:07 -08:00
Philip O'Toole 053d69e7d5 Add 3-node cluster test 2015-02-09 15:40:21 -08:00
Philip O'Toole 29a643a1ce Factor out simple write-and-query test 2015-02-09 15:27:59 -08:00
Philip O'Toole 3cbed350b3 Factor out cluster creation 2015-02-09 15:16:25 -08:00
Philip O'Toole a27220a2a3 Do not create a custom HTTP client 2015-02-09 14:43:04 -08:00
Philip O'Toole b3ed952eff Fix typo in response checking 2015-02-09 12:07:43 -08:00
Philip O'Toole 63fd0969fe Fix typo in testing log output 2015-02-09 11:36:27 -08:00
Ben Johnson bd65c543a5 Temporarily skip test. 2015-02-06 18:00:11 -07:00
Cory LaNou 1604d7f604 refactor how we default authentication enabled 2015-02-05 15:54:32 -07:00
Cory LaNou f4dfb87acc first pass at hardening authorize 2015-02-05 14:39:40 -07:00