Difference between revisions of "Setting up Gearman"
From Dreamwidth Notes
Foxfirefey (Talk | contribs) |
(Trivia) |
||
Line 1: | Line 1: | ||
+ | ==About== | ||
+ | An asynchronous job scheduling engine, of the type "do this somewhere else". Benefits: somewhere else, fast. Flaws: currently if it dies jobs are lost (apparently the team that manages it is working on that). Name is an anagram of "manager"; from LiveJournal days. [http://azurelunatic.dreamwidth.org/6323528.html IRC log with history/discussion] [[Production_Notes#Gearman|Gearman on Dreamwidth]] [http://gearman.org/ gearman.org] | ||
+ | |||
+ | ==Setup== | ||
+ | |||
Install the server: | Install the server: | ||
Revision as of 23:03, 8 July 2010
About
An asynchronous job scheduling engine, of the type "do this somewhere else". Benefits: somewhere else, fast. Flaws: currently if it dies jobs are lost (apparently the team that manages it is working on that). Name is an anagram of "manager"; from LiveJournal days. IRC log with history/discussion Gearman on Dreamwidth gearman.org
Setup
Install the server:
sudo apt-get install gearman-server
And also edit /etc/default/gearman-server so that ENABLED is true.
Run the daemon:
sudo /etc/init.d/gearman-server start
Might want to add it to startup.
Then, you need to add this to your configs in the LJ section somewhere:
@GEARMAN_SERVERS = ('localhost:7003');