James Phillips
36c78f5042
Adds sort of DCs in catalog queries based on RTT. Cleans up.
...
* Makes the catalog endpoint respect disabling coordinates for all
RTT-sorting query types.
2015-10-23 15:23:01 -07:00
James Phillips
89c7203f31
Adds coordinate sorting support to catalog queries for nodes and service nodes.
2015-10-23 15:23:01 -07:00
James Phillips
d734697820
Turns down the coordinate sync rate a bit more.
2015-10-23 15:23:01 -07:00
James Phillips
ad65d953f6
Scales coordinate sends to hit a fixed aggregate rate across the cluster.
2015-10-23 15:23:01 -07:00
James Phillips
66a3d29743
Simplifies the batching function and adds some comments.
2015-10-23 15:23:01 -07:00
James Phillips
e094f5a61d
Adds snapshot save and restore of coordinates.
2015-10-23 15:23:01 -07:00
James Phillips
5f754c4a87
Does some small cleanups based on PR feedback.
...
* Holds coordinate updates in map and gets rid of the update channel.
* Cleans up config variables a bit.
2015-10-23 15:23:01 -07:00
James Phillips
7e6d52109b
Hardens Consul from bad coordinates from other nodes.
2015-10-23 15:23:01 -07:00
James Phillips
2cee9f7e2f
Takes the node name out of the coordinate get call.
2015-10-23 15:23:01 -07:00
James Phillips
d12aa2ffab
Moves batching down into the state store and changes it to fail-fast.
...
* A batch of updates is done all in a single transaction.
* We no longer need to get an update to kick things, there's a periodic flush.
* If incoming updates overwhelm the configured flush rate they will be dumped with an error.
2015-10-23 15:23:01 -07:00
James Phillips
b9d5fb0f90
Flips the sense of the coordinate enable option.
2015-10-23 15:23:01 -07:00
James Phillips
92567841d6
Removes one more WAN leftover.
2015-10-23 15:23:01 -07:00
James Phillips
86b112fe31
Does a clean up pass on the Consul side.
2015-10-23 15:23:01 -07:00
James Phillips
01d2452ea3
Merges config changes after rebase.
2015-10-23 15:23:01 -07:00
Derek Chiang
7255ddd086
Address comments
2015-10-23 15:23:01 -07:00
Derek Chiang
2f11db15aa
Add test for the GetWAN endpoint
2015-10-23 15:23:01 -07:00
Derek Chiang
1929b1dabf
Add an endpoint for getting WAN coordinates
2015-10-23 15:23:01 -07:00
Derek Chiang
69003310ca
Fix tests
2015-10-23 15:23:01 -07:00
Derek Chiang
54a2815d9c
Address comments
2015-10-23 15:23:01 -07:00
Derek Chiang
f8d81092c9
Add state store tests
2015-10-23 15:23:01 -07:00
Derek Chiang
f657caf1dd
Add more tests
2015-10-23 15:23:01 -07:00
Derek Chiang
f144d17b1c
Address comments
2015-10-23 15:23:01 -07:00
Derek Chiang
ab9262c656
Add a test case
2015-10-23 15:23:01 -07:00
Derek Chiang
bf5cb7522f
Use IndexedCoordinate instead
2015-10-23 15:23:01 -07:00
Derek Chiang
d8dd8d77d4
Improve a test
2015-10-23 15:23:01 -07:00
Derek Chiang
a1854a7614
Some fixes
2015-10-23 15:23:01 -07:00
Derek Chiang
a338e5efe8
Fix a comment
2015-10-23 15:23:01 -07:00
Derek Chiang
98d87b5dd5
Complete logic for sending coordinates
2015-10-23 15:23:01 -07:00
Derek Chiang
8a0bb40bba
Fix tests
2015-10-23 15:23:01 -07:00
Derek Chiang
9113b26286
Some fixes
2015-10-23 15:23:01 -07:00
Derek Chiang
b87f122a5b
Change GET API a little bit
2015-10-23 15:23:01 -07:00
Derek Chiang
a9ea503c69
Adding tests and stuff
2015-10-23 15:23:01 -07:00
Derek Chiang
13f6cd376f
Start adding stuff
2015-10-23 15:23:01 -07:00
Diptanu Choudhury
24ed164b51
Merge branch 'master' into f-docker-check
2015-10-23 12:57:28 -07:00
Ryan Breen
1585913fdf
Merge pull request #1329 from eicca/improve-api-readme
...
Handle error in api README example
2015-10-23 15:30:05 -04:00
Mikhail Dyakov
01aba571a1
Handle error in api README example
2015-10-23 21:20:01 +02:00
Diptanu Choudhury
80ad971e8a
Implemented Docker health checks
2015-10-22 17:48:33 -07:00
Armon Dadgar
6a350d5d19
Merge pull request #1318 from daveadams/f-http-header-token
...
Allow specifying Consul token in an HTTP request header
2015-10-22 13:33:47 -07:00
Seth Vargo
66977f92b0
Merge pull request #1328 from hashicorp/sethvargo/build_gox
...
Use gox for building
2015-10-22 15:14:42 -04:00
Seth Vargo
593452b422
Typos
2015-10-22 15:00:35 -04:00
Seth Vargo
6c528f0ff2
Use gox for building
2015-10-22 14:16:01 -04:00
Jeff Mitchell
1e3840b044
Update cleanhttp repo location
2015-10-22 14:14:22 -04:00
James Phillips
81dce36e6a
Merge pull request #1327 from hashicorp/cleanhttp
...
Use cleanhttp to get rid of DefaultTransport
2015-10-22 08:01:55 -07:00
Jeff Mitchell
9a5fd5424a
Use cleanhttp to get rid of DefaultTransport
2015-10-22 10:47:50 -04:00
James Phillips
158eabdd6f
Cleans up a little whitespace with go fmt.
2015-10-20 18:41:05 -07:00
James Phillips
7601a160d7
Merge pull request #1291 from hashicorp/f-memdb
...
New memdb-based state store
2015-10-20 18:24:49 -07:00
James Phillips
ff1eec015f
Gets rid of LMDB reference in the FAQ.
2015-10-20 13:39:11 -07:00
James Phillips
785bf6678d
Gets rid of error prefixing in leader.go.
2015-10-20 13:37:11 -07:00
James Phillips
f3a95bf9fe
Puts all restore operations into a single transaction and optimizes watches.
2015-10-19 23:06:59 -07:00
Ryan Breen
b1a335d991
Merge pull request #1321 from daveadams/b-safari-ui-403
...
Fix #1316 : Safari 403 error on k/v page of web UI
2015-10-19 23:29:11 -04:00