Load Balancing with HAProxy and Apache

Load Balancing with HAProxy and Apache
What you need to know: 1. Familiar with linux text editors 2. Have a basic understanding of load balancing 3. Familiarity with Apache, MySQL, and rsync 4. The ability to create at least 4 virtual machines What does this set-up provide? This set-up will provide you with some very basic failover at the web servers by using a load balancer. Keep in mind I will not be discussing HA at the load balancer level so you will still have a single point of failure with this guide, as it is only intended to provide some fundamental knowledge on how to set-up a replicated and load balanced pair of web...
read more

clipboard hacks – social copypasta

clipboard hacks – social copypasta
Have you ever had someone post you a code snippet, error, log data or some other type of long formatted text via an instant message or otherwise? It usually comes out all jacked up, formatting is off and its hard to read. If you have experienced this and find it annoying, then this script may be what you are looking for. Pastebin is a great alternative, however if you need privacy or security of the data you are sending is a concern, then that is not the best option. So what does it do? Its pretty simple really. You highlight text, hit your hot key and paste a link that’s hidden away from the...
read more

Coding for the cloud part 2 – Are you a good fit?

Coding for the cloud part 2 – Are you a good fit?
This article is a follow up to my original called “Coding for the Cloud” which focused on a broad range of topics and provided a high level overview of how to use the cloud by scaling your application in a linear fashion rather than relying on heavy duty hardware to power your servers. This article is going to focus on figuring out if your application is a good fit for the cloud or if it should remain on a dedicated hardware solution such as Co-location, Managed Dedicated Servers, or Unmanaged Dedicated Server. So.. Is your application a good fit for the cloud? Here are a few questions you...
read more

Automounting Home Directories with NIS and NFS

Automounting Home Directories with NIS and NFS
Lets first start off clarifying that this “How To” was done on CentOS based servers. In this example we will use the following two hosts: NISDOM-1: This will be this NIS Domain controller, and NFS mount point APPSERV-1: This server will be our “application server” Please note these hostnames, and examples are for tutorial purposes only. Your hostnames may differ. With that said lets get started. First we will install the appropriate packages for our NISDOM-1 server(NIS and NFS): yum -y install ypbind ypserv nfs-utils Once this has finished, you will need to make sure that all...
read more