mirror of https://github.com/status-im/consul.git
eddcf228ea
* 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 |
||
---|---|---|
.. | ||
api | ||
assets | ||
docs | ||
intro | ||
layouts | ||
.gitignore | ||
404.html.md | ||
android-manifest.json.erb | ||
community.html.erb | ||
configuration.html.erb | ||
discovery.html.erb | ||
downloads.html.erb | ||
downloads_tools.html.erb | ||
favicon.ico | ||
index.html.erb | ||
microsoft-tile.xml.builder | ||
robots.txt | ||
security.html.erb | ||
segmentation.html.erb | ||
sitemap.xml.builder |