-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
bug: config_etcd.lua:100: readdir(): grpc: received message larger than max (4236894 vs. 4194304) #3073
Comments
this is the limit of the response body for etcd, and the related parameter take a look at etcd-io/etcd#9043 |
About Iterate over the routes' data, Can it be handled like this: $keys = |
this error is generated by etcd, first you should change the limits of etcd, but I don't know how to change it by lua. |
It seems to me there is no way to configure it via HTTP. I have submitted an issue: etcd-io/etcd#12576 |
Fixed by etcd-io/etcd#13077 which is included in the https://github.com/etcd-io/etcd/releases/tag/v3.5.0 |
Issue description
[error] 13264#13264: *108 [lua] config_etcd.lua:448: failed to fetch data from etcd: /home/admin/apisix-2.0/apisix/core/etcd.lua:84: attempt to index field 'header' (a nil value)
stack traceback:
/home/admin/apisix-2.0/apisix/core/etcd.lua:84: in function 'get_format'
/home/admin/apisix-2.0/apisix/core/config_etcd.lua:98: in function 'readdir'
/home/admin/apisix-2.0/apisix/core/config_etcd.lua:176: in function 'sync_data'
/home/admin/apisix-2.0/apisix/core/config_etcd.lua:424: in function </home/admin/apisix-2.0/apisix/core/config_etcd.lua:414>
[C]: in function 'xpcall'
/home/admin/apisix-2.0/apisix/core/config_etcd.lua:414: in function </home/admin/apisix-2.0/apisix/core/config_etcd.lua:405>, etcd key: /apisix/routes, context: ngx.timer
Environment
Minimal test code / Steps to reproduce the issue
1、debug : config_etcd.lua:100: readdir(): -=-=-=-=-={"code":8,"error":"grpc: received message larger than max (4236894 vs. 4194304)","message":"grpc: received message larger than max (4236894 vs. 4194304)"}, context: ngx.timer
What's the actual result? (including assertion message & call stack if applicable)
1、The amount of data on the "/apisix/routes" is too large, We really need so much data.
What's the expected result?
The text was updated successfully, but these errors were encountered: