Commit Graph

4198 Commits

Author SHA1 Message Date
Ryan Uber 5023c4add1 Merge pull request #1847 from mssola/dc-to-datacenter
[proposal] command: deprecated the -dc flag in the agent CLI
2016-07-05 13:01:51 -07:00
Ryan Uber cd046fe0de Merge pull request #1971 from iadknet/feature/terraform-centos7
terraform: added support for centos7 to aws
2016-07-05 12:56:10 -07:00
Calvin Leung Huang 912887a4db Fix substring length on obfuscated token 2016-07-05 15:53:30 -04:00
Ryan Uber fb6c9310e1 Merge pull request #1863 from mssola/bash-completion
contrib: added bash completion
2016-07-05 12:52:58 -07:00
James Phillips 6e061b2d58 Merge pull request #2160 from hashicorp/f-api-pq-template
Adds query templates to the api package
2016-07-02 19:45:54 -07:00
Ryan Uber 499537addf api: add query templates 2016-07-02 16:05:41 -07:00
Aaron Hurt e82c794fd5 Alter instructions for adding tools to the list 2016-07-02 15:37:43 -05:00
Aaron Hurt 6b23bf203c Add link to consul-backinator utility 2016-07-02 15:33:47 -05:00
James Phillips 5425fda872 Merge pull request #2158 from sean9999/patch-1
small typo
2016-07-02 01:00:58 -07:00
Sean Macdonald 525d977bd4 small typo 2016-07-02 01:29:00 -04:00
James Phillips dbe6af21d5 Merge pull request #2157 from hashicorp/f-near-api
Adds near param to API client
2016-07-01 16:53:38 -07:00
Ryan Uber 72b43eba26 api: add Near parameter to PQ's 2016-07-01 16:41:46 -07:00
James Phillips 196c992caf Merge pull request #2156 from hashicorp/f-sort-local
Sort source node first if at position <= 10 in PQ's
2016-07-01 15:01:39 -07:00
Ryan Uber 29333e8603 consul: sort source node first if at position <= 10 in PQ's 2016-07-01 14:28:58 -07:00
Ryan Uber 60c778248f Update CHANGELOG.md 2016-07-01 12:42:20 -07:00
Ryan Uber ab1654758f 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 2b2464403f website: add upgrading note for Near param in PQ's 2016-07-01 12:26:14 -07:00
Ryan Uber 46b6726d1c consul: mention magic _agent token in struct comments 2016-07-01 11:50:30 -07:00
Ryan Uber 01b28b9581 website: document near parameter of prepared queries 2016-07-01 11:50:09 -07:00
Ryan Uber 7fd0c3ce70 agent: parseSource still subs for _agent 2016-07-01 10:04:58 -07:00
Ryan Uber 00819e89de agent: test that DNS passes the agent data through 2016-07-01 09:46:26 -07:00
Ryan Uber 62884a22d4 consul: send agent source data as separate query source 2016-06-30 16:51:18 -07:00
Ryan Uber 104b234dde agent: always pass local agent query source, allow override 2016-06-30 12:11:48 -07:00
Ryan Uber 0c2ad07fa9 consul: use source parameter for near prepared queries 2016-06-30 12:11:20 -07:00
James Phillips 56eb3bbe35 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 eeb0ca636b Adds a note about prepared queries to the coordinates internals guide. 2016-06-28 23:02:00 -07:00
James Phillips 38c47d0def Update CHANGELOG.md 2016-06-28 09:13:36 -07:00
James Phillips 71c18141ce Update CHANGELOG.md 2016-06-28 09:08:31 -07:00
janisz fcd5233ad3 Added allegor/marathon-consul in community tools
With @dankraw we authored https://github.com/allegro/marathon-consul/ this is fork of https://github.com/CiscoCloud/marathon-consul that is no longer developed (see this comment https://github.com/CiscoCloud/marathon-consul/issues/17#issuecomment-161678453).
2016-06-24 23:42:07 +02:00
Ryan Uber c457ee0075 agent: fix test 2016-06-21 16:28:26 -07:00
Ryan Uber d567d6a6d8 consul: send origin node + dc when executing prepared queries 2016-06-21 15:34:26 -07:00
Ryan Uber 03fea4b091 consul: test baked-in distance sort 2016-06-21 12:54:18 -07:00
Ryan Uber 4c1afb1bc6 consul: use the Near field instead of PreferLocal 2016-06-21 12:39:40 -07:00
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
Ryan Uber 100a46727f consul: test raw PreferLocal functionality 2016-06-20 14:53:13 -07:00
Sean Chittenden 56f480a633
Use stable, monotonically increasing port numbers for tests 2016-06-20 14:33:46 -07:00
Ryan Uber 865c264b9c agent: set origin during PQ execution 2016-06-20 14:24:42 -07:00
Ryan Uber 3797e6544c consul: support PreferLocal in PQ's 2016-06-20 14:24:40 -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