Skip to content

RATIS-2486. Add detailed zero-copy metrics for gRPC message types and fallback tracking.#1417

Draft
slfan1989 wants to merge 1 commit intoapache:RATIS-1931_grpc-zero-copyfrom
slfan1989:RATIS-2486
Draft

RATIS-2486. Add detailed zero-copy metrics for gRPC message types and fallback tracking.#1417
slfan1989 wants to merge 1 commit intoapache:RATIS-1931_grpc-zero-copyfrom
slfan1989:RATIS-2486

Conversation

@slfan1989
Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

This PR enhances ZeroCopyMetrics with detailed observability for gRPC zero-copy message processing:

  1. Per-message-type counters: Added separate metrics to track zero-copy usage for AppendEntries, InstallSnapshot, and ClientRequest messages
  2. Performance metrics: Added bytes_saved_by_zero_copy and zero_copy_parse_time_nanos to quantify zero-copy benefits
  3. Fallback diagnostics: Added counters for each fallback reason (not_known_length, not_detachable, not_byte_buffer) to help diagnose zero-copy compatibility issues
  4. InstallSnapshot support: Extended zero-copy marshalling to InstallSnapshot requests in GrpcServerProtocolService

What is the link to the Apache JIRA

RATIS-2486. Add detailed zero-copy metrics for gRPC message types and fallback tracking.

How was this patch tested?

  • Existing unit tests pass

@slfan1989 slfan1989 marked this pull request as draft April 1, 2026 03: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.

1 participant