File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ local _M = {
97
97
[" prometheus-metrics" ] = " 15m" ,
98
98
[" standalone-config" ] = " 10m" ,
99
99
[" status-report" ] = " 1m" ,
100
+ [" balancer-least-conn" ] = " 10m" ,
100
101
}
101
102
},
102
103
stream = {
Original file line number Diff line number Diff line change 73
73
{% if status then %}
74
74
lua_shared_dict status-report {* meta.lua_shared_dict["status-report"] *};
75
75
{% end %}
76
+ {% if enable_stream then %}
77
+ lua_shared_dict balancer-least-conn {* meta.lua_shared_dict["balancer-least-conn"] *};
78
+ {% end %}
76
79
}
77
80
78
81
{% if enabled_stream_plugins["prometheus"] and not enable_http then %}
@@ -284,7 +287,9 @@ http {
284
287
lua_shared_dict balancer-ewma {* http.lua_shared_dict["balancer-ewma"] *};
285
288
lua_shared_dict balancer-ewma-locks {* http.lua_shared_dict["balancer-ewma-locks"] *};
286
289
lua_shared_dict balancer-ewma-last-touched-at {* http.lua_shared_dict["balancer-ewma-last-touched-at"] *};
290
+ {% if not enable_stream then %}
287
291
lua_shared_dict balancer-least-conn {* http.lua_shared_dict["balancer-least-conn"] *};
292
+ {% end %}
288
293
lua_shared_dict etcd-cluster-health-check {* http.lua_shared_dict["etcd-cluster-health-check"] *}; # etcd health check
289
294
290
295
# for discovery shared dict
You can’t perform that action at this time.
0 commit comments