Setup Varnish 4 on CentOS 6 as a Caching Server and Load Balancer

Sunday, March 29, 2015

In a previous post, I detailed how to setup Varnish 2.1.5 on CentOS 6 as a caching server and load balancer. After setting this up, I realized MP4 files were not streaming and large downloads were taking too long to begin.

Varnish 4 is the latest major release of Varnish and has fixed all of these problems.

This post will be exactly the same as the last post, but will provide the new VCL syntax that applies to Varnish 4.

Continue reading...

Setup Varnish 2.1.5 on CentOS 6 as a Caching Server and Load Balancer

Saturday, March 28, 2015

Varnish is a highly regarded HTTP caching server. It sits in front of your web server tier and caches content in RAM so subsequent requests are served as quickly as possible.

Varnish can also be a basic load balancer. Combining a caching server and a load balancer works extremely well when one or more of your web servers becomes unavailable. Because Varnish is also acting as the load balancer, no longer will the end user possibly see a “Service unavailable” message while the load balancer is removing the unhealthy web server from the load balanced pool, they will simply see a cached paged instead.

Continue reading...

A Quick Force Touch Trackpad Review

Tuesday, March 17, 2015

Force Touch was first revealed in the Apple Watch and now has made its way to Apple’s trackpads. I went to an Apple Store to try out Force Touch on the updated 13” retina MacBook Pro.

Continue reading...

Gluster Heal Not able to fetch volfile from glusterd

Wednesday, February 25, 2015

I recently setup a two node replica Gluster cluster on CentOS 6.6 with Gluster version 3.6.2-1. I setup a private network specifically for Gluster replication and communication and binded the Gluster daemons to this network.

Continue reading...

Change Gluster Volume Connection Timeout for GlusterFS Native Client

Tuesday, February 24, 2015

After setting up a two node replica Gluster cluster to use as a web content backend, I began testing what would happen when I brought down one of the Gluster nodes. The web nodes access the Gluster cluster using the GlusterFS native client and I expected them to quickly see that one of the Gluster nodes was down and begin serving content from the healthy Gluster node, but that was not happening. My test involved simply rebooting one of the Gluster nodes and that node was coming back online within about 30 seconds. However, within that 30 seconds my website was down.

Continue reading...

An Actual Temporary Fix for OS X Yosemite's UI Lag

Saturday, January 31, 2015

Every since I upgraded to OS X Yosemite, the experience has been lackluster. A simple Google search will reveal a host of problems Yosemite has introduced, but the absolute most annoying problem for me has been the UI lag. This UI lag mainly occurs when I have an external monitor attached.

Continue reading...

Inject Content into a Jekyll Post

Wednesday, January 14, 2015

There was a period where I wanted to inject an ad into a particular part of every Jekyll post. I did not want to put the actual ad markup in the middle of the Markdown text file because it was ugly and would be difficult to manage if I had to change something.

Continue reading...

Remove a User's Ability to Unlock File Vault 2 with their User Password

Sunday, January 11, 2015

I have used File Vault 2 since OS X Lion without issue and it has worked as expected. With File Vault 2 enabled, before I can login with my user password, I have to first unlock the hard drive using the disk encryption password I previously set.

Continue reading...

Problems Provisioning Ubuntu with Cobbler and Kickstart Profiles

Friday, December 19, 2014

Using cobbler to provision Ubuntu systems is no problem when using Preseed, but it is a problem when using Kickstart Profiles (Ubuntu has had Kickstart compatibility since at least 10.04).

Continue reading...

Making the iPhone Physically Smaller But Keeping the Same Screen Size

Wednesday, December 10, 2014

With the release of the iPhone 6 and 6 Plus, the iPhone has now joined the ranks of Android phones with large screens. Personally, I think these screen sizes are just right, but everyone always want more. In this case, more means a physically smaller phone that some how retains the 4.7” or 5.5” screen size. How could Apple conceivably do this?

Continue reading...