[DONTREVIEW] Add test for unused subset removal#3802
Closed
rgs1 wants to merge 4 commits intoenvoyproxy:masterfrom
Closed
[DONTREVIEW] Add test for unused subset removal#3802rgs1 wants to merge 4 commits intoenvoyproxy:masterfrom
rgs1 wants to merge 4 commits intoenvoyproxy:masterfrom
Conversation
We are tracking down why our active subsets keep growing without
the unused ones being removed, e.g.:
```
$ curl -s localhost:9901/stats | grep subset | grep app
cluster.app.lb_subsets_active: 396
cluster.app.lb_subsets_created: 396
cluster.app.lb_subsets_fallback: 1171992
cluster.app.lb_subsets_removed: 0
cluster.app.lb_subsets_selected: 46201647
```
We have the following subset LB config:
```
"lb_subset_config": {
"fallback_policy": "DEFAULT_SUBSET",
"default_subset": {
"default": "true"
},
"subset_selectors": [
{
"keys": [
"default"
]
},
{
"keys": [
"version"
]
},
{
"keys": [
"canary"
]
}
]
}
```
And we never have more than have more than 6 possible subsets at a given
time:
```
default/true
version/v1
version/v2
version/v3
version/v4
canary/true
```
Of course, versions keep changing but there are never more than 4 at the same
time. It looks like the old ones are not being removed.
One important note is that endpoints remain constant (e.g.: (ip, port)), but
their metadata changes (e.g.: the version).
Signed-off-by: Raul Gutierrez Segales <rgs@pinterest.com>
This was referenced Jul 6, 2018
Closed
Member
Author
|
Here's how the test fail (while I fix format issues, etc), TLDR: active subsets keep Test output: |
added 2 commits
July 6, 2018 15:29
Signed-off-by: Raul Gutierrez Segales <rgs@pinterest.com>
Member
|
Assigning over to @zuercher to help figure out what's going on here. |
It doesn't — unless the endpoint is first removed and then added again. Not sure if this is by design or an omission. Signed-off-by: Raul Gutierrez Segales <rgs@pinterest.com>
Member
|
Closed in favor of #3814 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We are tracking down why our active subsets keep growing without
the unused ones being removed, e.g.:
We have the following subset LB config:
And we never have more than have more than 6 possible subsets at a given
time:
Of course, versions keep changing but there are never more than 4 at the same
time. It looks like the old ones are not being removed.
One important note is that endpoints remain constant (e.g.: (ip, port)), but
their metadata changes (e.g.: the version).
Signed-off-by: Raul Gutierrez Segales rgs@pinterest.com