Commit Graph

49 Commits (ffc05ace691ac07280175ac94f84c1d987262026)

Author SHA1 Message Date
Kyle Havlovitz 606662c502 Add snapshot inspect subcommand (#2451) 2016-10-31 19:37:27 -04:00
Kyle Havlovitz 4be39290e5 Revert "Added website docs for snapshot inspect command"
This reverts commit 7d0318252c.
2016-10-31 17:06:47 -04:00
Kyle Havlovitz 7d0318252c
Added website docs for snapshot inspect command 2016-10-31 17:01:27 -04:00
James Phillips c01a3871c9 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
Seth Vargo 297a22383f
Add kv delete command 2016-09-26 16:06:53 -07:00
Seth Vargo 82bddd7f9b
Add kv put command 2016-09-26 16:06:53 -07:00
Seth Vargo c8fdc5c50d
Add kv get 2016-09-26 16:06:53 -07:00
James Phillips e5850d8a26
Adds new consul operator endpoint, CLI, and ACL and some basic Raft commands. 2016-08-30 00:02:50 -07:00
James Phillips c1c1a340e0
Sorts the guides (redux). 2016-08-25 16:47:54 -07:00
James Phillips 7b8837f46e Sorts the guides. 2016-08-25 16:44:52 -07:00
James Phillips 57db4bcce6
Adds performance tuning capability for Raft, detuned defaults, and supplemental docs. 2016-08-24 21:58:37 -07:00
James Phillips 17cd0ac4ec Adds documentation for the transaction endpoint. 2016-05-11 14:18:47 -07:00
James Phillips 800e946bf1 Adds and updates docs for prepared queries. 2015-11-15 17:06:00 -08:00
James Phillips cef9402ab9 Updates docs for network coordinates. 2015-10-23 15:23:01 -07:00
Ryan Uber 8f79a964cd website: link and formatting adjustments for configtest command 2015-05-11 09:42:06 -07:00
Ryan Uber 87bdbdbb98 website: first pass at anti-entropy docs 2015-03-03 14:13:59 -08:00
Armon Dadgar d9121a8d89 website: Upgrading 0.5 docs 2015-02-19 11:03:02 -08:00
Armon Dadgar 05ac51ca26 website: Adding Atlas docs 2015-02-18 15:15:01 -08:00
Ryan Uber 6995e74d94 website: document maint command 2015-01-21 14:07:54 -08:00
Ryan Uber f247ec0551 fix space/tab mixing in docs.erb 2015-01-20 22:50:33 -08:00
Ryan Uber 99b92a6fb0 website: beginning http docs update 2015-01-20 22:49:41 -08:00
Armon Dadgar d6d1f19f1b website: Document the lock command 2015-01-19 16:43:38 -10:00
Armon Dadgar 3af280213c website: Document a distributed semaphore 2015-01-19 16:43:24 -10:00
Ryan Uber 67d78628a3 command: renamed keys to keyring to disambiguate usage 2014-11-19 16:31:06 -08:00
Ryan Uber 6b41e98964 website: document keys command 2014-11-19 16:30:22 -08:00
Armon Dadgar e7326d089e website: Adding FAQ page. Fixes #363. 2014-10-13 17:46:41 -07:00
Armon Dadgar 2d7be20431 website: Updating docs 2014-09-01 15:03:37 -07:00
Armon Dadgar 088e024417 website: Adding docs 2014-08-28 17:22:56 -07:00
Armon Dadgar dce716f4b2 website: Document watches 2014-08-21 17:25:42 -07:00
Armon Dadgar 781ff2048d website: ACL internals 2014-08-18 15:46:59 -07:00
Armon Dadgar 2b0f7566e5 website: Document the new reload command 2014-06-11 11:01:36 -07:00
Armon Dadgar bd4610bcd1 website: Documenting DNS settings 2014-06-08 17:26:41 -07:00
Armon Dadgar 3fc7b208a5 website: Adding guide on leader election 2014-05-20 16:25:30 -07:00
Armon Dadgar f91b1c3bf4 website: Starting to document sessions 2014-05-20 16:25:30 -07:00
Armon Dadgar cb30951612 website: Adding page on Jepsen testing 2014-04-16 17:03:48 -07:00
Armon Dadgar 0dd1cd0a8d website: Adding guide on outage recovery 2014-04-11 12:55:02 -07:00
Armon Dadgar 369f6a3dcf website: Guide for adding/removing servers 2014-04-11 12:32:34 -07:00
Armon Dadgar b0221b98c0 website: Adding multiple datacenter guide 2014-04-11 12:03:12 -07:00
Armon Dadgar a74c0668c6 website: Doc cleanup 2014-04-09 11:40:52 -07:00
Armon Dadgar 28562616cf website: Remove roadmap 2014-04-07 15:11:58 -07:00
Armon Dadgar 45195b76ff website: document registering of external services 2014-02-25 12:22:25 -08:00
Armon Dadgar fad3e4d97c website: Documenting the info command 2014-02-23 17:09:59 -08:00
Armon Dadgar dcbec76f8e website: adding guide on bootstrapping a DC. Fixes #5. 2014-02-22 21:08:36 -08:00
Armon Dadgar 262c039425 website: document the high level architecture 2014-02-19 16:58:15 -08:00
Armon Dadgar e116815e17 website: working on documenting http api 2014-02-19 12:05:18 -08:00
Armon Dadgar 5150b69344 website: document the DNS interface 2014-02-19 11:05:42 -08:00
Armon Dadgar 6e500ef54b website: document checks and services 2014-02-18 18:05:18 -08:00
Armon Dadgar 1fb7b330ad website: updating documentation on commands 2014-02-18 17:32:13 -08:00
Armon Dadgar 1d10b9d6ba website: bulk copy from serf 2014-02-07 16:41:03 -08:00