crazyMonkey1995 opened a new issue, #7211: URL: https://github.com/apache/apisix/issues/7211
### Current Behavior At present, we have enabled the prometheus plugin. Since we have more routes (4000+), the size of the lua share dict of prometheus is 512M (larger). When the amount of data becomes larger, prometheus.export_metrics() will cause the cpu-usage of one worker process very hight, and requests on this worker process will be greatly affected.  Maybe there is some way to separate the worker process of internal server (such as admin and prometheus) and the actual business server? ### Expected Behavior - ### Error Logs - ### Steps to Reproduce 1. enable prometheus plugin 2. maybe set lua share dict of prometheus to 512m 3. increase prometheus data(by send many request?) 4. curl the metric url ### Environment - APISIX version (run `apisix version`): - Operating system (run `uname -a`): - OpenResty / Nginx version (run `openresty -V` or `nginx -V`): - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`): - APISIX Dashboard version, if relevant: - Plugin runner version, for issues related to plugin runners: - LuaRocks version, for installation issues (run `luarocks --version`): -- 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]
