Installing apache, fastcgi & php-fpm on dragonflybsd

We’re cur­r­ent­ly in the pro­cess of tran­si­tio­ning our web ser­vers from Net­BSD to Dra­gon­flyBSD; along with that, we’re also swit­ching our PHP plat­form to php-fpm. The­re are a few les­sons we lear­ned in the pro­cess.

First: At least on Dra­gon­flyBSD 2.10, apache2 does not at all per­form well as apa­che-mpm-worker. Swit­ching to apa­che-mpm-pre­fork chan­ged our CPU load from 98% of apa­che to about 3 – 5% of apa­che.

Also, php-fpm was deli­vering too high a rate of 500 errors; this was not accep­ta­ble to our custo­mers. Inves­ti­ga­ti­ons into that lead me to the blog arti­cle at http://​alex​ca​bal​.com/​i​n​s​t​a​l​l​i​n​g​-​a​p​a​c​h​e​-​m​o​d​_​f​a​s​t​c​g​i​-​p​h​p​-​f​p​m​-​o​n​-​u​b​u​n​t​u​-​s​e​r​v​e​r​-​m​a​v​e​r​i​c​k​/​#​c​o​m​m​e​nts, which then sent me link-cha­sing to – ulti­mate­ly – http://​arti​cle​.gma​ne​.org/​g​m​a​n​e​.​c​o​m​p​.​w​e​b​.​f​a​s​t​c​g​i​.​d​e​v​e​l​/​2​514. This means we now have a set of local patches to our pkgs­rc tree that incor­po­ra­te the patch from this pos­ting. At first sight, this seems to have impro­ved the situa­ti­on.

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.