open-consul/website/source/docs/agent
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
..
basics.html.md adds link to agent config options from basic.html 2018-05-28 12:47:14 +05:30
checks.html.md docs: Update links to ttl health check endpoints. (#4208) 2018-07-26 16:14:44 -07:00
cloud-auto-join.html.md fix a couple html errors (#4456) 2018-07-26 16:30:24 -07:00
dns.html.md Implementation of Weights Data structures (#4468) 2018-09-07 15:30:47 +01:00
encryption.html.md update encryption doc and add guide for creating certificates (#4238) 2018-06-18 15:25:35 -04:00
options.html.md Adds a new command line flag -log-file for file based logging. (#4581) 2018-08-29 16:56:58 -04:00
rpc.html.md
services.html.md Implementation of Weights Data structures (#4468) 2018-09-07 15:30:47 +01:00
telemetry.html.md Correct rpc telemetry docs (#4602) 2018-08-28 16:38:22 -04:00
watches.html.md