Skip to content

config: latch previous config on empty EDS/RDS update.#1688

Merged
htuch merged 1 commit intoenvoyproxy:masterfrom
htuch:eds-rds-empty
Sep 19, 2017
Merged

config: latch previous config on empty EDS/RDS update.#1688
htuch merged 1 commit intoenvoyproxy:masterfrom
htuch:eds-rds-empty

Conversation

@htuch
Copy link
Copy Markdown
Member

@htuch htuch commented Sep 18, 2017

With ADS or other batched updates, we might not see a cluster/route config in
an EDS/RDS update. There are at least two sane things to do; (1) latch the
previous config (2) provide an empty config for the resource. In this PR, we
opt for (1), this isn't on the happy path so there isn't an obvious choice
either way.

Signed-off-by: Harvey Tuch htuch@google.com

With ADS or other batched updates, we might not see a cluster/route config in
an EDS/RDS update. There are at least two sane things to do; (1) latch the
previous config (2) provide an empty config for the resource. In this PR, we
opt for (1), this isn't on the happy path so there isn't an obvious choice
either way.

Signed-off-by: Harvey Tuch <htuch@google.com>
}

void RdsRouteConfigProviderImpl::onConfigUpdate(const ResourceVector& resources) {
if (resources.empty()) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this also apply to LDS/CDS also? I only see RDS/EDS. (Also, again not loving all the duplication but I know we have ticket on trying to consolidate).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LDS/CDS empty responses should delete clusters and route configs, since they are always global and provide the source-of-truth on what the valid clusters/route configs are.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK got it.

@htuch htuch merged commit 371a871 into envoyproxy:master Sep 19, 2017
@htuch htuch deleted the eds-rds-empty branch September 19, 2017 16:02
taiki45 pushed a commit to taiki45/data-plane-api that referenced this pull request Mar 15, 2018
- update_empty: envoyproxy/envoy#1688
- lb_zone_no_capacity_left: envoyproxy/envoy#214

Signed-off-by: Taiki Ono <taiki-ono@cookpad.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants