Repository navigation
outlier_detection: add optional random jitter to ejection time - #19869
Conversation
Signed-off-by: asheryer <[email protected]>
|
Hi @asheryerm, welcome and thank you for your contribution. We will try to review your Pull Request as quickly as possible. In the meantime, please take a look at the contribution guidelines if you have not done so already. |
|
CC @envoyproxy/api-shepherds: Your approval is needed for changes made to |
mattklein123
left a comment
There was a problem hiding this comment.
Thanks in general this makes sense to me. Can you check CI? This will also need tests. Thank you.
/wait
…se notes Signed-off-by: asheryer <[email protected]>
Signed-off-by: asheryer <[email protected]>
adisuissa
left a comment
There was a problem hiding this comment.
Thanks for working on this.
Left a comment regarding backwards compatibility.
/wait
Signed-off-by: asheryer <[email protected]>
Signed-off-by: asheryer <[email protected]>
Signed-off-by: asheryer <[email protected]>
Signed-off-by: asheryer <[email protected]>
Signed-off-by: asheryer <[email protected]>
adisuissa
left a comment
There was a problem hiding this comment.
Thanks!
Left a few more comments.
Signed-off-by: asheryer <[email protected]>
mattklein123
left a comment
There was a problem hiding this comment.
Thanks LGTM at a high level. Will defer to @adisuissa for final review and merge since he has been looking at this.
Signed-off-by: asheryer <[email protected]>
Signed-off-by: asheryer <[email protected]>
Signed-off-by: asheryer <[email protected]>
Signed-off-by: asheryer <[email protected]>
adisuissa
left a comment
There was a problem hiding this comment.
Thanks, left a couple of nits, but overall LGTM!
Co-authored-by: Adi (Suissa) Peleg <[email protected]> Signed-off-by: asheryer <[email protected]>
Signed-off-by: asheryer <[email protected]>
adisuissa
left a comment
There was a problem hiding this comment.
LGTM, small nit on the docs, but other than that it is good to go.
Thanks for adding this feature!
/wait
|
|
||
| * data plane: fixing error handling where writing to a socket failed while under the stack of processing. This should genreally affect HTTP/3. This behavioral change can be reverted by setting ``envoy.reloadable_features.allow_upstream_inline_write`` to false. | ||
| * eds: fix the eds cluster update by allowing update on the locality of the cluster endpoints. This behavioral change can be temporarily reverted by setting runtime guard ``envoy.reloadable_features.support_locality_update_on_eds_cluster_endpoints`` to false. | ||
| * outlier_detection: :ref:`max_ejection_time_jitter<envoy_v3_api_field_config.cluster.v3.OutlierDetection.base_ejection_time>` configuration added to allow adding a random value to the ejection time to prevent 'thundering herd' scenarios. Defaults to 0 so as to not break or change the behavior of existing deployments. |
There was a problem hiding this comment.
nit: Let's move this down to New Features section.
There was a problem hiding this comment.
@adisuissa Thanks for the time and effort you spent reviewing this feature!
|
/lgtm api |
|
Retrying Azure Pipelines: |
Signed-off-by: asheryer <[email protected]>
|
LGTM changes. |
|
Retrying Azure Pipelines: |
|
Retesting doesn't work. |
Signed-off-by: asheryer <[email protected]>
|
CI verify-examples seems to be flaky (not related to this PR) |
|
Retrying Azure Pipelines: |
|
@mattklein123 this PR LGTM, if you'd like to take a final look. |
|
The verify-examples issue should be fixed after #20038. |
|
Thanks for your patience! |
Signed-off-by: asheryer [email protected]
Commit Message: This commit adds a configuration that allows you to add a random jitter to the ejection time of outliers
Additional Description: This feature is aimed at preventing connection storms where thousands of hosts are unejected
at the same time. Specifically, we have seen this issue in AWS where thousands of Envoys are connected to a Redis node and are all unejected at the same time. This creates a 'connection storm' and overwhelms the redis-server. The default value of the jitter is zero. This makes it backward compatible and will not break
existing deployments. The configuration allows you to define a maximum jitter value. For example, if you set the
maximum jitter value to 10s, a random value between 0s and 10s will be added to the ejection time of every host,
thus preventing them from possibly all being unejected at the same time.
Risk Level: Low
Testing: Has been tested with a redis cluster with several dozen envoys connected to it. Coverage tests performed
as well. Has also been tested with Envoy running on Docker. We also tested the default behaviour where the configuration is not present, in this scenario the max_jitter defaults to 0, and everything behaves exactly as it did before.
Docs Changes:
Inline documentation in api/envoy/config/cluster/v3/outlier_detection.proto
Documentation added to docs/root/configuration/upstream/cluster_manager/cluster_runtime.rst
Release Notes:
Listed the change in docs/root/version_history/current.rst
Platform Specific Features: N/A
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]