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
0
votes
1 answer

Gearmand not starting properly, getting "multiple occurences" returned

Gearmand ran for about a day before I tried to restart it and it wouldn't come back up. Getting the following and the syslog doesn't have anything in it that refers to gearman. ~$ /etc/init.d/gearman-job-server stop && /etc/init.d/gearman-job-server…
Chris
  • 417
  • 1
  • 6
  • 14
0
votes
0 answers

Standard CRON jobs or Gearman/CRON for Sphinx reindexing?

I've spent the last couple of days getting to grips with Sphinx in order to power the backend of an autocomplete feature. Thanks to several SO users (BarryHunter being the most helpful) I now have a fully working setup complete with several…
gordyr
  • 6,078
  • 14
  • 65
  • 123
0
votes
2 answers

Best way to queue items in Gearman

I have four tasks (t1, t2, t3, t4) that need to be run in sequence on an item (a URL) every 7 days. I use gearman to run these tasks and a cronjob to send the items to the gearman queue. Each task for an item has a date_run assigned to it. If…
user1493124
  • 199
  • 1
  • 2
  • 9
0
votes
2 answers

Gearman Worker with REST API

I wanted to check this concept and what everyone thinks of it. I want to use Gearman to run a couple tasks in the background (mainly data gathering and processing). I want to set up Gearman around a PHP Framework (in my case, it is CakePHP2). As far…
MechaStorm
  • 1,432
  • 3
  • 17
  • 29
0
votes
1 answer

The Gearman Worker PHP file saved where exactly?

If you have a Gearman worker server and you have a Worker.php file, i.e. addServer('...'); $worker->addFunction("customFunction", "my_custom_function"); while…
SonOfSeuss
  • 400
  • 5
  • 18
0
votes
1 answer

gearman or custom mongo

This is not a this or that sort of question trying to find out what I am missing in the difference and understanding. Normally when i want to distributed work and queue things I would write the jobs to be done into a database like mysql or mongodb…
WojonsTech
  • 1,277
  • 1
  • 13
  • 28
0
votes
1 answer

Gearman doing work in non-blocking call C++

Is it possible to assign multiple job to same worker ? My job work callback is non-blocking. So I can process multiple jobs using same worker. According to discussion https://groups.google.com/forum/?fromgroups=#!topic/gearman/UyUxjY1VZUg I should…
Vivek Goel
  • 22,942
  • 29
  • 114
  • 186
0
votes
1 answer

Automatically reload code for python gearman workers

I'm improving a set of gearman workers written in python. They're launched with the basic code: gm_worker = gearman.GearmanWorker(server_address_list) gm_worker.register_task('pipeline', pipeline_task_gm_worker) gm_worker.work() What I'm looking…
Leopd
  • 41,333
  • 31
  • 129
  • 167
0
votes
2 answers

Different gearman libraries for any language

I'm working on making a presentation about gearman, and wondering if anyone knows any examples for languages other than PHP for registering functions. Basically I'm looking for an equilivant in any language of the following: $gm = new…
Harold
  • 1,372
  • 1
  • 14
  • 25
0
votes
1 answer

Gearman Client permission denied when called via browser

I'm attempting to convert a number of items in parallel with Gearman - I want multiple users to simultaneously hit a URL and have their item processed asynchronously in the background. I've tried calling (from a browser) the following: …
user300285
0
votes
1 answer

How to cache popular queries to avoid both stamedes and blank results

On the customizable front page of our web site, we offer users the option of showing modules showing recently updated content, choosing from well over 100 modules. All of the data is generated by MySQL queries, the results of which are cached via…
Karptonite
  • 1,490
  • 2
  • 14
  • 30
0
votes
1 answer

Enabling libdrizzle support for Gearman on OSX

Does anyone know how to get libdrizzle support working for gearman on OSX? I installed gearmand through ports using the command: sudo port install gearmand +drizzle However when I try to use the libdrizzle flags gearmand throws an error: $ gearmand…
Steven
  • 1,107
  • 1
  • 8
  • 21
0
votes
1 answer

Prevent Gearman from exhausting system memory

I am currently looking at replacing our home brew batch processor with Gearman. It runs reports that can take up to several hundred megs of memory (PHP). As such, if too many of these reports are run the server will lock. I've had to add in logic to…
SeanDowney
  • 17,368
  • 20
  • 81
  • 90
0
votes
2 answers

Java-Gearman-Service - Handle GearmanJobEventCallback::onEvent and byte[] in GearmanFunction

i'm using Gearman to distribute different tasks and therefore i'm using java-gearman-service for implementing clients and workers. however, i'm not able to figure out the data i receive in GearmanJobEventCallback::onEvent…
Stefan
  • 2,028
  • 2
  • 36
  • 53
0
votes
1 answer

./configure command not found while configuring gearman php extension in cygwin

I've downloaded the latest version of gearman php extension from gearmean website, but when i tried to configure gearman phpextension, i'm getting the error configure command not found. When i go through the gearman folder also i did not find the…
rahuln
  • 21
  • 4