Skip to content

Commit

Permalink
[#10693] enable grpc built-in retry by default
Browse files Browse the repository at this point in the history
  • Loading branch information
donghun-cho committed Aug 12, 2024
1 parent 3215895 commit 88112ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion agent-module/agent/src/main/resources/pinpoint-root.config
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ profiler.transport.grpc.metadata.ssl.enable=false
profiler.transport.grpc.metadata.sender.executor.queue.size=1000
profiler.transport.grpc.metadata.sender.channel.executor.queue.size=1000
profiler.transport.grpc.metadata.sender.request.timeout.millis=6000
# This configuration is used only if profiler.transport.grpc.metadata.sender.retry.enable=false
profiler.transport.grpc.metadata.sender.retry.max.count=3
# This configuration is used only if profiler.transport.grpc.metadata.sender.retry.enable=false
profiler.transport.grpc.metadata.sender.retry.delay.millis=1000
profiler.transport.grpc.metadata.sender.keepalive.time.millis=30000
profiler.transport.grpc.metadata.sender.keepalive.timeout.millis=60000
Expand Down Expand Up @@ -134,7 +136,7 @@ profiler.system.property.io.netty.noPreferDirect=false

# Enable Grpc Hedging Policy
# https://github.com/grpc/proposal/blob/master/A6-client-retries.md#hedging-policy
profiler.transport.grpc.metadata.sender.retry.enable=false
profiler.transport.grpc.metadata.sender.retry.enable=true
profiler.transport.grpc.metadata.sender.max.attempts=3
profiler.transport.grpc.metadata.sender.hedging.delay.millis=1000
# 16777216 = 64m
Expand Down
2 changes: 1 addition & 1 deletion grpc/src/main/java/com/navercorp/pinpoint/grpc/Header.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public String toString() {
", socketId=" + socketId +
", serviceType=" + serviceType +
", supportCommandCodeList=" + supportCommandCodeList +
", retryFriendlyResponse='" + grpcBuiltInRetry + '\'' +
", grpcBuiltInRetry='" + grpcBuiltInRetry + '\'' +
", properties=" + properties +
'}';
}
Expand Down

0 comments on commit 88112ea

Please sign in to comment.