Commit Graph

82 Commits

Author SHA1 Message Date
James Turnbull 25566a292b Removed two space after period exceptions 2016-11-25 13:25:09 -05:00
James Phillips a34d968aeb Tweaks title of snapshot link. 2016-11-21 09:02:19 -08:00
James Phillips bc29610124 Adds support for snapshots and restores. (#2396)
* Updates Raft library to get new snapshot/restore API.

* Basic backup and restore working, but need some cleanup.

* Breaks out a snapshot module and adds a SHA256 integrity check.

* Adds snapshot ACL and fills in some missing comments.

* Require a consistent read for snapshots.

* Make sure snapshot works if ACLs aren't enabled.

* Adds a bit of package documentation.

* Returns an empty response from restore to avoid EOF errors.

* Adds API client support for snapshots.

* Makes internal file names match on-disk file snapshots.

* Adds DC and token coverage for snapshot API test.

* Adds missing documentation.

* Adds a unit test for the snapshot client endpoint.

* Moves the connection pool out of the client for easier testing.

* Fixes an incidental issue in the prepared query unit test.

I realized I had two servers in bootstrap mode so this wasn't a good setup.

* Adds a half close to the TCP stream and fixes panic on error.

* Adds client and endpoint tests for snapshots.

* Moves the pool back into the snapshot RPC client.

* Adds a TLS test and fixes half-closes for TLS connections.

* Tweaks some comments.

* Adds a low-level snapshot test.

This is independent of Consul so we can pull this out into a library
later if we want to.

* Cleans up snapshot and archive and completes archive tests.

* Sends a clear error for snapshot operations in dev mode.

Snapshots require the Raft snapshots to be readable, which isn't supported
in dev mode. Send a clear error instead of a deep-down Raft one.

* Adds docs for the snapshot endpoint.

* Adds a stale mode and index feedback for snapshot saves.

This gives folks a way to extract data even if the cluster has no
leader.

* Changes the internal format of a snapshot from zip to tgz.

* Pulls in Raft fix to cancel inflight before a restore.

* Pulls in new Raft restore interface.

* Adds metadata to snapshot saves and a verify function.

* Adds basic save and restore snapshot CLI commands.

* Gets rid of tarball extensions and adds restore message.

* Fixes an incidental bad link in the KV docs.

* Adds documentation for the snapshot CLI commands.

* Scuttle any request body when a snapshot is saved.

* Fixes archive unit test error message check.

* Allows for nil output writers in snapshot RPC handlers.

* Renames hash list Decode to DecodeAndVerify.

* Closes the client connection for snapshot ops.

* Lowers timeout for restore ops.

* Updates Raft vendor to get new Restore signature and integrates with Consul.

* Bounces the leader's internal state when we do a restore.
2016-10-25 19:20:24 -07:00
James Phillips daa8a40993 Adds Operator endpoint link. 2016-09-15 13:13:09 -07:00
James Phillips bc333335be
Adds an `X-Consul-Translate-Addresses` to signal translation is enabled. 2016-08-16 11:31:41 -07:00
James Phillips 53f082b2af Adds a key metrics section to the telemetry guide. 2016-06-17 18:57:42 +01:00
James Phillips 6daf26ada4 Adds documentation for the transaction endpoint. 2016-05-11 14:18:47 -07:00
James Phillips 9e29bb4238 Adds and updates docs for prepared queries. 2015-11-15 17:06:00 -08:00
James Phillips a2bcef00a0 Adds endpoints for raw network coordinates. 2015-10-23 15:23:01 -07:00
David Adams 5f175add40 Add HTTP request header X-Consul-Token
Add support for an X-Consul-Token HTTP request header to specify the
token with which this request should be fulfilled. The header would have
precedence over the responding Agent's default token, but would have
lower precedence than a token specified in the query string.
2015-10-19 11:26:01 -05:00
Armon Dadgar 2c9592c5ee consul: lower default query time and add small stagger 2015-05-14 17:59:43 -07:00
Ryan Breen 2795b1054a Some further cleanups to the root http doc. 2015-02-02 00:14:16 -05:00
Ryan Breen 1fee083009 Begin editing the docs/agent/http. 2015-02-01 17:42:02 -05:00
Ryan Uber f37a67e04c website: move content from monolithic http page 2015-01-20 22:50:30 -08:00
Ryan Uber 27de0adf3b agent: support multiple checks per service 2015-01-20 21:48:42 -08:00
Ryan Uber 106a54313b website: document node maintenance mode 2015-01-16 15:38:13 -08:00
Ryan Uber 3b815cd0aa agent: maintenance mode api's are idempotent 2015-01-16 15:37:52 -08:00
Ryan Uber 3dba905ce4 website: document service maintenance endpoint 2015-01-16 15:37:52 -08:00
Armon Dadgar d80588f780 Merge pull request #592 from nicholascapo/check-http
command/agent: Add simple HTTP check type
2015-01-13 12:11:50 -08:00
Nicholas Capo e9fb85d675 Update HTTP Check documentation: 503 -> 429 2015-01-13 00:10:05 +00:00
Nicholas Capo f2649edcfc command/agent: Add simple HTTP check type
These checks make an `HTTP GET` request every Interval to the specified URL.
The status of the service depends on the HTTP Response Code.
`200` is passing, `503` is warning and anything else is failing.
2015-01-09 16:43:24 -06:00
Emil Hessman 8c991c3632 website: omit excessive use of the word lastly
Simplify wording by removing various uses of the word lastly.
2015-01-09 06:37:26 +01:00
Emil Hessman acfc42c3db website: fix typo
s/patameters/parameters/
2015-01-09 05:59:06 +01:00
Armon Dadgar 8befdcbd93 website: Documenting ?cas with KV DELETE 2015-01-08 17:34:41 -08:00
Armon Dadgar abbcecd1dd website: Updating the documentation 2015-01-08 12:08:29 -08:00
Armon Dadgar b435a0c842 website: Update session API documentation 2015-01-07 15:19:27 -08:00
Armon Dadgar 9ba908eadc website: Link to consul-replicate. Fixes #439 2015-01-07 13:30:30 -08:00
Thordur Bjornsson cb32b82b37 Revert "correct the doc for obtaining formatted json"
This reverts commit cf3b9ec4fee09075481fd5c521dd6c4b8db58e91.
2015-01-02 08:00:09 +01:00
Michael H. Oshita 8351121fde minor grammer fix 2014-12-11 19:02:29 +09:00
Brandon Wilson 22ad8172b8 correct the doc for obtaining formatted json
was "?pretty" should be "?pretty=1"
2014-11-21 12:27:48 -08:00
Danny Berger 4347b9394d Fix some typos in website docs 2014-11-04 21:33:42 -07:00
Armon Dadgar 982b177e69 Support old recursor config for backwards compatibility 2014-11-03 11:28:21 -08:00
foostan 4d8f1c2133 Add multiple recursor definition support 2014-11-01 04:26:26 +09:00
Armon Dadgar df43c42c94 website: Fixing formatting 2014-10-23 17:14:40 -07:00
Armon Dadgar 2b2f9980fb Merge pull request #427 from blalor/agent_http_links
website: Improve navigability of agent HTTP API categories
2014-10-23 16:46:58 -07:00
Brian Lalor d2985d3c04 Add links for status endpoints 2014-10-23 07:59:58 -04:00
Brian Lalor 3082b3f95f Add links for event endpoints 2014-10-23 07:59:05 -04:00
Brian Lalor d45fdd15dd Add links for ACL endpoints 2014-10-23 07:57:55 -04:00
Brian Lalor 39e44c7968 Add links for session endpoints 2014-10-23 07:56:28 -04:00
Brian Lalor 9a29e1b60e Add links for health endpoints 2014-10-23 07:54:46 -04:00
Brian Lalor 4401fbf0e3 Add links for catalog endpoints 2014-10-23 07:53:11 -04:00
Brian Lalor 3ecb9ec8df Add links for agent endpoints 2014-10-23 07:50:54 -04:00
Brian Lalor 4ca29beec3 Improve navigability of agent HTTP API categories 2014-10-23 07:44:20 -04:00
Leo Cassarani d43a89fdd7 Fix spelling of "separator" in the HTTP API docs 2014-10-23 12:31:41 +01:00
Seth Vargo e265ea050d Use new Markdown syntaxes and add SEO descriptions 2014-10-19 19:42:13 -04:00
lalyos 430885595d json sample fixed for PUT /v1/acl/create 2014-09-06 01:55:38 +02:00
Armon Dadgar ea20cabc0f website: Updating docs 2014-09-01 15:03:37 -07:00
Armon Dadgar 87c4e22f03 website: typo fixes 2014-08-28 17:54:58 -07:00
Armon Dadgar 2f8948fe89 website: Adding docs 2014-08-28 17:22:56 -07:00
Armon Dadgar ea0a1dca2e website: ACL internals 2014-08-18 15:46:59 -07:00