apache / apisix

The Cloud-Native API Gateway
https://apisix.apache.org/blog/
Apache License 2.0
13.96k stars 2.45k forks source link

why the promethues metrics apisix_shared_dict_free_space_bytes{name="worker-events"} 0 #11345

Open kellyseeme opened 3 weeks ago

kellyseeme commented 3 weeks ago

Description

in apisix running pod,curl the metrics , the result is apisix_shared_dict_free_space_bytes{name="worker-events"} 0 ,why this happen and have anything can i do? in apisix config.yaml setting worker-events: 10m, and in lua_shared_dict which memory should i increase the memory size?

Environment

shreemaan-abhishek commented 3 weeks ago

why this happen and have anything can i do?

This is the first time I have seen someone report such incident. Does this situation keep occuring? Can it be reproduced?

in apisix config.yaml setting worker-events: 10m

yes you can increase this size.

kellyseeme commented 3 weeks ago

and maybe this methis is apisix_shared_dict_free_space_bytes{name="prometheus-metrics"} 0 too; reproduced: 1 the apisix pod running 250days; 2 the upstream use consul,the metrics label change everyday.