apisix-helm-chart icon indicating copy to clipboard operation
apisix-helm-chart copied to clipboard

怎么调整 lua_shared_dict prometheus-metrics

Open jaikewhh166 opened this issue 2 years ago • 5 comments

helm install apisix

chart version : apisix-0.11.0

values.yaml apisix: customLuaSharedDicts:

  • name: prometheus-metrics size: 200m

错误信息: 2022/09/21 13:25:01 [emerg] 1#1: the size 209715200 of shared memory zone "prometheus-metrics" conflicts with already declared size 10485760 in /usr/local/apisix/conf/nginx.conf:147 nginx: [emerg] the size 209715200 of shared memory zone "prometheus-metrics" conflicts with already declared size 10485760 in /usr/local/apisix/conf/nginx.conf:147

jaikewhh166 avatar Sep 21 '22 13:09 jaikewhh166

You cannot tweak the shared memory size and reload APISIX. This is due to the Nginx limitation.

The way to change the size is "hot reload" APISIX, but it's not easy on Kubernetes. Doe this cluster already handle real traffic?

tokers avatar Sep 22 '22 09:09 tokers

Yes, it's already real traffic

jaikewhh166 avatar Sep 22 '22 09:09 jaikewhh166

Wait, how did you execute the reload? In Kubernetes, we don't use "reload" but just create new pods to replace old ones.

tokers avatar Sep 23 '22 01:09 tokers

helm upgrade -install apisix apisix/apisix
--values apisix.nginx.conf.yaml

apisix.nginx.conf.yaml

apisix: customLuaSharedDicts: - name: prometheus-metrics size: 200m

jaikewhh166 avatar Sep 23 '22 02:09 jaikewhh166

I've got the same problem.

joyyir avatar Dec 15 '23 07:12 joyyir