Haproxy for Dev
At work we have 1 ip address and many web services to run (ticket management, a wiki, a small army of dev and qa installs of our application, etc). Our solution has been to use dns names when the thing...
View ArticleHaproxy for dev: Part 2
Yesterday I wrote an article that mostly explained how to install and configure haproxy. Today I want to describe the specific solution I’ve come up with for handling a development environment with...
View ArticlePuppet push deployments using pdsh and Jenkins
Drops at 14:00 and 15:00. For a long time puppet apply lines were added to server crontab files and we were content with the trade-off between timely updates and server resources used. More recently,...
View ArticleThings I’ve learned about MySQL slave replication this holiday weekend.
An hour before I was going to leave work for the long holiday weekend I broke replication to a MySQL slave database. Go see fireworks? No thanks, I’ve made my own. The first thing I’ve learned is that...
View ArticleGetting SSL to work with HAProxy 1.4
Recently, I needed to add https support to our dev installs of our web app. The app itself needed to know it was using https, to generate proper urls and the like, so terminating the ssl connection at...
View ArticleFun with Puppet’s defined function.
I just spent an embarrassing amount of time trying to figure out why some resources in one of my puppet class where not being executed. All of these were inside of an if branch that was checking if...
View ArticleHA MySQL
With the reliance most web apps place on databases making sure they are always available is important for improving your reliability. I consider MySQL to be finicky (a manual master to slave fail-over...
View ArticleMinimal HTTP Health Check
We, being the company I work for, recently set up a mysql galera cluster and haproxy to load balance connections between the nodes. Haproxy has a mysql health check, but it only logs into the server,...
View Article