consul/website/source
Pierre Souchay eddcf228ea 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
..
api website: use 127.0.0.1 instead of consul.rocks (#4523) 2018-08-28 09:07:15 -07:00
assets Adds Monitoring with Telegraf guide (#4227) 2018-07-23 16:46:43 -07:00
docs Implementation of Weights Data structures (#4468) 2018-09-07 15:30:47 +01:00
intro Remove all mention of Atlas, even in deprecated changelogs 2018-08-03 10:51:18 -07:00
layouts Consul Production Deployment Guide 2018-08-10 11:51:05 -07:00
.gitignore
404.html.md Tweaks 404 message. 2017-04-14 09:00:59 -07:00
android-manifest.json.erb Move to new branding 2017-03-30 18:46:50 -04:00
community.html.erb Update community.html.erb 2017-12-19 20:57:42 -08:00
configuration.html.erb Add missing word for Watches clarification 2018-07-25 15:34:45 -04:00
discovery.html.erb Corrects formatting of JSON in snippet 2018-06-29 18:36:47 -07:00
downloads.html.erb Move to new branding 2017-03-30 18:46:50 -04:00
downloads_tools.html.erb Update downloads_tools.html.erb 2018-05-12 22:30:05 +01:00
favicon.ico Move to new branding 2017-03-30 18:46:50 -04:00
index.html.erb website: an assortment of front-end updates (#4296) 2018-06-28 11:43:30 -07:00
microsoft-tile.xml.builder Move to new branding 2017-03-30 18:46:50 -04:00
robots.txt
security.html.erb Move to new branding 2017-03-30 18:46:50 -04:00
segmentation.html.erb Fix "ensures all data" from original "ensure all data" 2018-06-29 18:05:42 -07:00
sitemap.xml.builder