Answer the question
In order to leave comments, you need to log in
Can Nginx add upstream dynamically?
Greetings comrades.
Tell me, does Nginx or its brother Nginx+ have the ability to add upstream on the fly without restarting the service?
There is a wild need to do this, and judging by the Nginx + documentation, it can only add servers to an already created upstream.
Answer the question
In order to leave comments, you need to log in
You can use the consul + consul template bundle, you can throw the address and port of the new upstream into the consul, consul-template sees this, rolls out a new config according to the template and reloads nginx.
Doka https://github.com/hashicorp/consul-template
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question