简体   繁体   English

nginx反向代理多个后端多个进程

[英]nginx reverse proxy multiple backends multiple processes

I read the postings from this entry . 我从此条目中阅读了帖子。 I'm wondering if there is a way to run multiple instances in different processes? 我想知道是否有一种方法可以在不同的进程中运行多个实例? Because when I understand it right, running all instances in the same configuration file will create a common master and several worker processes. 因为当我理解正确时,在同一配置文件中运行所有实例将创建一个公共的主服务器和几个工作进程。 If the master process dies then all instances die at the same time. 如果主进程死亡,那么所有实例将同时死亡。

From my perspective it would be better to run them separately, so that each backend system gets its own master. 从我的角度来看,最好分别运行它们,以便每个后端系统都有自己的主服务器。 Do you agree? 你同意吗? How could I achieve that? 我该如何实现?

Thankyou. 谢谢。

I think the better solution is to use a HA Cluster. 我认为更好的解决方案是使用HA群集。 You'll use two master server configured in exactly the same way, and a balancer in front of them. 您将使用以完全相同的方式配置的两个主服务器,并在它们前面使用一个平衡器。

This configuration will hide a possible fault and will work in "reduced" mode. 此配置将隐藏可能的故障,并将在“减少”模式下工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM