Archive for the ‘gearman’ Category

happy easter — debugging

Montag, April 5th, 2010

At the moment gearman(d) keeps me occupied at work. I am soon going to give (yes, yet another) deeper insight into that.

Aside of the obvious, my first findings boil down to the following

  • When running PHP workers, don’t even try to make them stay alive forever.  Have them commit suicide (sounds dirty but has the advantage that the process itsself knows when its idle) and be reborn on a regular basis. Saves a lot of hassle.
  • Never do the mistake, even if it seems sufficient, to only have one PHP worker running for each gearman server. I had three servers on three individual physical machines, running with one worker each, and all hell rained down (did you ever happen to see a load 500?).