1. 程式人生 > >Azure環境中Nginx高可用性和部署架構設計

Azure環境中Nginx高可用性和部署架構設計

基於 google ogl soft 可用性 pan googl 環境 keep

前幾篇文章介紹了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

Azure環境中Nginx高可用性和部署架構設計