You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/03/24 06:05:39 UTC

[GitHub] [apisix] liuning89757 opened a new issue #6704: help request: Is it possible to add another listen port without breaking the existing long-running connections?

liuning89757 opened a new issue #6704:
URL: https://github.com/apache/apisix/issues/6704


   ### Description
   
   I would like to use Apisix as a loadbalancer, but find out Admin API not provide a function to add a listen port dynamic, so i have to modify Apisix config file like: 
   ```
   apisix:
     stream_proxy: # TCP/UDP proxy
       tcp: # add another TCP proxy address list
         - 9100
   ```
   It works out but after execute  `apisix reload`, the long-runing connection will be killed because `worker_shutdown_timeout 240s;` is set in nginx.conf. So  i suppose to know is there another approach to dynamic add listening port without effect already existing connections?Or is  it technical possible to dynamic add port just like add a route using Admin API?
   
   ### Environment
   
   - APISIX version (run `apisix version`): 2.12.1
   - Operating system (run `uname -a`): centos 7.6
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`): 1.19.9.1
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] liuning89757 commented on issue #6704: help request: Is it possible to add another listen port without breaking the existing long-running connections?

Posted by GitBox <gi...@apache.org>.
liuning89757 commented on issue #6704:
URL: https://github.com/apache/apisix/issues/6704#issuecomment-1077294044


   Alright, according to https://github.com/openresty/openresty/issues/644 , maybe it is not possible.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] tokers commented on issue #6704: help request: Is it possible to add another listen port without breaking the existing long-running connections?

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #6704:
URL: https://github.com/apache/apisix/issues/6704#issuecomment-1077390763


   Right, currently, you have to restart the APISIX service, and old worker processes will quit ultimately, for long-running connections, will be closed after the `worker_shutdown_timeout`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] liuning89757 closed issue #6704: help request: Is it possible to add another listen port without breaking the existing long-running connections?

Posted by GitBox <gi...@apache.org>.
liuning89757 closed issue #6704:
URL: https://github.com/apache/apisix/issues/6704


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] liuning89757 commented on issue #6704: help request: Is it possible to add another listen port without breaking the existing long-running connections?

Posted by GitBox <gi...@apache.org>.
liuning89757 commented on issue #6704:
URL: https://github.com/apache/apisix/issues/6704#issuecomment-1078572737


   ok, thanks for the reply. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org