Dynamic Upstream server ( add/Remove )

37 views
Skip to first unread message

Canabian

unread,
Oct 25, 2022, 12:28:36 AM10/25/22
to openresty-en
I want to add/remove Dynamic upstream server on realtime 

for example :  I have a two Nginx server ( A ,B ) 

now I want to shut down A on realtime 

a few minutes later I want to turn on A 

With out process reload ! Not using Nginx plus 

Use Only openresty 

Does anybody know answer?
 

xiaoxi mou

unread,
Oct 25, 2022, 5:32:16 AM10/25/22
to openresty-en
You can use module  [lua-upstream-nginx-module](https://github.com/openresty/lua-upstream-nginx-module) to achieve your goal.
Reply all
Reply to author
Forward
0 new messages