Commit Graph

139 Commits (82b3108f6de82edf793d9adcc9498efcc13c7bd8)

Author SHA1 Message Date
Joseph Rothrock 0dfec9268d Add flag to config that disables running CQs 2015-02-24 17:01:38 -08:00
Philip O'Toole a00c3d1a60 Print running version and commit in log 2015-02-24 09:47:07 -08:00
Todd Persen e45611cde3 Pull in cluster ID for reporting. 2015-02-23 10:42:39 -08:00
Todd Persen ff1c61c5c1 Only report if ReportingDisabled is set to false. 2015-02-23 10:42:39 -08:00
Todd Persen c366fcbbf6 Update stats reporting to just POST for now. 2015-02-23 10:42:38 -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 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 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
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
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
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
Philip O'Toole 0b349baaac Return both broker and server from call to run() 2015-02-09 16:35:28 -08: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
Cory LaNou 4dc5f3ab86 ensure server is spun up before existing run function 2015-02-05 08:50:07 -07:00
Cory LaNou 0e818f46d4 wip 2015-02-05 08:50:07 -07:00
Philip O'Toole b191b1f044 Remove superfluous blank line from help output 2015-01-30 13:09:38 -08:00
Philip O'Toole 9943f86cf4 Enable module-level logging 2015-01-29 15:07:58 -08:00
Philip O'Toole ce0cc84ec1 Create, and use, standard path for log file 2015-01-29 14:29:21 -08:00
Philip O'Toole c05d4bf292 Open log file 2015-01-29 14:12:56 -08:00
Philip O'Toole 2aa9b6ea33 Ensure PID directory tree exists 2015-01-26 18:33:06 -08:00
Philip O'Toole 3c3792f670 Push "joinURLs" into config file
Command-line still take precedence.
2015-01-26 17:53:56 -08:00
Philip O'Toole d5c0ea396b Remove redundant option 'role' 2015-01-26 17:15:47 -08:00
Cory LaNou 6ecb96ebfa clarifying a comment on starting up servers 2015-01-26 17:16:05 -07:00
Cory LaNou 107d2135a4 make sure we handle home directories properly in config 2015-01-26 11:03:49 -07:00
Cory LaNou eeb502fbd5 allowing a broker/client to spin up more than once 2015-01-26 10:37:29 -07:00
Cory LaNou fd626de462 refactoring the refactoring 2015-01-21 18:13:51 -07:00
Cory LaNou 5421285be2 added version to server struct 2015-01-21 12:53:18 -07:00
Cory LaNou f52d9aa582 wip - added filters. added the concept of routes. more to come 2015-01-20 17:10:45 -07:00
Cory LaNou 3ab277214d first pass at moving handlers to httpd package 2015-01-20 10:50:13 -07:00
Cory LaNou 1950f38fc1 removing unecessary method 2015-01-18 16:27:52 -07:00
Cory LaNou 34aa70e6d5 better way to re-start without a default config 2015-01-18 16:02:48 -07:00
Cory LaNou 3791cbe722 launch and re-launch server with no config 2015-01-16 16:45:31 -07:00
Ben Johnson 0d590f8c99 Begin broker/client config messaging. 2015-01-15 13:42:56 -07:00
Cory LaNou fdd4fd6eaa merge convflict 2015-01-11 16:57:46 -07:00
Philip O'Toole 295d63cb57 More vet fixes 2015-01-11 15:14:22 -08:00
Cory LaNou 807c988649 changes based on pr review by Dave Cheney 2015-01-11 07:44:52 -07:00
Ben Johnson d9411c3d84 Merge branch 'master' of https://github.com/influxdb/influxdb into join
Conflicts:
	cmd/influxd/config.go
	cmd/influxd/run.go
2015-01-10 09:10:21 -07:00
Ben Johnson c20746ffa6 Code review fixes. 2015-01-10 09:08:00 -07:00
Cory LaNou 1148bf7dc3 more test coverage, responding to comments 2015-01-09 20:12:18 -07:00
Cory LaNou bc047a475b first pass at config and wiring up collectd server. needs tests and testing 2015-01-08 17:09:28 -07:00
Philip O'Toole c64624abff Merge branch 'master' into graphite_distinct_servers
Conflicts:
	cmd/influxd/config.go
2015-01-08 12:31:21 -08:00
Philip O'Toole 1c19ae61cf Move Graphite config to top-level of config 2015-01-08 12:28:10 -08:00
Philip O'Toole 50b494503d Tigthen up config of Graphite Parser 2015-01-08 12:23:48 -08:00
Philip O'Toole 5a4e2a15fb Move Graphite control into "input plugins" section 2015-01-08 11:25:43 -08:00
Philip O'Toole 8c2f894fab Integrate more code review feedback 2015-01-08 11:14:57 -08:00
Philip O'Toole 9e7f6ca3f0 Provide default NameSeparator for Graphite config 2015-01-07 16:15:39 -08:00
Philip O'Toole f57f28f575 Add GoDoc strings 2015-01-07 00:10:46 -08:00
Philip O'Toole 6683643dde Add comment re Graphite Server startup 2015-01-07 00:04:56 -08:00
Philip O'Toole 85b3408115 Integrate remaining review feedback 2015-01-07 00:02:58 -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 1f264b6c2d Refactor into distinct TCP and UDP servers 2015-01-06 15:17:29 -08:00
Cory LaNou 0334dc5b50 seperator -> separator 2015-01-06 09:57:44 -07:00
Cory LaNou a94254d1a3 Graphite endpoint updates from comments
Added ability to specifiy a seperator for a metric_path.
Default is "."

Added ability to specify position of name from metric_path
Options are "first" or "last".
Defaults to the first position.

Normalized the graphite.Metric struct to only have a Value.

 Changes to be committed:
	modified:   cmd/influxd/config.go
	modified:   cmd/influxd/config_test.go
	modified:   cmd/influxd/run.go
	modified:   graphite/graphite.go
	modified:   graphite/graphite_test.go
2015-01-05 20:14:43 -07:00
Philip O'Toole 6b7af89119 Add new wrapper handlers for User authentication 2015-01-05 16:03:05 -08:00
Cory LaNou a7a22cc52d fixing bad merge 2015-01-02 10:09:11 -06:00
Cory LaNou 897e1c8969 merge conflict 2015-01-02 09:58:31 -06:00
Cory LaNou b52437f00a Initial incorporation of fixes from pull request #1276
Changes to be committed:
	modified:   cmd/influxd/config.go
	modified:   cmd/influxd/config_test.go
	modified:   cmd/influxd/run.go
	renamed:    graphite.go -> graphite/graphite.go
	renamed:    graphite_test.go -> graphite/graphite_test.go
2015-01-02 09:57:04 -06:00
Cory LaNou 5fbdd4b1cb Wiring graphite end point back up
Graphite server now understands how to use the WriteSeries

Added ability for series information to be passed in the graphite name.

Format is:

	key.value.key.value.metric 50 <timestamp>\n

Example:

	region.us-west.hostname.server01.cpu .09323432 1419958066\n

Added test coverage for the Graphite endpoint.  Need to figure out
how to test a successful listenAndServe.

Need to add tests around new configuration for default values
when not specified for graphite servers.

Changes to be committed:
modified:   cmd/influxd/config.go
modified:   cmd/influxd/config_test.go
modified:   cmd/influxd/run.go
modified:   graphite.go
new file:   graphite_test.go
2015-01-02 09:56:46 -06:00
Cory LaNou 7d339b302d making go vet pass for cmd/influxd/run.go 2015-01-02 09:56:25 -06:00
Cory LaNou 2303a0f014 merge conflict 2014-12-31 15:47:10 -06:00
Cory LaNou 84980c97d2 Initial incorporation of fixes from pull request #1276
Changes to be committed:
	modified:   cmd/influxd/config.go
	modified:   cmd/influxd/config_test.go
	modified:   cmd/influxd/run.go
	renamed:    graphite.go -> graphite/graphite.go
	renamed:    graphite_test.go -> graphite/graphite_test.go
2014-12-31 15:37:58 -06:00
Ben Johnson 9b1d9df868 Add --role to 'run'. 2014-12-31 12:55:27 -07:00
Ben Johnson dbb089488f Create cluster on initial run. 2014-12-31 12:42:53 -07:00
Ben Johnson 70d561aa6f Refactor main/run. 2014-12-30 15:46:50 -07:00
Cory LaNou 2905ebc864 Wiring graphite end point back up
Graphite server now understands how to use the WriteSeries

Added ability for series information to be passed in the graphite name.

Format is:

	key.value.key.value.metric 50 <timestamp>\n

Example:

	region.us-west.hostname.server01.cpu .09323432 1419958066\n

Added test coverage for the Graphite endpoint.  Need to figure out
how to test a successful listenAndServe.

Need to add tests around new configuration for default values
when not specified for graphite servers.

Changes to be committed:
modified:   cmd/influxd/config.go
modified:   cmd/influxd/config_test.go
modified:   cmd/influxd/run.go
modified:   graphite.go
new file:   graphite_test.go
2014-12-30 16:46:33 -06:00
Cory LaNou e19db2b89d making go vet pass for cmd/influxd/run.go 2014-12-30 09:04:39 -06:00
Ben Johnson 7a1de8a459 Use replica id instead of replica name. 2014-12-23 17:01:06 -07:00
Philip O'Toole 021604a6de Add connection URL to Broker 2014-12-19 16:18:01 -05:00
Philip O'Toole 3ab0c5b270 Add logging of Raft initialization 2014-12-19 16:18:01 -05:00
Philip O'Toole bc6d951057 Launch HTTP handlers in goroutines 2014-12-19 11:34:32 -05:00
Philip O'Toole 2124ebb383 The flag is 'seed-servers' 2014-12-18 11:35:03 -08:00
Philip O'Toole ceeb1f6946 Store Messaging Client config in file
The presence of this file is also used to determine if a node should run
in local client mode, or should contact a Broker.
2014-12-16 19:57:20 -08:00
Philip O'Toole 20716a93e7 Support separate HTTP ports for Raft and API 2014-12-16 19:39:43 -08:00
Philip O'Toole 7eadaa75ca Add support for seed-servers during 'run' 2014-12-15 23:08:17 -08:00
Philip O'Toole 0fd2bc03a2 Set bool flag once storage dir created 2014-12-15 21:55:57 -08:00
Philip O'Toole e70f00723c Simplify 'run' control
This change refactors the existing 'run' command such that repeated code
is removed. It uses -- in a much clearer manner -- the existence of the
Broker and Storage directories to work out in which mode it should run.
The only extra piece of state required on a disk is an empty file,
whose simple existence indicates that a local (loopback) client is
needed.

With this change in place the 'join-cluster' and 'create-cluster'
commands are much closer to being fully functional, since they simply
don't create the empty file. Therefore it all just works.
2014-12-15 19:45:55 -08:00
Philip O'Toole dbd9dcbe0f Add missing default config paths and help
They were missing for 'create-cluster' and 'join-cluster'.
2014-12-11 15:52:18 -08:00
Philip O'Toole 73f304ca1e Bring up broker endpoints
If a Broker is running on the node, we need ensure the handler will
service its endpoints.
2014-12-11 14:42:21 -08:00
Philip O'Toole 2c0a69df9a Implement command-based CLI, and start cluster-bringup
This change adds a CLI styled after the Go tool chain, with a design
inspired by that system. It adds 4 new commands, 'run',
'create-cluster', 'join-cluster', and 'version'. Full help is also
supplied.

Local-mode 'run' is fully functional, and 'create-cluster' also works.
2014-12-10 16:30:08 -08:00