suninuni commented on issue #7949:
URL: https://github.com/apache/apisix/issues/7949#issuecomment-1301597993

   > The latest prometheus lib would make use of the lru characteristic of the 
shared dict to evict the oldest keys, so no need to worry about it.
   
   I replace the latest prometheus lib files 
(`/usr/local/apisix/deps/share/lua/5.1/prometheus.lua` `prometheus_keys.lua` 
`prometheus_resty_counter.lua`) in apisix 2.15.0 image from 
https://github.com/knyar/nginx-lua-prometheus master branch.
   
   But when the lua_shared_dict(10m for prometheus-metrics) is used up, there 
whill still have errors like `*27324521 [lua] prometheus.lua:953: log_error(): 
Unexpected error adding a key: no memory while logging request,`. It looks like 
prometheus lib doesn't evict the oldest keys.
   


-- 
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]

Reply via email to