Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
Coredns
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Railgun
Coredns
Commits
93eaaf3b
Commit
93eaaf3b
authored
Jan 23, 2020
by
Miek Gieben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove the metadata foo
Signed-off-by:
Miek Gieben
<
miek@miek.nl
>
parent
7ffd0b57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
13 deletions
+4
-13
plugin/traffic/README.md
plugin/traffic/README.md
+4
-13
No files found.
plugin/traffic/README.md
View file @
93eaaf3b
...
@@ -103,27 +103,18 @@ How are clients match against the data we receive from xDS endpoint? Ignoring `l
...
@@ -103,27 +103,18 @@ How are clients match against the data we receive from xDS endpoint? Ignoring `l
it will go through the following steps:
it will go through the following steps:
1.
Does the cluster exist? If not return NXDOMAIN, otherwise continue.
1.
Does the cluster exist? If not return NXDOMAIN, otherwise continue.
2.
Check the cluster's metadata, if available and set to DRAINING, return a NODATA response,
2.
Run through the endpoints, discard any endpoints that are not HEALTHY. If we are left with no
otherwise continue.
3.
Run through the endpoints, discard any endpoints that are not HEALTHY. If we are left with no
endpoint return a NODATA response, otherwise continue.
endpoint return a NODATA response, otherwise continue.
4
.
If weights are assigned use those to pick an endpoint, otherwise randomly pick one and return a
3
.
If weights are assigned use those to pick an endpoint, otherwise randomly pick one and return a
response to the client.
response to the client.
If
`locality`
*has*
been specified there is an extra step between
3 and 4
.
If
`locality`
*has*
been specified there is an extra step between
2 and 3
.
3
a. Match the endpoints using the locality that groups several of them, it's the most specific match
2
a. Match the endpoints using the locality that groups several of them, it's the most specific match
from left to right in the
`locality`
list; if no
**REGION,ZONE,SUBZONE**
matches then try
from left to right in the
`locality`
list; if no
**REGION,ZONE,SUBZONE**
matches then try
**REGION,ZONE**
and then
**REGION**
. If still not match, move on the to next one. If we found
**REGION,ZONE**
and then
**REGION**
. If still not match, move on the to next one. If we found
none, we continue with step 4 above, ignoring any locality.
none, we continue with step 4 above, ignoring any locality.
### Metadata
The metadata must be populated as follows (remains to be seen if this is the way to do it). There
must be a field with the key
`HEALTH_STATUS`
and the string value must be
`DRAINING`
. These values
are copied from Envoy protocol buffers. Anything other than
`DRAINING`
and
`HEALTH_STATUS`
or a
missing metadata means
*traffic*
will ignore it.
## Metrics
## Metrics
If monitoring is enabled (via the
*prometheus*
plugin) then the following metric are exported:
If monitoring is enabled (via the
*prometheus*
plugin) then the following metric are exported:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment