open-consul/command
Pierre Souchay 473e589d86 Implementation of Weights Data structures (#4468)
* Implementation of Weights Data structures

Adding this datastructure will allow us to resolve the
issues #1088 and #4198

This new structure defaults to values:
```
   { Passing: 1, Warning: 0 }
```

Which means, use weight of 0 for a Service in Warning State
while use Weight 1 for a Healthy Service.
Thus it remains compatible with previous Consul versions.

* Implemented weights for DNS SRV Records

* DNS properly support agents with weight support while server does not (backwards compatibility)

* Use Warning value of Weights of 1 by default

When using DNS interface with only_passing = false, all nodes
with non-Critical healthcheck used to have a weight value of 1.
While having weight.Warning = 0 as default value, this is probably
a bad idea as it breaks ascending compatibility.

Thus, we put a default value of 1 to be consistent with existing behaviour.

* Added documentation for new weight field in service description

* Better documentation about weights as suggested by @banks

* Return weight = 1 for unknown Check states as suggested by @banks

* Fixed typo (of -> or) in error message as requested by @mkeeler

* Fixed unstable unit test TestRetryJoin

* Fixed unstable tests

* Fixed wrong Fatalf format in `testrpc/wait.go`

* Added notes regarding DNS SRV lookup limitations regarding number of instances

* Documentation fixes and clarification regarding SRV records with weights as requested by @banks

* Rephrase docs
2018-09-07 15:30:47 +01:00
..
agent Implementation of Weights Data structures (#4468) 2018-09-07 15:30:47 +01:00
catalog Fixed unit test TestCatalogListServicesCommand (#4592) 2018-08-27 13:53:46 -04:00
connect Fixed flaky tests (#4626) 2018-09-04 12:31:51 +01:00
event
exec Address flakiness in command/exec tests (#4517) 2018-08-10 15:04:07 -04:00
flags replace old fork of text package (#4501) 2018-08-14 12:23:18 -07:00
forceleave
helpers
info
intention Fix unreachable code warning from go vet 2018-06-25 12:24:15 -07:00
join
keygen
keyring
kv Merge pull request #4194 from hashicorp/fix-kv-del-validation 2018-06-05 16:58:14 +01:00
leave
lock Improve reliability of tests with TestAgent (#4525) 2018-08-14 12:08:33 -04:00
maint
members
monitor
operator Fixed flaky tests (#4626) 2018-09-04 12:31:51 +01:00
reload
rtt Fixed unstable test TestRTTCommand_LAN in command/rtt (#4585) 2018-08-27 11:37:13 -04:00
snapshot
validate
version
watch Don't allow connect watches in agent/cli yet 2018-06-14 09:42:06 -07:00
commands_oss.go Abandon daemonize for simpler solution (preserving history): 2018-06-25 12:24:10 -07:00
registry.go Abandon daemonize for simpler solution (preserving history): 2018-06-25 12:24:10 -07:00