Commit Graph

111 Commits (856546820db6ad846b705132107390b1e85627f2)

Author SHA1 Message Date
ben hockey a4be178280 return no content status (204) for succesful write
since write returns nothing in the body of the response, return 204
2015-05-12 09:03:27 -05:00
Todd Persen 9e839c0771 Merge pull request #2186 from influxdb/default-status-code-is-now-200
Default status code for queries is now 200
2015-05-11 13:14:54 -07:00
Todd Persen ea5a321cf4 Fix tests to expect 200 response code, handle client errors gracefully. 2015-05-11 11:36:16 -07:00
Todd Persen f6f66a7797 Remove unused test methods. 2015-05-11 11:35:33 -07:00
Todd Persen 4114031176 WIP: Make `200 OK` the default status code for queries. 2015-05-11 11:34:06 -07:00
ben hockey 9a3c28748c change timestamp to time 2015-05-11 12:28:47 -05: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 df7ed03cd4 Actually allow HTTP logging to be enabled 2015-04-21 15:21:21 -07:00
Philip O'Toole 969b8c4d70 Don't log HTTP accesses during testing 2015-04-17 16:18:28 -07:00
Philip O'Toole a3fbba33da Allow control of HTTP logging 2015-04-17 16:18:28 -07:00
Jason Wilder 2f394a5cff Move snapshot server to cluster handler
This removes the separate port listener and adds it as a route
on the cluster port.
2015-04-13 16:27:23 -06:00
Jason Wilder e47ee66b07 Make top-level handler less brittle
Move the data node specific routes under a common /data prefix so
add new handler does require updates to the top level handler as well.
2015-04-13 15:38:42 -06:00
Paul Dix 37d4f2a265 Fixes based on feedback. 2015-04-10 16:11:34 -07:00
Paul Dix 7661546a47 Finish up distributed queries. 2015-04-10 16:11:34 -07:00
Paul Dix d41b85a715 Remove the interval setting from NextInterval to make remote mappers work. 2015-04-10 16:11:34 -07:00
Paul Dix 6e8ea9ae91 Fix errors on limits and chunked raw queries. 2015-04-10 16:11:34 -07:00
Paul Dix 113995032e WIP: Initial implementation of remote mapper for distributed queries. 2015-04-10 16:11:34 -07:00
Paul Dix 2a3ed635ed Add chunked responses and streaming of raw queries.
Refactored query engine to have different processing pipeline for raw queries. This enables queries that have a large offset to not keep everything in memory. It also makes it so that queries against raw data that have a limit will only p
rocess up to that limit and then bail out.

Raw data queries will only read up to a certain point in the map phase before yielding to the engine for further processing.

Fixes #2029 and fixes #2030
2015-04-10 16:11:33 -07:00
Paul Dix 5e82ca562d Update server and handler to work with streamed responses 2015-04-10 16:11:33 -07:00
Todd Persen e1472257b0 Make sure that we return a `200 OK` when querying for a tag that doesn't exist. 2015-04-07 12:28:38 -07:00
Cory LaNou 13f318b084 Allow http write handler to decode gzipped body 2015-04-07 10:34:55 -05:00
Jason Wilder b85eba550d Separate cluster and API endpoints 2015-04-06 16:38:00 -06:00
Jari Sukanen 704691454d server: rename influxdb.Results type to influxdb.Response (issue: #2050)
Rename influxdb.Results to influxdb.Response as it already has Results
property itself. Renaming it to Response makes code look much less
ugly.
2015-04-04 12:17:33 +03:00
Paul Dix 8ac561d25c Handle json marshal errors 2015-04-02 15:22:27 -07:00
Paul Dix 6c46a5c83b Add chunked responses and streaming of raw queries.
Refactored query engine to have different processing pipeline for raw queries. This enables queries that have a large offset to not keep everything in memory. It also makes it so that queries against raw data that have a limit will only p
rocess up to that limit and then bail out.

Raw data queries will only read up to a certain point in the map phase before yielding to the engine for further processing.

Fixes #2029 and fixes #2030
2015-04-02 15:22:27 -07:00
Paul Dix 332c42750b Update server and handler to work with streamed responses 2015-04-02 15:22:27 -07:00
Matt Robenolt 62434fb878 Replace code.google.com/p/go-uuid with TimeUUID from gocql 2015-03-30 09:02:11 -07:00
Philip O'Toole c461c7e7b4 Remove logging to specific file 2015-03-25 17:41:39 -07:00
Ben Johnson 2401e69f58 Add incremental backups.
This commit adds incremental backup support. Snapshotting from the server
now creates a full backup if one does not exist and creates numbered
incremental backups after that.

For example, if you ran:

  $ influxd backup /tmp/snapshot

Then you'll see a full snapshot in /tmp/snapshot. If you run the same
command again then an incremental snapshot will be created at
/tmp/snapshot.0. Running it again will create /tmp/snapshot.1.
2015-03-24 15:57:03 -06: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 963d277a75 Add "influxd backup" command.
This commit adds the backup command to the influxd binary as well as
implements a SnapshotWriter in the influxdb package.

By default the snapshot handler binds to 127.0.0.1 so it cannot be
accessed outside of the local machine.
2015-03-22 10:54:14 -06:00
Cory LaNou dc0d8a35dc wip 2015-03-20 16:51:41 -06:00
Ben Johnson 0461f401f6 Add SnapshotWriter. 2015-03-19 22:23:52 -06:00
Philip O'Toole 3001448f16 Merge branch 'master' into limit-group-by
Conflicts:
	CHANGELOG.md
2015-03-19 15:17:50 -07:00
Todd Persen e2391d9b34 Merge pull request #1909 from influxdb/export
Add a `dump` command for exporting data.
2015-03-19 15:07:23 -07:00
Cory LaNou c13bdd5e86 refactor, bug fix, move tests to integration 2015-03-19 14:33:47 -06:00
Todd Persen 8425c0c578 Final cleanups based on review feedback. 2015-03-18 23:02:11 -07:00
Joseph Rothrock 21fd2e2662 dump cmd
rename dump flag

put an error response body if json marshalling breaks.

detect and respond to http error codes in the client.
2015-03-18 14:10:36 -07:00
Philip O'Toole 616cef62e6 Merge pull request #1985 from fancysupport/response-type-fix
headers were being set after they were written
2015-03-18 11:38:57 -07:00
Cory LaNou dab5ed54c4 Ensure measurement not found returns status code 200 2015-03-18 11:20:17 -06:00
Cory LaNou 894de34245 Return status code 200 for measurement not found errors 2015-03-18 09:29:45 -06:00
Joseph Rothrock 9954751182 fix default retention not set 2015-03-17 13:47:35 -07:00
dstrek 60726de653 headers were being sent after they were written
fixes #1961
2015-03-17 20:51:20 +11:00
Joseph Rothrock 53d99637b7 Merge branch 'master' of github.com:influxdb/influxdb into export 2015-03-16 15:31:47 -07:00
Joseph Rothrock d7420683ae tweaking in response to various PR comments 2015-03-16 15:31:41 -07:00
Cory LaNou e9bb3fa37b Require parameter for query endpoint 2015-03-16 13:26:03 -06:00
Joseph Rothrock 4aabcd907c Dump cmd
Issue: 1909
move dump cmd to an http endpoint.
Add dump cmd on client to call the endpoint.
2015-03-13 15:37:23 -07:00
Joseph Rothrock 6f86cac5d8 move to http handler 2015-03-12 17:14:53 -07: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
Ben Johnson 27e9132796 Integrate stateless broker into remaining packages. 2015-03-10 14:53:45 -06:00