Herman J. Radtke III

Read more of my blog or subscribe to my feed.

Managing Gearman With Gearadmin Tool

Written by Herman J. Radtke III on 23 Apr 2012

The more jobs flowing through Gearman, the more likely something will happen. Queues can get backed up, workers can crash and performance can degrade. It is important to monitor the status of the Gearman ecosystem and be proactive about fixing problems. We can do this using the gearadmin tool.The gearadmin program is a relatively new program that makes administration of Gearman easier. Before the release of gearman 0.19 the only way to query the gearman daemon was to use telnet. You still can use telnet and reference the Administrative Protocol section http://gearman.org/?id=protocol for a list of commands. While telnet is a still an option, the gearadmin tool saves a lot of boilerplate scripts from being written. The gearadmin tool is really nothing more than a wrapper around the telnet commands. It does make capturing the output a little easier and you don't have to memorize the commands. I wish the gearadmin output was a little nicer to read. The raw dump of the telnet output leaves the data a little cryptic.