Questions tagged [gearman]

Gearman is a system to farm out work to other machines, dispatching function calls to machines that are better suited to do work, to do work in parallel, to load balance lots of function calls, or to call functions between languages.

Gearman is an open source application framework originally written in Perl by Brad Fitzpatrick. Brian Aker and Eric Day rewrote the framework in C.

Gearman is designed to distribute appropriate computer tasks to multiple computers, so large tasks can be done more quickly.

In some cases, load balancing rather than raw speed may be the main goal; a Web server, for instance, could use Gearman to send tasks for which it is not optimized to another computer (which may be running on a different architecture, using another operating system, or loaded with a computer language better suited to a particular operation).

Job server is available in three languages:

  • C/C++
  • Java
  • Perl

Client & Worker APIs are available in following languages:

  • libgearman (C)
  • Shell
  • Perl
  • Nodejs
  • PHP
  • Python
  • Java
  • Databases
  • JMS
  • C# / .NET

Some of the use cases provided at the web site:

Resources

IRC channel is #gearman on Freenode.

484 questions
4
votes
1 answer

Simulating Google Appengine's Task Queue with Gearman

One of the characteristics I love most about Google's Task Queue is its simplicity. More specifically, I love that it takes a URL and some parameters and then posts to that URL when the task queue is ready to execute the task. This structure means…
sotangochips
  • 2,700
  • 6
  • 28
  • 38
4
votes
3 answers

Installing Gearman PHP extension on Debian 6

I'm desperately trying to get the Gearman PHP extension working on a Debian 6. I have all the binaries and sources root@debian:/tmp/pear/install# aptitude search gearman i gearman - A…
Lukasz Kujawa
  • 3,026
  • 1
  • 28
  • 43
4
votes
1 answer

Testing to see if Gearman daemon is running

I want to check to see if Gearman daemon is running. And only then run tasks so my application does not crash. Here's my code: $daemonRunning = true; while( true ) { try { Yii::app()->gearman->client->ping( true ); if (…
HyderA
  • 20,651
  • 42
  • 112
  • 180
4
votes
1 answer

how to configure gearmand with libdrizzle on linux?

I have been trying to work with persistent job queues of gearman. When I try to use libdrizzle like- gearmand -q libdrizzle --libdrizzle-host=127.0.0.1 --libdrizzle-user=gearman --libdrizzle-password=secret --libdrizzle-db=some_db…
Hussain
  • 5,057
  • 6
  • 45
  • 71
4
votes
2 answers

High performance impression tracking

Basically, one part of some metrics that I would like to track is the amount of impressions that certain objects receive on our marketing platform. If you imagine that we display lots of objects, we would like to track each time an object is served…
Layke
  • 51,422
  • 11
  • 85
  • 111
4
votes
1 answer

How can i install gearman php extension on Windows OS?

Please anybody help me out in installing gearman php extension on windows xp. I have xampp 1.7.7 installed on my system and i have installed Cygwin, libevent-1.4.14b-stable and gearmand on my system. Please let me know what more is needed to install…
udaydesai08
  • 53
  • 1
  • 6
4
votes
2 answers

How can I get the list of scheduled jobs from Gearman?

I am currently evalutuating Gearman to farm out some expensive data import jobs in our backend. So far this looks very promising. However there is one piece missing that I just can't seem to find any info about. How can I get a list of schedules…
Georg M. Sorst
  • 264
  • 4
  • 13
3
votes
1 answer

Gearman jobs are passed to more than one worker (PHP)

I have the problem that in a PHP application Gearman jobs sometimes are passed to more than one worker. I could reduce a code to reproduce it into one file. Now I am not sure if this is a bug in Gearman or a bug in the pecl library or maybe in my…
stofl
  • 2,950
  • 6
  • 35
  • 48
3
votes
2 answers

A queuing system which supports job batching (e.g. several jobs for 1 worker at once)

I'm looking for a queuing system that could support the following scenario: A client adds a job - to check how many Facebook likes a particular url (URL1) has; A client adds another job - to check the same information for URL2; [....] A worker…
Aurimas
  • 2,518
  • 18
  • 23
3
votes
1 answer

PHP Gearman Task sometimes returns empty object

I have a simple Gearman client and worker. I am running both on my Ubuntu desktop. I have installed the gearman-beta pecl package and the version of Gearman from synaptic. My problem is that sometimes I'm getting an empty object back from the…
3
votes
1 answer

Passing multiple variables to a Gearman worker function

How do you pass two variables to the same worker function? For example, say I wished to concat two strings that I pass from the client. I saw in some example code an array being used, but I can't get it to work.
Jingo
  • 768
  • 1
  • 10
  • 23
3
votes
1 answer

Python Gearman get data from background task

I'm try use gearman with backgroud tasks and get data progress from worker. In documentation I'm see methods: send_job_data and send_job_status, but with background first method not work (I'm not see data in job.data_updates), but status changes in…
gigimon
  • 1,443
  • 2
  • 13
  • 19
3
votes
1 answer

Supervisord adding multiple processes for PHP and Gearman

I recently set up Ubuntu Natty with PHP5-FPM, Gearman, and Supervisor. I've edited my Supervisord config to run a Gearman worker. [program:gearman] command=/usr/bin/php php_gearman_worker.php numprocs=1…
ObiHill
  • 11,448
  • 20
  • 86
  • 135
3
votes
1 answer

how to monitor gearmand daemon by Monit?

So the configuration file for monitoring gearman server is: set logfile /var/log/monit.log check process gearmand with pidfile /var/run/gearmand.pid start program = "sudo gearmand --pid-file=/var/run/gearmand.pid" stop program = "sudo kill…
yernarkaz
  • 51
  • 5
3
votes
1 answer

Creating a Gearman Worker in C

I've been trying to implement a Gearman worker with their C API (libgearman). But their documentation for the C API is poor and not complete. Although its very similar to creating workers in other languages such as PHP, I am still unable to Register…
crozzfire
  • 186
  • 1
  • 1
  • 13