I had an earlier post regarding a basic HAProxy install that will work fine if your site(s) can tolerate some down time should something happen to your server/instance running HAProxy. While this might be acceptable for a personal site, it quickly becomes unacceptable should your business rely on your site being up without interruption. Luckily for you, it’s relatively simple to configure an HA pair of HAProxy load balancers.
This is a basic HAProxy configuration example that should get you up and running with the simplest of setups. This configuration will have the HAProxy Info page listening on 8080 (adjust as needed) with username/password authentication. In addition, it will also look for http://yourip/healthcheck in addition to the TCP 80 HTTP Port Probes. Why is this useful?
Recently, I was somewhat bored and decided to switch from a MySQL 5.1 backend to MySQL 5.5 for my site (of which you have the distinct pleasure of reading). While doing a little Googling, I remembered MariaDB. MariaDB is marketed as “An enhanced, drop-in replacement for MySQL”, so I figured why not give it a shot?
Note: Tested on CentOS 6.x 64 bit
One of the basic tasks every Linux Admin will need to perform at some point or another is setting up a LAMP stack. What is a LAMP stack you say? Keep on reading…