Skip to content

Ext proc optimization#29527

Merged
ggreenway merged 4 commits intoenvoyproxy:mainfrom
DiazAlan:ExtProcOptimization
Sep 11, 2023
Merged

Ext proc optimization#29527
ggreenway merged 4 commits intoenvoyproxy:mainfrom
DiazAlan:ExtProcOptimization

Conversation

@DiazAlan
Copy link
Copy Markdown
Contributor

@DiazAlan DiazAlan commented Sep 8, 2023

Commit Message: Change API call on ext_proc to more efficient new implementation
Additional Description: Following the PR #29199, we are replacing the API call in ext_proc so it's not hashing the whole proto on each request.

AlanDiaz added 2 commits September 8, 2023 15:12
Signed-off-by: AlanDiaz <diazalan@google.com>
Signed-off-by: AlanDiaz <diazalan@google.com>
@repokitteh-read-only
Copy link
Copy Markdown

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #29527 was opened by DiazAlan.

see: more, trace.

Signed-off-by: AlanDiaz <diazalan@google.com>
@DiazAlan DiazAlan marked this pull request as ready for review September 11, 2023 13:31
@DiazAlan
Copy link
Copy Markdown
Contributor Author

@ggreenway This is another PR to continue moving over filters to the new getOrCreateRawAsyncClient method.

Copy link
Copy Markdown
Member

@ggreenway ggreenway left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few nits, but looks good overall

/wait


const envoy::config::core::v3::GrpcService& config() const { return config_; }

void mergeConfig(const envoy::config::core::v3::GrpcService g) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
void mergeConfig(const envoy::config::core::v3::GrpcService g) {
void setConfig(const envoy::config::core::v3::GrpcService g) {

Or maybe updateConfig?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed it to setConfig because I feel like that fits the use case better than update.


class GrpcServiceConfigWithHashKey {
public:
GrpcServiceConfigWithHashKey(){};
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
GrpcServiceConfigWithHashKey(){};
GrpcServiceConfigWithHashKey() = default;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@ggreenway ggreenway self-assigned this Sep 11, 2023
Signed-off-by: AlanDiaz <diazalan@google.com>
@ggreenway ggreenway enabled auto-merge (squash) September 11, 2023 16:31
@ggreenway ggreenway merged commit 9e106e5 into envoyproxy:main Sep 11, 2023
const envoy::config::core::v3::GrpcService& grpc_service)
: config_(config), client_(std::move(client)), stats_(config->stats()),
grpc_service_(grpc_service), decoding_state_(*this, config->processingMode()),
grpc_service_(grpc_service), config_with_hash_key_(grpc_service),
Copy link
Copy Markdown
Member

@tyxia tyxia Nov 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DiazAlan grpc_service_ seems to be replaced by config_with_hash_key_, more specifically config_with_hash_key_.config().

Then it can be removed?

(Just noticed this when I am currently looking at ext_proc client)

ashishb-90 pushed a commit to solo-io/envoy-fork that referenced this pull request Nov 30, 2023
Change API call on ext_proc to more efficient new implementation. Following the PR envoyproxy#29199, we are replacing the API call in ext_proc so it's not hashing the whole config proto on each request.

Signed-off-by: AlanDiaz <diazalan@google.com>
ashishb-90 pushed a commit to solo-io/envoy-fork that referenced this pull request Nov 30, 2023
Change API call on ext_proc to more efficient new implementation. Following the PR envoyproxy#29199, we are replacing the API call in ext_proc so it's not hashing the whole config proto on each request.

Signed-off-by: AlanDiaz <diazalan@google.com>
@DiazAlan DiazAlan deleted the ExtProcOptimization branch February 5, 2024 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants