azabrha commented on issue #12654: URL: https://github.com/apache/apisix/issues/12654#issuecomment-3392964670
> Hey guys, there’s **no need to modify the lua.init** code. You just need to add a few parameters to the **APISIX configuration** and the **ETCD container variables** to bypass this limitation in a proper, clean way. > > **in APISIX config (config.yaml):** on apisix part: > > ``` > apisix: > . > . > . > > nginx_config: > http: > client_max_body_size: 10m > client_body_buffer_size: 10m > ``` > > on etcd part : > > ``` > etcd: > host: # it's possible to define multiple etcd hosts addresses of the same etcd cluster. > - "http://etcd:2379" # multiple etcd address > prefix: "/apisix" # apisix configurations prefix > timeout: 30 # 30 seconds > grpc: > max_send_msg_size: 10485760 # 10MB (default is 2MB) > max_recv_msg_size: 10485760 # 10MB (default is 2MB) > ``` > > **on ETCD container(e.g : docker-compose.yml):** > > ``` > > etcd: > image: bitnami/etcd:xxx > container_name: etcd > restart: always > volumes: > -.... > -..... > environment: > ... > ... > ... > ... > ETCD_MAX_REQUEST_BYTES: "10485760" > ``` > > …and then bring the containers down and up again (not just restart them): > > ``` > docker compose down && sleep 5 && docker compose up -d > ``` > > …the limitation will be increased. Thanks bro, I’m testing it right now. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
