Skip to content

Latest commit

 

History

History
33 lines (17 loc) · 943 Bytes

README.md

File metadata and controls

33 lines (17 loc) · 943 Bytes

Simple web app claster powered by serf

How to

Clone this repo

$ git clone [email protected]:kryachkov/web-app-cluster-demo.git

Set it up with Vagrant

$ vagrant up

Open http://192.168.33.10 in your browser and see that load balancer proxies your request to app.

app_works_ok

Bring db node down

$ vagrant halt db

Hit http://192.168.33.10 and see the fancy maintenance node page

maintenance_mode

Bring db node up again

$ vagrant up db

Hit http://192.168.33.10 again and see response from app node

app_works_ok

This is an extremely simple demonstration of one of many things that can be done using Hashicop's Serf