envoy icon indicating copy to clipboard operation
envoy copied to clipboard

API to support sampling behavior in xDS matcher

Open yanjunxiang-google opened this issue 1 year ago • 3 comments

This is the API change for issue: https://github.com/envoyproxy/envoy/issues/30147.

Adding a skip_percentage in the Matcher proto to control how much percentage of traffic will go to ext_proc or logging server after matching condition is met.

The name of the configuration is skip_percentage not sampling_percentage as by default skip_percentage is zero. sampling_percentage = 1 - skip_percentage.

Commit Message: Additional Description: Risk Level: Testing: Docs Changes: Release Notes: Platform Specific Features: [Optional Runtime guard:] [Optional Fixes #Issue] [Optional Fixes commit #PR or SHA] [Optional Deprecated:] [Optional API Considerations:]

yanjunxiang-google avatar May 23 '24 18:05 yanjunxiang-google

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

:cat:

Caused by: https://github.com/envoyproxy/envoy/pull/34325 was opened by yanjunxiang-google.

see: more, trace.

/assign @htuch @rshriram @kyessenov

yanjunxiang-google avatar May 23 '24 19:05 yanjunxiang-google

/wait (for CI to be green)

jmarantz avatar May 30 '24 16:05 jmarantz

/assign @yanavlasov @tyxia

yanjunxiang-google avatar Jun 09 '24 12:06 yanjunxiang-google

For reviewers, the complete prototyping of the solution is: https://github.com/envoyproxy/envoy/pull/34611.

yanjunxiang-google avatar Jun 10 '24 12:06 yanjunxiang-google

There is ongoing discussion internally on the direction of this PR. We can start the review once that is settled.

BTW, @yanjunxiang-google should we just review https://github.com/envoyproxy/envoy/pull/34611, which has complete picture of this feature. I don't have strong opinion though

tyxia avatar Jun 11 '24 12:06 tyxia

There is ongoing discussion internally on the direction of this PR. We can start the review once that is settled.

BTW, @yanjunxiang-google should we just review #34611, which has complete picture of this feature. I don't have strong opinion though.

I am fine either to review the API separately or review the entire solution as a whole. Review the API separately has the benefit to focus on the API and get it approved before going into the details of the implementation.

BTW, I think we reached an agreement to go with this approach, right?

yanjunxiang-google avatar Jun 11 '24 14:06 yanjunxiang-google

Noticed https://github.com/envoyproxy/envoy/pull/34611 is being reviewed. Let me close this PR.

yanjunxiang-google avatar Jun 12 '24 18:06 yanjunxiang-google