This is an automated email from the ASF dual-hosted git repository.
ashishtiwari pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new eeb432fbb fix: port conflict in worker process for prometheus port
(#12667)
eeb432fbb is described below
commit eeb432fbb09498fe1b8cfd9876fb09f894863167
Author: Ashish Tiwari <[email protected]>
AuthorDate: Tue Oct 14 12:50:21 2025 +0530
fix: port conflict in worker process for prometheus port (#12667)
---
apisix/cli/ngx_tpl.lua | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/apisix/cli/ngx_tpl.lua b/apisix/cli/ngx_tpl.lua
index 18b77fd3c..bfca1ccba 100644
--- a/apisix/cli/ngx_tpl.lua
+++ b/apisix/cli/ngx_tpl.lua
@@ -105,7 +105,7 @@ http {
}
server {
- listen {* prometheus_server_addr *};
+ listen {* prometheus_server_addr *} reuseport;
access_log off;
@@ -578,7 +578,7 @@ http {
{% if enabled_plugins["prometheus"] and prometheus_server_addr then %}
server {
- listen {* prometheus_server_addr *};
+ listen {* prometheus_server_addr *} reuseport;
access_log off;