Skip to content

Instantly share code, notes, and snippets.

@janogarcia
Created November 26, 2012 09:05
Show Gist options
  • Star 15 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save janogarcia/4147296 to your computer and use it in GitHub Desktop.
Save janogarcia/4147296 to your computer and use it in GitHub Desktop.
Gearman Server Administration (telnet, PHP)

Telnet

The Gearman job server supports a text-based protocol to pull information and run some administrative tasks. The following commands are supported:

  • workers
  • status
  • maxqueue
  • shutdown
  • version

Example

$ telnet localhost 4730
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
status
asyncMessage 0   0   1
syncMessage 0   0   1 

Gearadmin

Available as of gearman 0.19, 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.

PHP

Some PHP libraries/classes to monitor Gearman servers.

Gearman Monitor acts as a sort of "phpMyAdmin for Gearman". The others, Waps_Gearman_Server, GearmanTelnet... don't offer an advanced visual interface.

Gearman Monitor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment