Skip to content

Support runtime_fraction in the external processing filter  #37326

Closed as not planned
@hochuenw-dd

Description

Similar to the runtime_fraction config in the request_mirror_policies, it'd be nice if we can send only x% of the traffic to the external processing filter.

                - name: envoy.filters.http.ext_proc
                  typed_config:
                    "@type": type.googleapis.com/envoy.extensions.filters.http.ext_proc.v3.ExternalProcessor
                    runtime_fraction:
                      default_value:
                      numerator: 1
                    failure_mode_allow: ...
                    observability_mode: ...
                    processing_mode: ...
                    grpc_service: ...

As a workaround, currently it seems we have to duplicate the virtual host/match to achieve this.

                    - match:
                        prefix: "/"
                        runtime_fraction:
                          runtime_fraction:
                            default_value:
                              numerator: 1
                      route:
                        cluster: cluster1
                      typed_per_filter_config:
                        envoy.filters.http.ext_proc:
                          '@type': type.googleapis.com/envoy.extensions.filters.http.ext_proc.v3.ExtProcPerRoute
                          disabled: false
                    - match:
                        prefix: "/"
                      route:
                        cluster: cluster1
                      typed_per_filter_config:
                        envoy.filters.http.ext_proc:
                          '@type': type.googleapis.com/envoy.extensions.filters.http.ext_proc.v3.ExtProcPerRoute
                          disabled: true

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/ext_procenhancementFeature requests. Not bugs or questions.stalestalebot believes this issue/PR has not been touched recently

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions