From 7b39ce4112a464f5e81be39dcb608fc73e98073f Mon Sep 17 00:00:00 2001 From: An Tran Date: Mon, 8 Apr 2024 10:33:38 +1000 Subject: [PATCH] [chore] Remove unused shared dict --- gateway/http.d/init.conf | 2 -- gateway/http.d/shdict.conf | 2 -- t/prometheus-metrics.t | 6 ------ 3 files changed, 10 deletions(-) diff --git a/gateway/http.d/init.conf b/gateway/http.d/init.conf index aeb5821d1..55a8764ce 100644 --- a/gateway/http.d/init.conf +++ b/gateway/http.d/init.conf @@ -104,5 +104,3 @@ init_worker_by_lua_block { require('apicast.executor'):init_worker() } - -lua_shared_dict init 256k; diff --git a/gateway/http.d/shdict.conf b/gateway/http.d/shdict.conf index 9bb314143..ba0901d57 100644 --- a/gateway/http.d/shdict.conf +++ b/gateway/http.d/shdict.conf @@ -1,7 +1,5 @@ lua_shared_dict api_keys 30m; lua_shared_dict rate_limit_headers 20m; -lua_shared_dict configuration 10m; -lua_shared_dict locks 1m; lua_shared_dict limiter 1m; # This shared dictionaries are only used in the 3scale batcher policy. diff --git a/t/prometheus-metrics.t b/t/prometheus-metrics.t index 5e660b3a4..aca2dc2bb 100644 --- a/t/prometheus-metrics.t +++ b/t/prometheus-metrics.t @@ -36,10 +36,7 @@ openresty_shdict_capacity{dict="api_keys"} 31457280 openresty_shdict_capacity{dict="batched_reports"} 20971520 openresty_shdict_capacity{dict="batched_reports_locks"} 1048576 openresty_shdict_capacity{dict="cached_auths"} 20971520 -openresty_shdict_capacity{dict="configuration"} 10485760 -openresty_shdict_capacity{dict="init"} 262144 openresty_shdict_capacity{dict="limiter"} 1048576 -openresty_shdict_capacity{dict="locks"} 1048576 openresty_shdict_capacity{dict="prometheus_metrics"} 16777216 openresty_shdict_capacity{dict="rate_limit_headers"} 20971520 # HELP openresty_shdict_free_space OpenResty shared dictionary free space @@ -48,10 +45,7 @@ openresty_shdict_free_space{dict="api_keys"} 31264768 openresty_shdict_free_space{dict="batched_reports"} 20840448 openresty_shdict_free_space{dict="batched_reports_locks"} 1032192 openresty_shdict_free_space{dict="cached_auths"} 20840448 -openresty_shdict_free_space{dict="configuration"} 10412032 -openresty_shdict_free_space{dict="init"} 249856 openresty_shdict_free_space{dict="limiter"} 1032192 -openresty_shdict_free_space{dict="locks"} 1032192 openresty_shdict_free_space{dict="prometheus_metrics"} 16662528 openresty_shdict_free_space{dict="rate_limit_headers"} 20840448 # HELP worker_process Number of times that a nginx worker has been started