Repository navigation
Closed as not planned
Labels
area/xdsenhancementFeature requests. Not bugs or questions.stalestalebot believes this issue/PR has not been touched recently
Description
Add support for OD-CDS concurrent with SoTW CDS
Currently, SoTW CDS updates delete all OD-CDS delivered clusters. This cluster removal is unnecessary, causes extra load on management servers, and was the cause of tricky to debug cluster_not_found responses on SoTW updates.
There's been similar concerns & solutions for related SoTW CDS interactions:
- xDS-TP (xds-federation: adding support for OD-CDS over xDS-TP concurrent with CDS SotW #41117)
- DynamicForwardProxy (Dynamic forward proxy with sub_clusters_config get stuck with wait for warmup #35171 (comment))
Example
Consider the following setup with both static clusters & ODCDS:
# bootstrap file referencing static clusters
dynamic_resources:
cds_config:
path_config_source:
path: /envoy/configs/cds.yaml
resource_api_version: V3
lds_config:
path_config_source:
path: /envoy/configs/lds.yaml
resource_api_version: V3
# cds.yaml w static clusters A,B,C
resources:
- "@type": type.googleapis.com/envoy.config.cluster.v3.Cluster
name: A
...
# lds.yaml route with OnDemand CDS for clusters D,E,F
...
- match: ...
route:
weighted_clusters:
clusters:
- name: D
weight: 100
typed_per_filter_config:
envoy.filters.http.on_demand:
"@type": type.googleapis.com/envoy.extensions.filters.http.on_demand.v3.PerRouteConfig
odcds: ...
timeout: 45s- Envoy starts and loads clusters A,B,C from
cds.yaml - Over time, Envoy discovers clusters D,E,F via ODCDS
- SoTW CDS update occurs. This can happen by replacing the
lds.yamlfile. - SoTW CDS removes ODCDS clusters D,E,F
Proposal
I have a few independent high level ideas to make this work:
- Extend xds-federation: adding support for OD-CDS over xDS-TP concurrent with CDS SotW #41117, making SoTW CDS only able to remove its own clusters.
- Have ODCDS add Clusters similar to DFP, piping
avoid_cds_removalthrough to thecds_api_helper. - Add explicit owner tracking in the Cluster Manager. SoTW CDS, ODCDS, DFP, etc use a unique identifier when interacting with the Cluster Manager. The Cluster Manager rejects requests related to clusters with a mismatched owner.
I'm in favor of option 1 since it's a straightforward change and implements what the intended behavior of SoTW CDS should be.
Metadata
Metadata
Assignees
Labels
area/xdsenhancementFeature requests. Not bugs or questions.stalestalebot believes this issue/PR has not been touched recently
Activity
ravi-dd commentedon Dec 10, 2025
@adisuissa, related to #41117
adisuissa commentedon Dec 10, 2025
I believe this is more challenging than the description above. Each mux needs to track its own set of subscriptions, and when the cluster manager will merge the view from all the muxes.
It will require proper implementation of the xDS-reources manager, and have a cache for each mux.
ravi-dd commentedon Dec 10, 2025
Does the same concern apply to enabling resource tracking for the SoTW API,
cds_api_impl.ccsimilar to #41117, either config flagged or by default? This solves the mentioned SoTW <> ODCDS interaction and is a more straightforward approach.I moved the Cluster owner idea to the proposal section for clarity as it was just one idea for solving the SoTW <> ODCDS interaction.
adisuissa commentedon Dec 11, 2025
The goal is to have multiple xDS services each owning their resources, and sending the updates to the relevant Envoy components. The Envoy components should not "know" whether SotW or delta is used.
ravi-dd commentedon Dec 11, 2025
My high level goal is to prevent CDS SotW from removing OD CDS clusters. #41117 does exactly this but only for ODCDS over xDS-TP (
support_multi_ads_sourcesenables tracking forCdsApibut is only true when xDS-TP is enabled).Shouldn't
CdsApialso track in other cases since ODCDS over traditional xDS faces the same problem.Let me know if I'm misunderstanding something.
ravi-dd commentedon Dec 17, 2025
Hey @adisuissa, following up on this. Thanks
adisuissa commentedon Dec 17, 2025
The proper way to solve this is to have per-source cache that will remove the clusters that it previously added. The issue is that currently SotW doesn't keep that state.
I'm not saying it's not possible, but it will require a design first that works well with #24773.
ravi-dd commentedon Dec 17, 2025
I see what you mean. Is it not possible to leverage
sotw_resource_names_here though or is that only meant to be temporary and not the proper way to handle it?github-actions commentedon Jan 16, 2026
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.
github-actions commentedon Jan 24, 2026
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.
cds: track SotW CDS resources so that OD-CDS clusters are not removed (…
router: config-time route index for virtual host route matching