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

后端 未结 8 1846
旧巷少年郎
旧巷少年郎 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.

提交回复
热议问题