Skip to content

A simple load balancer with Vagrant + NGINX + Tornado + MySQL

Notifications You must be signed in to change notification settings

guilhermetoti-luizalabs/load-balancer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Load Balancer

This is a very simple load balancer with Vagrant + NGINX + Tornado + MySQL

How to use

  1. Clone this repository into some folder
  2. Open console, go to this folder and type vagrant up

After that you need to SSH every machine and:

  1. In console: cd /vagrant
  2. Then run python main.py to start the tornado server
  3. Type exit to leave SSH

So you can access from 192.168.50.5 and the load balancer will be working! ;) The machines balanced is on ip range 192.168.50.{1,3}0.

MySQL

The MySQL machine is serving on ip 192.168.50.100 with one database called app_db, user remoto and password 123.

About

A simple load balancer with Vagrant + NGINX + Tornado + MySQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%