Commit Graph

4028 Commits

Author SHA1 Message Date
Ryan Uber c3356f697e Update CHANGELOG.md 2016-07-01 12:42:20 -07:00
Ryan Uber e9960e6c85 Merge pull request #2137 from hashicorp/f-pq-near
Support "near" parameter in prepared query service block
2016-07-01 12:28:48 -07:00
Ryan Uber c5c0f225b5 website: add upgrading note for Near param in PQ's 2016-07-01 12:26:14 -07:00
Ryan Uber ccbe86d7a8 consul: mention magic _agent token in struct comments 2016-07-01 11:50:30 -07:00
Ryan Uber 53dc58ff27 website: document near parameter of prepared queries 2016-07-01 11:50:09 -07:00
Ryan Uber 134f66e3d4 agent: parseSource still subs for _agent 2016-07-01 10:04:58 -07:00
Ryan Uber 5089561b1b agent: test that DNS passes the agent data through 2016-07-01 09:46:26 -07:00
Ryan Uber ebacaa2d67 consul: send agent source data as separate query source 2016-06-30 16:51:18 -07:00
Ryan Uber ec8ade1800 agent: always pass local agent query source, allow override 2016-06-30 12:11:48 -07:00
Ryan Uber 782a081925 consul: use source parameter for near prepared queries 2016-06-30 12:11:20 -07:00
James Phillips ef43b8b2aa Merge pull request #2149 from hashicorp/slackpad-patch-1
Adds a note about prepared queries to the coordinates internals guide.
2016-06-28 23:02:11 -07:00
James Phillips 2dc98dee32 Adds a note about prepared queries to the coordinates internals guide. 2016-06-28 23:02:00 -07:00
James Phillips ba3845ad07 Update CHANGELOG.md 2016-06-28 09:13:36 -07:00
James Phillips 052f9d1c24 Update CHANGELOG.md 2016-06-28 09:08:31 -07:00
Ryan Uber aae9c2eb30 agent: fix test 2016-06-21 16:28:26 -07:00
Ryan Uber 270270a33a consul: send origin node + dc when executing prepared queries 2016-06-21 15:34:26 -07:00
Ryan Uber 925915c6ac consul: test baked-in distance sort 2016-06-21 12:54:18 -07:00
Ryan Uber 114e57fff1 consul: use the Near field instead of PreferLocal 2016-06-21 12:39:40 -07:00
James Phillips 8358df599d Merge pull request #2127 from hashicorp/b-remote-consuls-locking
Ensure locking of `Server`'s `remoteConsuls`.
2016-06-21 10:00:04 -07:00
James Phillips f9e2900692 Merge pull request #2131 from hashicorp/b-misc-microoptimizations
Misc micro optimizations
2016-06-21 09:59:01 -07:00
James Phillips 88e3ee72ec Merge pull request #2130 from hashicorp/b-fix-rtt-deadlock
Fix deadlock in Consul RTT.
2016-06-21 09:55:04 -07:00
Sean Chittenden ebdb72ce0a
Ensure locking of `Server`'s `remoteConsuls`. 2016-06-20 22:59:49 -07:00
Sean Chittenden 37d642e018 Merge pull request #2128 from hashicorp/b-stable-test-portnumbers
Use stable, monotonically increasing port numbers for tests
2016-06-20 22:54:50 -07:00
Sean Chittenden 949829295a
Pack Port to be slightly more optimal in terms of struct memory usage. 2016-06-20 15:31:17 -07:00
Sean Chittenden 72f7a4061c
Misc comment improvements 2016-06-20 15:29:38 -07:00
Sean Chittenden 9bf6e61655
Initialize a non-empty number of Consul Datacenters. No functional change. 2016-06-20 15:26:59 -07:00
Sean Chittenden b78c95d37e
Prefer rand.Int31n() over rand.Int31(). 2016-06-20 15:26:27 -07:00
Sean Chittenden c90fc057d4
Give log reviewers a hint as to which check is failing 2016-06-20 15:25:21 -07:00
Sean Chittenden e81bf2a505
Fix deadlock in Consul RTT.
- consul/rtt.go:388: s.getDatacentersByDistance().  Acquires RLock()
- consul/rtt.go:341: sortDatacentersByDistance() RLock still held.
- consul/rtt.go:282: getDatacenterDistance() RLock still held.
- consul/rtt.go:268: getNodesForDatacenter(). Attempts to reacquire RLock(), hangs indefinitely.
2016-06-20 14:59:54 -07:00
Ryan Uber 89fe991ab7 consul: test raw PreferLocal functionality 2016-06-20 14:53:13 -07:00
Sean Chittenden 8baf0d7a95
Use stable, monotonically increasing port numbers for tests 2016-06-20 14:33:46 -07:00
Ryan Uber 89660879a0 agent: set origin during PQ execution 2016-06-20 14:24:42 -07:00
Ryan Uber 1fef85cd2e consul: support PreferLocal in PQ's 2016-06-20 14:24:40 -07:00
James Phillips 055b6973f6 Merge pull request #2123 from hashicorp/f-key-metrics
Adds a key metrics section to the telemetry guide.
2016-06-18 04:01:15 +01:00
James Phillips 53f082b2af Adds a key metrics section to the telemetry guide. 2016-06-17 18:57:42 +01:00
James Phillips f2228f9988 Adds a link to the changelog. 2016-06-17 14:04:18 +01:00
James Phillips 8684a968ca Merge pull request #2108 from sheldonkwok/patch-1
Update agent.html.markdown
2016-06-09 16:58:23 -07:00
Sheldon Kwok a3788d4ede Update agent.html.markdown
The documentation was not clear and I had to try with the cli to figure it out.
2016-06-09 16:48:18 -07:00
James Phillips 3b07b31eca Update CHANGELOG.md 2016-06-08 19:33:24 -07:00
James Phillips 42b3d999d4 Merge pull request #2106 from hashicorp/f-update-radix
Updates go-immutable-radix to pull in caching fix.
2016-06-08 19:31:07 -07:00
James Phillips bf9e334dde Updates go-immutable-radix to pull in caching fix. 2016-06-08 19:08:31 -07:00
James Phillips 1cbdbd18d2 Update CHANGELOG.md 2016-06-08 17:29:39 -07:00
James Phillips 9fe10723d6 Merge pull request #2105 from hashicorp/f-update-serf
Updates serf to get health score in stats.
2016-06-08 17:20:50 -07:00
James Phillips 7e75c894b0 Updates serf to get health score in stats. 2016-06-08 17:20:12 -07:00
Sean Chittenden 4e7846314f Merge pull request #2097 from hashicorp/f-checkid-type
`types` package w/ CheckID
2016-06-07 22:31:58 -07:00
James Phillips 2a70deba9a Merge pull request #2101 from hashicorp/f-update-serf-memberlist
Updates to latest Serf/memberlist to get lifeguard and TCP joins over DNS.
2016-06-07 14:46:26 -07:00
James Phillips 1776316053 Updates to latest Serf/memberlist to get lifeguard and TCP joins over DNS. 2016-06-07 14:30:47 -07:00
Sean Chittenden 7482a9207d
Chase casting types.CheckID to a string into the state_store.
It turns out the indexer can only use strings as arguments when
creating a query.  Cast `types.CheckID` to a `string` before calling
into `memdb`.

Ideally the indexer would be smart enough to do this at compile-time,
but I need to look into how to do this without reflection and the
runtime package.  For the time being statically cast `types.CheckID`
to a `string` at the call sites.
2016-06-07 16:59:02 -04:00
Sean Chittenden ff45f8c8ff
Revert "Move `structs.CheckID` to a new top-level package, `types`."
This reverts commit 2bbd52e3b44ff1b60939a8400264d534662d6d51.
2016-06-07 16:59:02 -04:00
Sean Chittenden a4554b945c
Move `structs.CheckID` to a new top-level package, `types`.
Per discussion w/ @slackpad, move this type to its own top-level package
2016-06-07 16:59:02 -04:00