Nginx技术研究系列7-Azure环境中Nginx高可用性和部署架构设计

前几篇文章介绍了Nginx的应用、动态路由、配置。在实际生产环境部署时,我们需要同时考虑Nginx的高可用性和部署架构。

Nginx自身不支持集群以保证自身的高可用性,商业版本的Nginx+推荐:

The NGINX Plus high-availability solution is based on keepalived,which itself uses an implementation of the Virtual Router Redundancy Protocol (VRRP).

在Azure云端环境中,我们应该怎么部署Nginx?

The HA solution based on keepalived is not supported for NGINX Plus on Microsoft Azure and Google Cloud Platform (GCP) deployments. You can use their native load balancers as a front-end high-availability solution for NGINX Plus.

Azure中使用NLB实现Nginx的高可用性。

Azure中其实提供了两种负载均衡策略:NLB和ILB,前者是外网的负载均衡,ILB是局域网内部的负载均衡。

部署架构:

1. 部署多个Nginx节点,作为高可用性集群

2.基于Azure的NLB实现Nginx集群的负载均衡和高可用性

3.通过Nginx反向代理到内部的ILB负载均衡集群,实现请求的转发。

 

上面的架构即在Azure环境下Nginx的高可用性和部署架构设计。分享给大家,同时欢迎大家提出宝贵的建议。

 

周国庆

2017/10/27

相关文章

Microsoft云包括了Azure、PowerPlatform、Microsoft365、Git...
《WindowsAzurePlatform系列文章目录》 我们在使用AzureAPI...
微软免费使用一年的Azure虚拟机,默认提供了一个64G的磁盘,...
上篇请访问这里做一个能对标阿里云的前端APM工具(上)样本多...
一年一度的MicrosoftBuild终于来了,带来了非常非常多的新技...