Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gearman gearadmin command line tool status output meaning

Tags:

php

gearman

I am unable to find any documentation on the meaning of the gearadmin command line tool with the '--status' option. What is the meaning of the three numbers found after the worker function name ?

For example, then I run this command:

gearadmin --status

I get the following output:

worker-function-name    114 0   0
.

I don't know the meaning of the three numbers after the 'worker-function-name'. I don't think it matters but I'm using gearman with the php extension and ubuntu 13.10 server.

like image 572
newtonick Avatar asked Dec 23 '13 20:12

newtonick


People also ask

How do I know if my gearman is running?

1 Answer. Show activity on this post. Note: If you are not using a database to queue Gearman worker jobs, that means all pending jobs are in memory, all pending jobs will be lost when you shutdown! If you do use a database, your pending jobs will be available upon restart and will not be lost.

What is gearman job server?

What is Gearman? Gearman provides a generic application framework to farm out work to other machines or processes that are better suited to do the work. It allows you to do work in parallel, to load balance processing, and to call functions between languages.


2 Answers

Since this is the only question related to output of command gearadmin --status, allow me to share a quick tip for pretty printing the output of this command.

gearadmin  --status | sort -n | column -t

This becomes useful when you have a lot of different workers and their relative counts matter. I always have one tab of my terminal where I run the following command to watch queue length and worker count go up and down in realtime. Well, realtime enough.

watch "gearadmin  --status | sort -n | column -t"
like image 184
Mayank Jaiswal Avatar answered Oct 02 '22 07:10

Mayank Jaiswal


  • Function Name
  • Number in queue
  • Number of jobs running
  • Number of capable workers

https://preilly.me/monitoring-gearman-over-telnet-port-4730/

like image 21
Mark Baker Avatar answered Oct 02 '22 07:10

Mark Baker