help request: Will modifying the initial configuration of lua-resty-events max_payload_len to 2M have any impact on the robustness of the apisix service? #11049
I encountered the following error when configuring the apisix production environment:
2024/03/08 18:40:39 [error] 14173#14173: *1337 [lua] init.lua:521: post_event failure with discovery_consul_update_all_services, update all services error: failed to publish event: payload exceeds the limitation (65536), context: ngx.timer
After tracing the source code, I found that the default limit of lua-resty-events is 64K. I use consul as the service discovery. The all service list dump file is approximately 80K.
/usr/local/apisix/apisix/events.lua local opts increase max_payload_len = 1024 1024 2
I want to know whether this modification has any impact on the stability of apisix service
Environment
APISIX version (run apisix version): 3.8.0
Operating system (run uname -a):Linux apisix-01 3.10.0-1160.88.1.el7.x86_64 #1 SMP Tue Mar 7 15:41:52 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
OpenResty / Nginx version (run openresty -V or nginx -V): nginx version: openresty/1.21.4.2
etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info):3.5.0
Description
I encountered the following error when configuring the apisix production environment: 2024/03/08 18:40:39 [error] 14173#14173: *1337 [lua] init.lua:521: post_event failure with discovery_consul_update_all_services, update all services error: failed to publish event: payload exceeds the limitation (65536), context: ngx.timer
After tracing the source code, I found that the default limit of lua-resty-events is 64K. I use consul as the service discovery. The all service list dump file is approximately 80K. /usr/local/apisix/apisix/events.lua local opts increase max_payload_len = 1024 1024 2 I want to know whether this modification has any impact on the stability of apisix service
Environment
apisix version
): 3.8.0uname -a
):Linux apisix-01 3.10.0-1160.88.1.el7.x86_64 #1 SMP Tue Mar 7 15:41:52 UTC 2023 x86_64 x86_64 x86_64 GNU/Linuxopenresty -V
ornginx -V
): nginx version: openresty/1.21.4.2curl http://127.0.0.1:9090/v1/server_info
):3.5.0