4007 Commits

Author SHA1 Message Date
James Phillips
09cfda47ed 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
aa1bb5a012 Merge pull request #2131 from hashicorp/b-misc-microoptimizations
Misc micro optimizations
2016-06-21 09:59:01 -07:00
James Phillips
a173349a67 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
3c197bad30
Ensure locking of Server's remoteConsuls. 2016-06-20 22:59:49 -07:00
Sean Chittenden
755c3647c8 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
32f393b611
Pack Port to be slightly more optimal in terms of struct memory usage. 2016-06-20 15:31:17 -07:00
Sean Chittenden
b3df5d3a87
Misc comment improvements 2016-06-20 15:29:38 -07:00
Sean Chittenden
65edc0a374
Initialize a non-empty number of Consul Datacenters. No functional change. 2016-06-20 15:26:59 -07:00
Sean Chittenden
223f605b1e
Prefer rand.Int31n() over rand.Int31(). 2016-06-20 15:26:27 -07:00
Sean Chittenden
112f3fd468
Give log reviewers a hint as to which check is failing 2016-06-20 15:25:21 -07:00
Sean Chittenden
c3e54b79fd
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
Sean Chittenden
56f480a633
Use stable, monotonically increasing port numbers for tests 2016-06-20 14:33:46 -07:00
James Phillips
af30e17dcd 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
4c82c45ee9 Adds a key metrics section to the telemetry guide. 2016-06-17 18:57:42 +01:00
James Phillips
af332d6d77 Adds a link to the changelog. 2016-06-17 14:04:18 +01:00
James Phillips
6d35960361 Merge pull request #2108 from sheldonkwok/patch-1
Update agent.html.markdown
2016-06-09 16:58:23 -07:00
Sheldon Kwok
14abdbf5ad 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
03c806a901 Update CHANGELOG.md 2016-06-08 19:33:24 -07:00
James Phillips
9431084004 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
a46ed7fa32 Updates go-immutable-radix to pull in caching fix. 2016-06-08 19:08:31 -07:00
James Phillips
c5053c3334 Update CHANGELOG.md 2016-06-08 17:29:39 -07:00
James Phillips
099345fbbc 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
b5f1c41aef Updates serf to get health score in stats. 2016-06-08 17:20:12 -07:00
Sean Chittenden
14ec46b3cf Merge pull request #2097 from hashicorp/f-checkid-type
`types` package w/ CheckID
2016-06-07 22:31:58 -07:00
James Phillips
4ea2e35ff1 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
785cb70cd3 Updates to latest Serf/memberlist to get lifeguard and TCP joins over DNS. 2016-06-07 14:30:47 -07:00
Sean Chittenden
e9a2f5b40c
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
63adcbd5ef
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
cbb945e76a
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
Sean Chittenden
f5ab25163e
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
Sean Chittenden
ddbe64a8c8
Float a type balloon. Some strings are square pegs in round holes.
This experiment was brought about because of variable naming
confusion where name and checkIDs were interchanged.  Gave CheckID
an Qualified Type Name and chased downstream changes.
2016-06-07 16:59:02 -04:00
James Phillips
3a4da7ca3d Merge pull request #2100 from hashicorp/f-update-web
Updates web assets to pull in RTT viz.
2016-06-07 09:33:30 -07:00
James Phillips
518e122053 Updates web assets to pull in RTT viz. 2016-06-07 09:32:44 -07:00
James Phillips
6d8f298269 Merge pull request #2099 from hashicorp/f-update-serf
Pulls in latest Serf to get flap metric.
2016-06-07 09:23:19 -07:00
James Phillips
a8bafda8b6 Pulls in latest Serf to get flap metric. 2016-06-07 09:22:41 -07:00
James Phillips
b83c4ffa84 Merge pull request #2098 from hashicorp/b-scada
Removes stale scada client and test sections that use (now) unexported fields.
2016-06-06 19:21:14 -07:00
James Phillips
a78b969984 Removes stale scada client and test sections that use (now) unexported fields.
Fixes #2092.
2016-06-06 19:18:31 -07:00
James Phillips
6160858e96 Merge pull request #2093 from hashicorp/b-certs
Re-ups the snake oil certs for the unit tests.
2016-06-04 12:15:05 -07:00
James Phillips
4606adae6c Re-ups the snake oil certs for the unit tests.
Ref #979 for a link to the blog with the commands to use :-)
2016-06-04 12:13:56 -07:00
James Phillips
d4a8a43d2b Merge pull request #2091 from hashicorp/b-travis
Enables fallback git tag check to fix Travis.
2016-06-03 23:35:46 -07:00
James Phillips
b8bf43101e Enables fallback git tag check to fix Travis. 2016-06-03 23:34:00 -07:00
James Phillips
a1bb91a679 Merge pull request #2090 from evan2645/document-consul-lock-shell-execution
Document `consul lock` shell execution
2016-06-03 22:31:31 -07:00
Evan Gilman
73d4f5700b
Document consul lock shell execution
Consul lock executes children under a shell, which was previously
undocumented. Document it, and warn against cases where this can cause
children to leak when the lock is lost.

I have made this a dedicated section so it can easily be removed
later when we move to exec

https://github.com/hashicorp/consul/issues/1692
2016-06-03 17:01:05 -07:00
James Phillips
802b29ab94 Merge pull request #2088 from lihz1990/master
add tcp in service/register
2016-06-03 08:36:49 -07:00
lihz
392c2605f3 add tcp in service/register
I found consul /service/register interface supprt TCP check as well.
2016-06-03 19:29:05 +08:00
Jeff Mitchell
ebf7ea1d75 Use upstream high-level SCADA provider 2016-06-01 18:25:39 -04:00
James Phillips
b43f900766 Merge pull request #2075 from mlbarrow/patch-1
Fix typo
2016-05-29 11:34:41 -07:00
Michael Barrow
9c3e2f1aef Fix typo
Simple typo fix.
2016-05-29 10:24:44 -07:00
Sean Chittenden
446d76b432
Fix the href target for the /v1/catalog/node/<node> endpoint. 2016-05-27 00:12:17 -07:00
James Phillips
22938ab8b3 Merge pull request #2072 from awiddersheim/patch-1
Fix typo
2016-05-26 08:05:14 -07:00