It’s not uncommon that one of two Application Servers breaks and you need to manually edit config on the Application Client to point to the other Application Server.
To enable automatic failover switching we will setup a Proxy Server. In later tests we will examine how Proxy Server affects the delay.
Start out by downloading a MySQL Proxy.
// Install needed libraries
mgm1: #apt-get install libevent-dev pkg-config liblua5.1-dev libglib2.0-0 libglib2.0-dev libmysqlclient-dev |
In the end we’ll have:
// Preparing the server
// Append to /etc/hosts on every machine
192.168.1.108 mgm2 # second Management Server |
// Preparing the server
// Append to /etc/hosts on every machine
192.168.1.109 app2 # second Application Server |
// Login to app2 server and extract files (see previous post)
app2: # tar xzf mysql.tgz -C /usr/local/mysql |
To start we will have the following machines:
// Copy mysql.tgz to each machine (see previous post)
(more…)