Is there any way to configure nginx (or other quick reverse proxy) dynamically?

后端 未结 8 1844
旧巷少年郎
旧巷少年郎 2021-02-04 02:12

Suppose we have several identical nodes which are the application servers of some n-tier service. And suppose we use Apache ZooKeeper to keep all the config\'s of our distribute

相关标签:
8条回答
  • 2021-02-04 03:07

    Not sure that it is possible to dynamicaly change nginx configuration without restarting a server.

    If I had a same requirement I'd probably dug into nodejs and zookeeper integration.

    There are several interesting opensource projects:

    node-zookeeper integrates nodejs with zookeeper;

    node-http-proxy proxy http server that can be used for load balancing.

    Of course they lack maturity but they might be interesting for you.

    0 讨论(0)
  • 2021-02-04 03:08

    This may be late but if you have the money. Nginx plus is exactly for you. It uses a simple url call to get new configurations on the fly.

    0 讨论(0)
提交回复
热议问题