Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

etcd key太多无法列出 #5

Open
huweihuang opened this issue Dec 13, 2018 · 4 comments
Open

etcd key太多无法列出 #5

huweihuang opened this issue Dec 13, 2018 · 4 comments
Assignees
Labels

Comments

@huweihuang
Copy link

具体报错信息如下:

time="2018-12-13T09:56:36Z" level=error msg="Failed to list keys from etcd, because of rpc error: code = ResourceExhausted desc = grpc: received message larger than max (9506813 vs. 4194304)"
@ringtail ringtail added the bug label Dec 14, 2018
@ringtail ringtail self-assigned this Dec 14, 2018
@bydeath
Copy link

bydeath commented Jul 18, 2022

遇到了同样的报错

@ringtail
Copy link
Owner

遇到了同样的报错

目前是直接拉的,还没有做range的能力,有兴趣可以看下

@bydeath
Copy link

bydeath commented Jul 22, 2022

https://etcd.io/docs/v3.1/upgrades/upgrade_3_3/#change-in-maximum-request-size-limits
不知道客户端设置这个参数是否可以解决呢?比如客户端设置如下:

cfg := embed.NewConfig()
cfg.MaxRequestBytes = 4194304

@ringtail
Copy link
Owner

https://etcd.io/docs/v3.1/upgrades/upgrade_3_3/#change-in-maximum-request-size-limits 不知道客户端设置这个参数是否可以解决呢?比如客户端设置如下:

cfg := embed.NewConfig()
cfg.MaxRequestBytes = 4194304

可以尝试试下,这里我没有试验过,早期的etcd好像没有这个参数,这个应该也是新加入的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants