Is there a way to config the maximum number of keys the server is allowed to return in the Range API call? #14808
-
Hi, The Range API (https://etcd.io/docs/v3.4/learning/api/#range) has a limit parameter the caller can specify the maximum number of keys to return. The limit is type int64 and can be set to 0 for unlimited. Is there a way to config an upper limit for the server response similar to –max-txn-ops and –max-request-bytes for request? The intent is to prevent callers from stressing the server. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
No, there is no limit. To be precise it's 2147483647 bytes (MaxInt32 ~2gb). This was mentioned before in #14114. Might be worth adding this setting. cc @ahrtr
FYI, client-side you can use MaxCallRecvMsgSize to limit response. |
Beta Was this translation helpful? Give feedback.
No, there is no limit. To be precise it's 2147483647 bytes (MaxInt32 ~2gb). This was mentioned before in #14114. Might be worth adding this setting. cc @ahrtr
FYI, client-side you can use MaxCallRecvMsgSize to limit response.