Commit Graph

761 Commits

Author SHA1 Message Date
Kyle Havlovitz 72412237fd Revert "Added website docs for snapshot inspect command"
This reverts commit 7d0318252ca8fd81192b1bdc45a4c37407aecd37.
2016-10-31 17:06:47 -04:00
Kyle Havlovitz c97c59b070
Added website docs for snapshot inspect command 2016-10-31 17:01:27 -04:00
Kyle Havlovitz c6f461aa25 Enable snapshots in dev mode (#2453) 2016-10-31 14:39:47 -04: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 1adbcff059 Merge pull request #2383 from hashicorp/jbs-1462
Clarify retry_join addresses for #1462
2016-10-20 11:40:03 -07:00
Brian Shumate fd794ec0b4
Reworded and applied to -retry-join also 2016-10-20 14:14:55 -04:00
James Phillips 51f0d91efb Adds a version note for the consul kv command.
Closes #2410.
2016-10-13 08:02:20 -07:00
Michel Lebeau 4ea1f2e613 Fix typo
The double "to" was distracting
2016-10-11 15:51:49 +01:00
James Phillips 78815ea44d Adds a note about child process reaping going away. 2016-10-06 21:38:29 -07:00
Adrián López Gómez 6e41d53871 Doc fix - allow_stale enabled by default in v0.7 2016-10-06 15:00:28 +02:00
Andreas Böttger 13c1315916 json syntax corrected 2016-10-04 15:40:53 +02:00
Brian Shumate 7fbec39f1f
Clarify retry_join addresses for #1462
- Initial pass at adding note about address formats for retry_join;
  IPv4 is a list of IPs only, whereas IPv6 are bracketed IPs + port
2016-10-03 12:15:24 -04:00
Brian Shumate df41000a94
Update variable value information as port must also be specified, fixes #2210 2016-09-29 12:50:00 -04:00
Brian Shumate a470c4901a
Finalize update for -bind 2016-09-27 18:36:19 -04:00
Brian Shumate bd43bd9981
Clarification 2016-09-27 12:38:32 -04:00
Brian Shumate ac9e1d6a10
Correct inaccurate bind reference, closes #2234 2016-09-27 12:05:22 -04:00
James Phillips 0c8add2a1f Merge pull request #2362 from mckennajones/cliflagformatting
Making CLI flag formatting consistent in the docs
2016-09-27 07:51:56 -07:00
James Phillips 9910cbfa0a Update operator.html.markdown 2016-09-27 06:25:51 -07:00
McKenna Jones 3390063ec6 cli flag formatting for agent docs and one guide 2016-09-26 21:22:01 -07:00
Seth Vargo 784b45a5b6
Update cas docs 2016-09-26 16:15:27 -07:00
Seth Vargo e3430e6806
Remove base64 comment entirely 2016-09-26 16:10:22 -07:00
Seth Vargo 70fd7efde9
Fix CAS operations for put 2016-09-26 16:06:56 -07:00
Seth Vargo 9cd78ea4d4
Update kv get docs 2016-09-26 16:06:56 -07:00
Seth Vargo 46f4093f14
Change delete CAS behavior to require ModifyIndex 2016-09-26 16:06:55 -07:00
Seth Vargo 533e4b3168
Add top-level docs command 2016-09-26 16:06:54 -07:00
Seth Vargo ce5c820c4a
Add kv delete command 2016-09-26 16:06:53 -07:00
Seth Vargo d5dd8ef7a1
Add kv put command 2016-09-26 16:06:53 -07:00
Seth Vargo a8dc0f86b6
Add kv get 2016-09-26 16:06:53 -07:00
James Phillips 8a5d6f4d00 Update keyring.html.markdown 2016-09-23 16:00:05 -07:00
Seth Vargo 6a6d169ace
Clarify that hostname defaults to localhost for tcp 2016-09-21 12:20:36 -04:00
Brian Shumate af45d3463a
Remove references to the 'unknown' state.
- Remove reference to 'unknown' state in catalog endpoint docs
- Remove reference to 'unknown' state in health endpoint docs
2016-09-21 09:50:12 -04:00
James Phillips daa8a40993 Adds Operator endpoint link. 2016-09-15 13:13:09 -07:00
James Phillips 27061563ea Tweaks wording in lifeguard section. 2016-09-14 10:17:23 -07:00
James Phillips b7cf261f38
Adds a section about lifeguard. 2016-09-14 10:09:23 -07:00
Pawel Szymczyk 4c82447726 remove reference to localhost in operator.html.markdown 2016-09-14 12:12:27 +02:00
James Phillips 3b1f368fe5 Adds version note to near parameter. 2016-09-06 07:50:06 -07:00
James Phillips 6db4aea4c4 Tweaks options doc after latest merges. 2016-09-01 22:18:34 -07:00
James Phillips aed72ccc60 Merge pull request #2263 from sweeneyb/dnsPort
Add support for dns port as a command line option
2016-09-01 22:16:15 -07:00
James Phillips 1924eccf71 Merge pull request #2322 from hashicorp/pr-2321-slackpad
Adds a configurable timeout for DNS recursor client.
2016-09-01 22:11:54 -07:00
James Phillips ca71911eed
Tweaks documentation. 2016-09-01 21:50:46 -07:00
James Phillips d623366201 Merge pull request #2320 from hashicorp/f-leave
Changes default for `leave_on_terminate` based on server or client mode.
2016-09-01 09:08:10 -07:00
Pivotal DX129 2682410059 Merge remote-tracking branch 'upstream/master' 2016-09-01 10:15:32 -04:00
James Phillips 6036f855a9
Cleans up the upgrade guide. 2016-09-01 00:22:09 -07:00
James Phillips d419a0ae0d
Changes default for `leave_on_terminate` based on server or client mode. 2016-08-31 23:39:11 -07:00
James Phillips 2deda0c65b Adds a note about stale reads to the performance guide. 2016-08-30 18:11:05 -07:00
James Phillips 3304352272
Changes default DNS allow_stale to true. 2016-08-30 13:55:19 -07:00
James Phillips c063a1a8d0
Updates documentation with details on the Consul operator actions. 2016-08-30 13:15:37 -07:00
James Phillips 1b7a16b7d3
Adds new consul operator endpoint, CLI, and ACL and some basic Raft commands. 2016-08-30 00:02:50 -07:00
Pierre Delagrave a5fccc45db Added website documentation for the new recursor_timeout parameter 2016-08-29 14:41:30 -04:00
James Phillips 6f030a1167
Tweaks formatting of Consul version. 2016-08-25 17:12:55 -07:00