Skip to content

Conversation

@spenceral
Copy link
Contributor

@spenceral spenceral commented Nov 25, 2025

Add documentation explaining that predictive_preconnect_ratio is limited to 3. Per_upstream_preconnect_ratio and predictive_preconnect_ratio are both limited to 3, but previously only the former had this upper bound documented.


Commit Message: docs: clarify predictive_preconnect_ratio upper limit

Add documentation explaining that predictive_preconnect_ratio is limited to 3. Per_upstream_preconnect_ratio and predictive_preconnect_ratio are both limited to 3, but previously only the former had this upper bound documented.

Additional Description:

Users unaware of the upper bound that set too high of a value will see CDS updates rejected (ask me how I know :) )

xds update failed for node=foo, message=Proto constraint validation failed (ClusterValidationError.PreconnectPolicy: embedded message failed validation | caused by PreconnectPolicyValidationError.PredictivePreconnectRatio: value must be inside range [1, 3])

Fixing the documentation gap here https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/cluster/v3/cluster.proto#config-cluster-v3-cluster-preconnectpolicy lessens the chance of that happening. I copied the comment word for word from the proto comment for per_upstream_preconnect_ratio.

Risk Level: low
Testing: n/a
Docs Changes: API protos doc update

@repokitteh-read-only
Copy link

Docs for this Pull Request will be rendered here:

https://storage.googleapis.com/envoy-cncf-pr/42261/docs/index.html

The docs are (re-)rendered each time the CI Envoy/Prechecks (docs) job completes.

🐱

Caused by: #42261 was opened by spenceral.

see: more, trace.

@repokitteh-read-only
Copy link

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to (api/envoy/|docs/root/api-docs/).
envoyproxy/api-shepherds assignee is @wbpcode
CC @envoyproxy/api-watchers: FYI only for changes made to (api/envoy/|docs/root/api-docs/).

🐱

Caused by: #42261 was opened by spenceral.

see: more, trace.

Add documentation explaining that predictive_preconnect_ratio is limited to 3.
Per_upstream_preconnect_ratio and predictive_preconnect_ratio are both
limited to 3, but previously only the former had this upper bound
documented.

Signed-off-by: Spencer Lewis <[email protected]>
@spenceral spenceral force-pushed the predictive_preconnect_doc branch from addeeb0 to 06b68e5 Compare November 25, 2025 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants