Skip to content

Is there a way to config the maximum number of keys the server is allowed to return in the Range API call? #14808

Answered by lavacat
wnwaynelee asked this question in Q&A
Discussion options

You must be logged in to vote

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

Currently the maxSendBytes is hard coded as math.MaxInt32. We may add a configuration item MaxSendMsgSize into embed.Config, and defaults to math.MaxInt32.

FYI, client-side you can use MaxCallRecvMsgSize to limit response.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wnwaynelee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants