onestraw / vagrant-nginx-keepalived

Demo of Nginx high availability using Keepalived and Vagrant

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vagrant-nginx-keepalived

Demo of Nginx high availability using Vagrant

Prerequisites

  1. Install Vagrant
  2. Install Virtualbox
  3. Clone this repo with git clone https://github.com/onestraw/vagrant-nginx-keepalived.git

指在一个高可用(HA)系统中,当联系着的两个节点断开联系时,本来为一个整体的系统,分裂为两个独立节点,这时两个节点开始争抢共享资源,结果会导致系统混乱,数据损坏。

对于无状态服务的HA,无所谓脑裂不脑裂;但对有状态服务(比如MySQL)的HA,必须要严格防止脑裂。(但有些生产环境下的系统按照无状态服务HA的那一套去配置有状态服务,结果可想而知...)

Reference material

About

Demo of Nginx high availability using Keepalived and Vagrant

License:MIT License


Languages

Language:Shell 68.1%Language:Ruby 21.7%Language:Makefile 10.2%