Commit Graph

5163 Commits

Author SHA1 Message Date
Seth Vargo e3a4b2128b
Sleep for longer, but try less often
This fixes an issue where the system can quickly run out of file
descriptors because they are accumulating faster than the kernel can
release them.
2017-01-26 00:13:34 -05:00
Seth Vargo c0b6c7ad3e
Check to see if TaggedAddresses have been populated
This ensures the node's anti-entropy checks have finished before
telling the client Consul is ready.
2017-01-26 00:13:03 -05:00
James Phillips ef06bbd40e Update CHANGELOG.md 2017-01-25 21:06:15 -08:00
James Phillips a7b01e51f6 Merge pull request #2677 from hashicorp/b-redact-aws-creds
Redacts AWS join credientials from /v1/agent/self output.
2017-01-25 21:02:44 -08:00
James Phillips f0f52bd5f6
Redacts AWS join credientials from /v1/agent/self output. 2017-01-25 21:01:07 -08:00
James Phillips b7f2fab534 Update CHANGELOG.md 2017-01-25 20:07:38 -08:00
James Phillips 4f56a2fd0d Merge pull request #2676 from hashicorp/f-go-1.7.4
Updates Consul to build with Go 1.7.4.
2017-01-25 20:05:54 -08:00
James Phillips db06c06cf0
Updates Consul to build with Go 1.7.4. 2017-01-25 20:05:04 -08:00
James Phillips 373f1a94ae Merge pull request #2675 from hashicorp/f-fine-watch-redux
Cleans up state store restore behavior.
2017-01-25 19:52:21 -08:00
James Phillips 0c93ff1d13
Keeps the old state store state if a restore fails. 2017-01-25 19:42:34 -08:00
James Phillips c370d4ff29
Bails out of blocking queries when a state restore occurs. 2017-01-25 19:00:32 -08:00
James Phillips 77dc6fb08e Update CHANGELOG.md 2017-01-25 16:18:48 -08:00
James Phillips efb67fe08a Update CHANGELOG.md 2017-01-25 16:09:59 -08:00
James Phillips 4bd0da759f Merge pull request #2671 from hashicorp/f-fine-watch
Adds support for fine-grained watches in blocking queries.
2017-01-25 16:04:37 -08:00
Kyle Havlovitz 01ed54723f Merge pull request #2674 from oliora/master
Fix missing query parameters formatting in HTTP API documentation
2017-01-25 14:07:42 -05:00
James Phillips b787aa17ab
Tweaks a few comments. 2017-01-25 09:58:23 -08:00
James Phillips 75f2aa8588
Pass state store pointer into the blocking query work function.
Previously the blocking functions all closed over the state store from
their first query, with would not have worked properly when a restore
occurred. This makes sure they get a frest state store pointer each time,
and that pointer is synchronized with the abandon watch.
2017-01-25 09:58:23 -08:00
James Phillips d97c3c6c18
Guts all the old blocking query code. 2017-01-25 09:58:23 -08:00
James Phillips 7da2f513dc
Cuts KVS endpoints over to new fine-grained watch plumbing. 2017-01-25 09:58:22 -08:00
James Phillips 68e90d0f24
Adds a facility to notify when restores occur. 2017-01-25 09:58:22 -08:00
James Phillips 1d39ddbd4b
Adds fine-grained watches to session endpoints. 2017-01-25 09:58:22 -08:00
James Phillips 8b7977ccb3
Adds fine-grained watches to prepared query endpoints. 2017-01-25 09:58:22 -08:00
James Phillips dfcffe097c
Adds fine-grained watches to internal endpoints. 2017-01-25 09:58:22 -08:00
James Phillips 3675e5ceba
Adds fine-grained watches to coordinate endpoints. 2017-01-25 09:58:22 -08:00
James Phillips ec90404df0
Adds fine-grained watch support to ACL endpoints. 2017-01-25 09:58:22 -08:00
James Phillips eaa8fde298
Updates a comment to point to new blockingQuery function. 2017-01-25 09:58:22 -08:00
James Phillips dcb55c766b
Adds fine-grained watches to health endpoints. 2017-01-25 09:58:22 -08:00
James Phillips e4b88324b3
Fixes a race condition when updating the state store during a snapshot restore. 2017-01-25 09:58:22 -08:00
James Phillips b7b42d718a
Adds fine-grained watches to catalog endpoints. 2017-01-25 09:58:22 -08:00
James Phillips f2d9da270d
Adds diff check for node and service parts of register requests.
We always did an update before which caused excessive watch churn, even
with our new fine-grained queries. This does a diff any only updates the
node and service records if something actually changed.
2017-01-25 09:58:22 -08:00
James Phillips fefed7c803
Don't do any watch tracking for non-blocking queries. 2017-01-25 09:58:22 -08:00
James Phillips 05735e39a5
Removes some incorrect comments.
We can't actually return a fine-grained index from these tables unless
support is added for tombstones. Otherwise, the index could slip backwards
as things are deleted.
2017-01-25 09:58:22 -08:00
James Phillips b21625a6af
Adds new variant of blocking query wrapper with WatchSet support. 2017-01-25 09:58:22 -08:00
James Phillips 10f3bdf4ff
Updates go-immutable-radix and go-memdb to get fine-grained watches. 2017-01-25 09:58:22 -08:00
James Phillips 4c1a156417
Pulls in latest static asset updates. 2017-01-25 09:57:56 -08:00
Andrey Upadyshev f6c6a9ff3e Fix missing query parameters formatting in HTTP API documentation 2017-01-25 14:34:56 +01:00
Kyle Havlovitz ebced2db68 Merge pull request #2668 from hashicorp/f-prepared-query-nodemeta
Node metadata support in prepared queries
2017-01-24 12:23:22 -05:00
legendtkl a2ff72b6ce Fix consul kv example with flag separator
1. fix consul kv example with flag separator
2017-01-24 17:03:12 +08:00
Kyle Havlovitz bbfd25b530
Fix test import 2017-01-23 21:34:01 -05:00
Kyle Havlovitz a55968f009
Merge branch 'master' into f-prepared-query-nodemeta 2017-01-23 20:17:48 -05:00
Kyle Havlovitz 3f3d7f9891
Add tests for node meta in prepared queries and update docs 2017-01-23 19:17:30 -05:00
Seth Vargo 748e308ac4 Say which ec2 perms to use 2017-01-20 17:13:28 -05:00
Cameron Stokes 07b91d9d20 Typo in docs/upgrade-specific page. 2017-01-19 12:28:30 -08:00
James Phillips 6a3fd08755 Merge pull request #2665 from dblackdblack/sp-givne
Fix misspelled 'givne' → 'given'
2017-01-19 09:18:23 -08:00
David Black 507e6769f8 s/givne/given/ 2017-01-19 09:16:31 -08:00
James Phillips 03fcbe935a Update CHANGELOG.md 2017-01-18 16:11:31 -08:00
James Phillips acbc2289a3 Merge pull request #2661 from hashicorp/f-node-id
Adds basic support for node IDs.
2017-01-18 16:02:38 -08:00
James Phillips 432540f918 Fixes a paste-o in the docs. 2017-01-18 16:02:04 -08:00
James Phillips bcf770f811
Uses clean replies each time so they are safe to receive map changes. 2017-01-18 15:40:19 -08:00
James Phillips 32be684fdf
Fixes a startup ordering issue between Raft and Serf.
This fixes #2663 and fixes #1899. It's not super related to this PR,
but the startup time changes that this PR brings made this a lot worse
so I was able to track it down.
2017-01-18 15:06:15 -08:00