Archive for the ‘cluster’ 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?).

Insights in things no one ever wanted to know

Donnerstag, April 23rd, 2009

Today’s task is to figure out how to show one and the same gzipped sitemap (one sitemap map + multiple sitemap files) from multiple web servers kickin‘ the same domain, while having it generated only on one of these machines.

Of course, its not hard — as a matter of fact, its more the amout of possible options that bothers me. Let’s see which turns out to be the least disturbing one (not so much of an optimist today).

To be continued…

Edit

In the end the file server looked all so promising, that a new mount was established in which the master webserver now periodically publishes the sitemaps and all webservers gather needed data from on request — which required a bit of a hack as the big search engines want sitemaps to live in the root directory.

Does anyone run domains where different publishers‘ spheres of influence are distinguished by folders?