Sunday, March 20, 2011

Scaling myVidster Part 3: Apache + PHP-FPM

Recently I decided to upgrade my servers so that myVidster can keep up with its growing traffic. I also decided to implement PHP-FPM to fix an issue with my APC setup discussed in Scaling myVidster Part 2.

Before the upgrade my setup was Apache +  MOD_FASTCGI + APC.  I did not have any issues with server performance but the APC host would restart every 2 hours.  This concern me because the cache would have to warm back up (rebuild) and during high traffic this could cause a bottle neck.  With that in mind I decided to add PHP-FPM to my setup.

I follow the setup instructions posted here and got PHP-FPM setup with only a few headaches.  My biggest learning was recompiling MOD_FASTCGI.  His steps are for a DSO install and I decided to go with a static library instead because I have done it before and was succesful.  After I recompiled PHP with PHP-FPM, I tried to use my old static library copy of MOD_FASTCGI which caused my server to fail.  To solve this I had to recompile the static library.

Also the default settings in the php-fpm.conf could not handle the traffic.  For those who use PHP-FPM here are my settings.

pm.max_children = 225
pm.start_servers = 60
pm.min_spare_servers = 40
pm.max_spare_servers = 80
pm.max_requests = 500

I am still getting the '[pool www] seems busy' warnings once in a while, so I might increase these values.

My new setup is Apache +  MOD_FASTCGI + PHP-FPM + APC and have been running this setup for the past 2 days.  My first impression is that I love this setup!  PHP-FPM gives you more control on how your server executes php scripts and the APC host no longer restarts every 2 hours.  As for performance I did not execute any benchmarks but I did notice faster and more responsive page loading.  I will also like to note that the Apache + PHP-FPM setup is not too common and most people use Nginx instead.  Right now no one has published any benchmark data comparing the two setups.  So for now go for what works for you and your visitors!


Taylor Bara said...

What can you say about this software Did you try some of them?

ninja said... Thanks for sharing.I found a lot of interesting information here. A really good post, very thankful and hopeful that you will write many more posts like this one.

Aswin said...

Hello there. I found your web site by the use of Google at the same time as searching for a comparable subject, your site came up. It seems great. I have bookmarked it in my google bookmarks to come back then.

Acupressure Care ProductsPersonal Care ProductsPersonal Care Products Shops in ChennaiAcupressure Care ProductsPersonal Care ProductsPersonal Care Products Shops in ChennaiAcupressure Care Products in ChennaiAcupressure Care Products in IndiaBuy Acupressure Care Products OnlineAcupressure Care Products PricesAcupuncture Needle Shops in Chennai
Acupuncture Needle Prices in ChennaiBuy Acupuncture Needle Online in IndiaAcupuncture NeedlesAcupuncture Needle Products in Chennai
Acupuncture Ring in ChennaiBuy Acupuncture Ring Acupuncture Ring IndiaAcupuncture Ring ShopsAcupressure Foot Roller ShopsAcupressure Mat Shops in ChennaiAcupressure Mat Shops in IndiaSpine Massager in ChennaiBuy Spine Massager Online in India

creditcard login said...

creditcard login

credit card login: A mainstream physical retail goal, and also a go-to goal for on the web and application customers — works 1,100 retail chains in 49 states.


Hi there, I found your blog by way of Google whilst searching for a related subject, your web site came up, it appears good. I have bookmarked it in my google bookmarks. Hi there, just changed into alert to your blog thru Google, and found that it is really informative. I am going to be careful for brussels. I will be grateful should you continue this in future. Lots of people will likely be benefited from your writing. Cheers!

Vastu in Dubai and UAE
Vastu Consultant in Dubai and UAE
Vastu Shastra Consultant in Dubai and UAE
Best Vastu Consultant in Dubai and UAE
Vastu Shastra Training in Dubai and UAE
Indian Vastu Training tamil status videos for whatsapp
Whatsapp Tamil DP Status Quotes and Images
Vastu Consulation in Dubai and UAE
Vastu Remedies in Dubai and UAE
Vastu Tips For Homes
Vastu Tips For Office and Buildings
Vastu Training Programs and Workshops in Dubai and UAE

برق یار said...

به خاطر داشته باشید که آسانسور قیمت آسانسور ، بازسازی آسانسور و شرکت آسانسور نیز مسائل قابل ملاحظه‌ای است.نگهداری قطعات آسانسور ، شغل نصب آسانسور است. سیستم تهویه مطبوع به خاطر داشته باشید که تهویه مطبوع سامسونگ و شرکت تهویه مطبوع نیز بهترین سیستم تهویه مطبوع و تهویه مطبوع ساختمان می باشد. برق یار برای خدمات برق برای عیب یابی ، تعمیر ، نگهداری یا نصب ، سرویس تاسیسات و کامپیوتر است.

Gclub45 said...

You are very good at that.
โปรโมชั่นGclub ของทางทีมงานตอนนี้แจกฟรีโบนัส 50%
เพียงแค่คุณสมัคร สล็อตออนไลน์ กับทางทีมงานของเราเพียงเท่านั้น
สมัครสล็อตออนไลน์ >>> Goldenslot
สนใจร่วมสนุกกับ คาสิโนออนไลน์ คลิ๊กได้เลย
มีทั้งคาสิโนออนไลน์ หวยออนไลน์ ฟุตบอลออนไลน์ สล็อตออนไลน์ และอื่นๆอีกมากมาย

ahmed said...

We will now offer you important tips for cleaning, disinfecting and disinfecting the baths:
شركة النجوم لخدمات التنظيف
شركة تنظيف فلل بمكة
شركة تنظيف شقق بمكة
شركة تنظيف بيوت بمكة

Geek squad support said...

Great blog post.
if you have any queries related to your hardware devices like more mobiles, laptop then easily contact our pageGeek squad support we provide the best solution for our customer.

Quickbooks support said...

This is a great article, with lots of information in it, These types of articles interest users on your site. Please continue to share more interesting articles!

jacklinemelda said...

Affordability of our Custom Research Papers for Sale services is one of the main attributes that had made us become the best provider of Research Paper for Sale Online in the industry.

rajuar said...

Hiya, I am really glad I have found this info. Today bloggers publish only about gossip and net stuff and this is actually irritating. A good blog with interesting content, this is what I need. Thanks for making this website, and I will be visiting again. Do you do newsletters by email?

Vedic Astrologer
Vedic Astrologer in India
Vedic Astrologer in Chennai
Astrologer in India
Astrology Consultant in India
Astrology Consultant in Chennai
Numerology Consultant
Numerology Consultant in Chennai
Horoscope Consultant in Chennai
Gemstone Consultant in Chennai
Marriage Matching in Chennai
Vastu Consultant in Chennai

njytr said...

love this site. Keep it up

Geek squad said...

Geek squad provides 24 hours of service to help you out the complete procedure of downloading and installing the Setup. Geek Squad Tech solving technical problems of your device. It has given its toll-free numbers to support you anytime, anywhere. For more information, visit geek squad chat.

joeysmilth said...

Zip file is the most widely used file creating process. Using this, we can zipped a number of files inside one single file folder. It is also a type of compressed file that can easily send and retrieve different types of data and information. To know how to create it on Windows 10, then visit open zip file windows 10.

color laser printer test page chocolate bar said...

print color or black white test pages is the best place to troubleshoot your printer that too without downloading any software. So do visit the website print test page

linksys router default password said...

Use any device of your choice to connect to Linksys Router, if you’re using a wireless network it will connect directly

jsnlee2020 said...

Good morning readers of this blog! I am a professional essay writer and am working at this fantastic section for a long time of my hard life! Please, visit our service's online page if you want be the greatest student of the year!!!

alicetaylor said...

Apache, at the web server level, and NGINX PHP performance by implementing a reverse proxy server.

facebook like apkxyz said...

Thanks for your helpful sharing. I have read that knowledge very much, it gives me a lot of things.

Luke Wilson said...

Thank you for that article — I see you have extensive knowledge in that sphere. It's good you decided to share it with the audience here ) You can also go to and learn how to use advanced monitoring software with your devices.

LasseNielsen said...

This is my first experience in using this Assignmenthelponline service. My paper was completed within the deadline. I was able to communicate my concerns with the support staff and with my writer. My paper was revised twice following the guidelines I gave. I am happy with the final copy. Thanks them for making this service available.

myprepaidcenter said...

The best use of myprepaidcenter online portal is for Card Verification, Activation, Balance Check if you are an account holder in the US, Canada, UK, Australia.

upmusic said...

دانلود آهنگ جدید
دانلود آهنگ سینا پارسیان شکاف

LasseNielsen said...

The quality of the work done by Termpaperwriter service is unmatched and it has really changed my life at University for good. The professionalism, speed and work which writers put into each order are extraordinary. Nothing is impossible for this group of experts, this is really the best writing service on earth!

quickbooks sync manager error said...

The quickbooks sync manager services have been ended and since then the third-party app developers are working to create a solution to easily sync their apps with the quickbooks.

Ovais Mirza said...

The blog is superb with lots of nice and quality information. Thanks for the latest technology updates.

Linda said...

Very helpful advice in this particular post! It’s the little changes that make the largest changes. Thanks for sharing!
download lulubox apkxyz

ali said...

دانلود آهنگ های شاد جدید تالار عروسی
دانلود آهنگ های شاد عروسی
دانلود آهنگ جدید

Florahmelda said...

Psychology coursework writing services are essential and they have become very popular for those seeking psychology research writing help services since most of them seek Psychology Research Writing Services.

John said...

حامد همایون حامد همایون حامد همایون

حامد همایون

faw said...

کشنده فاو

کامیونت فاو

Harrison said...

Awesome blog post, Thanks a ton for sharing such stuff.

Jack Davis said...

Quickbooks Tool Hub is the repairing tool which is a combination of all the essential tools to diagnose errors in Quickbooks. If you want to know how to install Quickbooks Tool Hub, you can visit the link.
Quickbooks tool hub download

John said...

if you have any queries related to your hardware devices like more mobiles, laptop then easily contact our pageGeek squad support we provide the best solution for our customer. دانلود آهنگ جدید

aditya said...

Thanks for information and keep updating us with valuable content and if possible provide us with

jibjab alternative|similar to hautelook|lola Iolani Momoa|Sydney Brooke Simpson|

ross taylor said...

Nice article and very proper langauge.
Get all or any other info if you want on Quickbooks or any other error that might be related to Quickbooks.
Like Quickbooks error 80070057 you will also get all info on anything else that might be helpful in removing the error.

Mark Henry said...

We have formally relaunched YesPornPlease with a large number of recordings, channels for pornography adoring network. In the event that you love free full-length HD pornography recordings, that YesPornPlease can offer, at that point this cylinder site is for you. Snap and appreciate most sultry XXX videos for nothing!

aditya said...

very nice blogs!!! i have to learning for lot of information for this sites.Sharing for wonderful information. Thanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing

Horizontal Asymptote
utsa blackboard
Special Right Triangles
Perfect Square Trinomial Formula

Anonymous said...

Online Streamen

sportstoto said...

I was reading through some of your posts on this website and I believe this website is rattling informative! Keep on posting.


blakesector said...

I will right away take hold of your rss feed as I can not to find your e-mail subscription hyperlink or newsletter service. Please let me recognize so that I may just subscribe. Thanks.


youtube channel said...

I just could not depart your website before suggesting that I actually enjoyed the standard info a person provide for your visitors? Is gonna be back often to check up on new posts


Cmissy said...

Informative content, i also offer Nursing Essay Writing Services at affordable rates

Aaron Yan said...

Nero Platinum 2020 Crack Suite can be downloaded free of charge from the download link given down below. With Nero 2020 Full Version you can manage, create, convert, play and create movies, music, and photos for the best home entertainment and entertainment on the go.neroplatinumsuite

kidd melton said...

SnapGene 5.2.2 Crack is the best stage that causes hereditary specialists to make the simple cycle of atomic science.snapgenecrack

Unknown said...

Ghosthack Riddim Xplosion Crack Download: World-renowned sound designer EDM Wubbaduck has recorded 16 million views on YouTube of “Danger”, creating another wide variety of Serum defaults. This time, I aim to produce Riddim and Dubstep heavyweights.ghosthackriddimxplosionlicensecode

Unknown said...

Dark Intervals – GUITARS IN SPACE Crack Download is a comprehensive audio processing software package that offers users an amazing and high-quality tool based on the sound source of the electric guitar.darkintervalsguitarsinspaceregistrationkey

Alison john said...

Acronis True Image Crack free downloads is an ultimate cross-platform solution for data backup and recovery.acronistrueimagecrack

Unknown said...

CyberLink YouCam Deluxe Crack Turn your webcam into a live video studio. Integrated YouCam seamlessly into video calling services like Skype, Zoom & U Meeting, as well as Facebook and YouTube Live or even Twitch.cyberlinkyoucamdeluxefreedownload

hektorhamelton said...

I completely resolved my question when I read this post, thanks to the author for the very detailed description. I wrote my review on the novoresume review, you can go in and read. Thank you very much for your attention in your time.

Unknown said...

best whitening serum in pakistan

best whitening serum in pakistan

Unknown said...

best whitening cream for men

best whitening cream for men

opbest said...

These sites are stable, offer instant payments in your paypal and are not meant to make you fool.
Take the time to extend your program from the starting as well as the foundation could keep on providing the company well ahead of the
establishment phase. Unless you incorporate some technical
exposure to web servers you might battle to perform your own server management and administrative tasks. 풀싸롱


esfahanjanebi said...

لوازم جانبی
لوازم جانبی موبایل

Steven Salvatore said...

Associate HP printer utilizing wps pin hp printer · Make sure to go to the control board of your HP Printer and afterward in the wake of squeezing the Wireless button, go to the Settings. said...

I visit first time your blog and really amazing because a lot of information you shared on your blog is really effortless work you did and i also shared your blog with my friend's keep it up your hard work and visit my blog must. after effects key.

Crack Repack said...

Super Duper site! I am Loving it!! Will come back again, Im taking your feed also, Thanks. refx-nexus-crack-free-download/

crack Store said...

Many thanks for the shared this informative and interesting post with us.

vst-torrents said...

The Voicemod pro crack have been distributed mainly through illegal and dangerous software content websites. In these unofficial channels are often shared files with malware and can be very dangerous for a PC, because they can damage it permanently.

Omnisphere crack is the flagship synthesizer of Spectrasonics - an instrument of extraordinary power and versatility. Top Artists all over the world rely on Omnisphere crack as an essential source of sonic inspiration. This award-winning software brings many different types of synthesis together into one amazing-sounding instrument that will spark a lifetime of exploration.

Unknown said...

Foxit Reader Crack
Foxit Reader Activation Key is an eye-catching platform but those who want to facilitate the application of the skin or choose another color palette. Despite the many buttons and menus, the user interface doesn’t seem to have a built-in interface, making it a comfortable place to view a PDF file, convert or download, and easy to publish to Facebook.

Unknown said...

Movavi Photo Editor Crack
Movavi Photo Editor Crack select the area and use the Lasso tool and remove the effect from the selected area. Additionally, you can make the clone objects, crop, rotate, and flip the image easily. Also, the application allows you to maintain the parameters of the photo such as contrast, brightness, hue, saturation, temperature, highlights, shadow, etc. Also, it enables image manipulation and adjusting for improving image quality. With a little patience and the set of image adjustment tools that this app provides, you can get the perfect shot.

vaishali said...

open json file

사이트 방문 said...

This Game in Korea is a game where the winning amount is paid out at a dividend rate after investing in online sports betting. Sports betting is available on Toto sites, which focus on popular sports games such as Overseas Soccer, MLB and NBA.
토토사이트배팅사이트 안전놀이터

takiblogjakibloger said...

echte Insta Follower und Abonnenten gunstig kaufen - das ist eine tolle Moglichkeit!

شركة نقل اثاث بالرياض said...

تتخصص شركة حنين المملكة في تقديم عدد من الخدمات المرتبط بخدمات المنازل مثل نقل وتركيب الاثاث
يجب تحديد مساحة الأثاث قبل البدء بترتيبه وتغيير موقعه؛ وذلك تسهيلاً لعملية الترتيب وتجنباً لنقله عدّة مرات من مكان إلى آخر، كما ويجب رسم المساحة الكلية للغرفة على ورقة ثمّ إسقاط الأثاث عليها بشكلٍ نظري، ويمكن الاستعانة بالعديد من برامج التصميم الداخلية؛ لإنجاز هذه المهمة بطريقة سهلة وسريعه، حيث ليس من المنطق وضع سرير ذو حجم كبير جداً في غرفة نوم صغيرة لئلا تصبح الغرفة ضيقة المساحة، أو وضع طاولة صغيرة بالقرب من أريكة كبيرة الحجم بل يجب اختيار طاولة كبيرة لهذا النوع من الأرائك، لذلك لا بد من مراعاة الأحجام بما تتناسب مع بعضها البعض عند ترتيب أثاث المنزل.
تركيب أثاث ايكيا بالرياض
يحتاج تغيير موقع الأثاث ونقله الكثير من العمل، خاصةً عندما يحتوي المنزل على العديد من قطع الأثاث التي تختلف طريقة نقل كل منها عن الأخرى، فبعضها لا يُمكن تجزئتها أو فكّها بينما يُمكن فك بعض القطع لعدّة أجزاءٍ حتى يسهل حملها ونقلها، وبالتالي توضع خطة مدروسة تشمل القطع الهامة والتي يستلزم نقلها وتحديد الطريقة الأسهل لذلك
شركة نقل اثاث بالرياض

Edifid said...

Awesome article, thank you for your time in sharing it.
Digital Marketing Agency in Kenya
Marketing Blogs and Materials
How to Make Money in Kenya
Content Writing Services

takiblogjakibloger said...

Mało kto ma aż 5000 obserwujących na Instagramie.

دریچه منهول said...

برخی به دلیل عدم آشنایی کافی با محصولات و یا کمی صرفه جویی در هزینه ها در پروژه های بزرگ از دریچه منهول چدنی استفاده می کنند اما همانطور که بالاتر اشاره شد وزن سنگین و سرقت آسان آنها سبب شده که محصول کارشناسان دریچه منهول پلی اتیلن و دریچه منهول کامپوزیت را بر آن برتر بدانند. در واقع دریچه منهول چدنی بروز شده سایر انواع دریچه های منهول و هندهول محسوب می شوند.

123bet said...

This blog speaks very well. Thanks for sharing these.
สมัคร 123betting

hotrabatte com said...

Even though I am here for the first time, I am very impressed with your post. Thanks for sharing. For another content visit me at my blog

Alexandra Trevino said...

Great topic, thanks!  Can you do my case brief for me?

fullcrackapp said...

Great post. I am constantly checking this blog and I am impressed! Extremely useful information, especially the last part
I am very interested in such information. I have been looking for this specific information for a very long time.
Thanks and good luck. atnsoft key manager crack

Tran Hung said...

If you want to grow, look for a great opportunity. If you want to have a great company, think about the problems you face before you think of success.
my site: