|
62 | 62 | files: |
63 | 63 | - /path/to/client/tls/ca.crt |
64 | 64 |
|
65 | | - # GRPC Server keepalive parameters |
| 65 | + # GRPC Server keepalive parameters. |
| 66 | + # This section can be omitted. |
66 | 67 | keepalive: |
67 | | - # minInterval is the minimum permitted time between client pings. |
68 | | - # If clients send pings more frequently, the peer server will |
69 | | - # disconnect them |
70 | | - # If not specified, default is 60 seconds |
71 | | - minInterval: 60s |
72 | | - # interval is the duration after which if the server does not see |
73 | | - # any activity from the client it pings the client to see if it's alive |
74 | | - # If not specified, default is 2 hours |
75 | | - interval: 300s |
76 | | - # Timeout is the duration the server waits for a response |
77 | | - # from the client after sending a ping before closing the connection |
78 | | - # If not specified, default is 20 seconds |
79 | | - timeout: 600s |
| 68 | + # MaxConnectionIdle: send GOAWAY and gracefully close if connection is idle this long (no RPCs). |
| 69 | + # Format: Go duration string (e.g. "5m", "30s"). Zero/omitted disables. |
| 70 | + max-connection-idle: "5m" |
| 71 | + # MaxConnectionAge: maximum lifetime of a connection before server initiates close to rotate connections. |
| 72 | + # Format: Go duration string. Zero/omitted disables. |
| 73 | + max-connection-age: "2h" |
| 74 | + # MaxConnectionAgeGrace: additional grace period after MaxConnectionAge to allow in-flight RPCs to finish. |
| 75 | + # Format: Go duration string. |
| 76 | + max-connection-age-grace: "5m" |
| 77 | + # Time: server's expectation for how often the client should send keepalive pings. |
| 78 | + # Format: Go duration string. |
| 79 | + time: "2m" |
| 80 | + # Timeout: how long the server waits for a keepalive ping ACK before considering the connection dead. |
| 81 | + # Format: Go duration string. |
| 82 | + timeout: "20s" |
| 83 | + # EnforcementPolicy: maps to keepalive.EnforcementPolicy; may be omitted to disable enforcement. |
| 84 | + enforcement-policy: |
| 85 | + # MinTime: minimum allowed time between client pings; server may close connections that ping more often. |
| 86 | + # Format: Go duration string. |
| 87 | + min-time: "1m" |
| 88 | + # PermitWithoutStream: allow keepalive pings even when there are no active RPC streams. |
| 89 | + # true = permit pings without streams (recommended if clients ping periodically). |
| 90 | + permit-without-stream: true |
80 | 91 |
|
81 | 92 | # ------------------- P2P Configuration ------------------------- |
82 | 93 | p2p: |
@@ -295,14 +306,19 @@ fabric: |
295 | 306 | clientKey: |
296 | 307 | file: /path/to/client.key |
297 | 308 |
|
298 | | - # Client keepalive settings for GRPC |
| 309 | + # Client keepalive settings for GRPC. |
| 310 | + # This section can be omitted. |
299 | 311 | keepalive: |
300 | | - # If not provided, the default is 60 seconds |
301 | | - interval: 60s |
302 | | - # If not provided, the default is 20 seconds |
303 | | - timeout: 600s |
304 | | - # If not provided, the default is 10 seconds |
305 | | - connectionTimeout: 10s |
| 312 | + # Time: how often the client sends keepalive pings to the server. |
| 313 | + # Format: Go duration string (e.g. "30s", "2m"). Zero/omitted disables. |
| 314 | + time: "2m" |
| 315 | + # Timeout: how long the client waits for a keepalive ACK from the server |
| 316 | + # before considering the connection dead. |
| 317 | + # Format: Go duration string. Should be noticeably smaller than `time`. |
| 318 | + timeout: "20s" |
| 319 | + # PermitWithoutStream: allow keepalive pings even when there are no active RPCs. |
| 320 | + # true = permit pings without active streams (recommended for many clients). |
| 321 | + permit-without-stream: true |
306 | 322 |
|
307 | 323 | ordering: |
308 | 324 | # number of retries to attempt to send a transaction to an orderer |
|
0 commit comments