| Subcribe via RSS

HandlerSocket Edge Cases

March 28th, 2011 | No Comments | Posted in HandlerSocket, MySQL, Random Tech, Uncategorized

A couple of weeks ago at the San Francisco MySQL Meetup, I gave a talk on HandlerSocket and got a couple of questions that, while I thought I knew the answer, I had never actually verified by testing. So, for the attendees who asked, here are the questions and answers:
More »

Ignoring the Scientific Approach to Triathlon Training

March 26th, 2011 | 1 Comment | Posted in Triathlon, Uncategorized

Today I finished my dry-run (all in my air-conditioned gym) training session for next week’s Clayton Triathlon. I came in 1 hr 7 min slower than I wanted, but (clearly) I didn’t set a realistic goal. Now that I have a baseline for how I perform in an Olympic Distance Triathlon, I can begin formulating a plan for how to improve my overall time.
More »

Nagios Checks for HandlerSocket

February 11th, 2011 | 1 Comment | Posted in HandlerSocket, MySQL, Nagios, Random Tech, Uncategorized

I’ve written some new Nagios checks for HandlerSocket. check_handlersocket is a part of http://code.google.com/p/check-mysql-all/, and is meant to be called locally on the HandlerSocket server (usually via NRPE), but the perl-Net-HandlerSocket module must be installed. Feedback is welcome, usage is as follows:

More »

Tags: ,

Not Your Mother’s Egg Nog Recipe

December 13th, 2010 | No Comments | Posted in Uncategorized

It’s that time of year again … time to dig through my backups and try to find my Egg Nog recipe (it’s so good, it has become a proper noun). I figure I’ve shared this recipe enough that I should just post it up online for all to see.

Ingredients:

  • 12 eggs
  • 1 cup granulated sugar
  • 1 cup burbon
  • 1 cup brandy
  • 2 cups meyers dark rum
  • 1 qt half & half
  • 2 pints heavy whipping cream
  • Nutmeg, to taste

Steps:

  1. Be sober – It is hard to overstate the importance of this step. If you miss this step, it’s likely that the end result will be nothing short of disasterous.
  2. Perfectly separate the eggs into two separate mixing bowls (one bowl for whites, one for yolks).
  3. Beat the living tar out of the 12 egg yolks with a whisk or fork.
  4. Add 1 cup of sugar to the severely beaten egg yolks.
  5. Add 1 qt of half-and-half, continue mixing.
  6. Add 1 pint of heavy whipping cream, continue mixing.
  7. Slowly add all of the alcohol. If the alcohol is added too quickly, it will curdle the eggs and you’ll have to start all over. Patience is a virtue.
  8. Try the liquid, add alcohol to taste. If you think it tastes like jet fuel, don’t worry because when it is left to set overnight the flavors meld and it loses much of it’s sharpness.
  9. In a separate bowl, beat the egg whites like they owe you money! Should be stiff and form peaks.
  10. Fold stiff egg whites into the other liquids.
  11. In a separate bowl, whip up 1 pint heavy whipping cream until stiff-ish (it doesn’t need to be as stiff as the egg whites).
  12. Fold the semi-stiff whipping cream into other liquids.

Although at this point it is technically drinkable, it is highly advised to let it sit in the fridge (or outdoors, if you live in colder climates) for at least 24 hours. If, after having sat overnight, it’s still a bit strong, you can add some store-bought “egg nog” to taste.

Serve in gaudy christmas cups, sprinkling with Nutmeg. Enjoy!

Tags: , ,

Cassandra “Quick Install” on CentOS 5

March 23rd, 2010 | No Comments | Posted in Random Tech, Uncategorized

Cassandra is notoriously a pain to install on CentOS. So partially as documentation for myself, here are the “quick install” steps for getting Cassandra up and running. For explanation, see the official Cassandra documentation. I think the biggest reason this differs so significantly from other install guides out there is that I wanted it to work on RightScale (know issues w/Java) as well as CentOS 5.1-5.4. I can’t wait until I can get Cassandra from yum …..

# Generic tools needed to install. Note that this is significantly more
# than found in any docs, but I couldn't get things to build otherwise
yum -y install gcc-c++ make cmake python-devel bzip2-devel zlib-devel
yum -y install log4cpp-devel git git-core cronolog google-perftools-devel
yum -y install readline-devel ncurses-devel libtool autoconf expat
yum -y install libevent-devel flex byacc expat-devel

# Perl Modules for Thrift Install
yum -y install perl-Bit-Vector perl-Class-Accessor

# Ruby Install
yum -y install ruby rubygems ruby-devel rake

# 1.42.0 Boost C++ Libraries
# (must build manually because yum repos are too old)
cd /usr/local/src/
wget http://sourceforge.net/projects/boost/files/boost/1.43.0/boost_1_43_0.tar.gz/download
tar xvzf boost_1_43_0.tar.gz
cd boost_1_43_0
./bootstrap.sh
./bjam install

# Java Install
yum -y remove jpackage-utils
wget http://dev.centos.org/centos/5/testing/x86_64/RPMS/jpackage-utils-1.7.5-1jpp.1.el5.centos.noarch.rpm
rpm -ivh jpackage-utils-1.7.5-1jpp.1.el5.centos.noarch.rpm
yum -y install xml-commons-apis xml-commons-apis-javadoc ant
yum -y install java
yum -y install log4j jakarta-commons-logging jakarta-commons-lang
yum -y install java-1.4.2-gcj-compat java-1.4.2-gcj-compat-devel

# Install Thrift (link probably won't work)
cd /usr/local/src
wget http://www.poolsaboveground.com/apache/incubator/thrift/0.2.0-incubating/thrift-0.2.0-incubating.tar.gz
./configure && make && make install

# Get Cassandra: Authoritative link is http://incubator.apache.org/cassandra/
cd /usr/local
# Note this link will probably not work
wget http://apache.opensourceresources.org/cassandra/0.6.1/apache-cassandra-0.6.1-bin.tar.gz
tar xvzf apache-cassandra-0.6.1-bin.tar.gz
ln -s /usr/local/apache-cassandra-0.6.1 /usr/local/cassandra
useradd cassandra
mkdir -p /var/log/cassandra
chown cassandra /var/log/cassandra
mkdir -p /var/lib/cassandra
chown cassandra /var/lib/cassandra

# Put in place an init.d file
cd /etc/init.d/
# Taken from http://posulliv.com/2009/09/07/building-a-small-cassandra-cluster-for-testing-and-development.html
wget http://www.pablowe.net/cassandra
chmod +x cassandra
chkconfig --add cassandra
chkconfig --levels 2345 cassandra on

Tags:

Knowing your PERC 6/i BBU

February 5th, 2010 | No Comments | Posted in Nagios, Performance, Uncategorized

I’ve recently become supremely disappointed in the availability of Nagios checks for RAID cards. Too often, I see administrators rely on chance (or their hosting provider) to discover failed drives, a dying BBU, or a degrading capacity on their RAID cards. So I began work on check_raid (part of check_mysql_all) to provide a suite of checks. One of the first cards I wanted to support was the PERC 6/i, so I scoured the documentation, forums, and picked the brains of my friends before finally getting on a marathon 4 hour call with Dell support. I’ll now share the interesting things that I’ve learned.

More »

Tags: , , ,