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!

84 comments:

Taylor Bara said...

What can you say about this software https://cellspyapps.org/how-to-hack-an-iphone/? Did you try some of them?

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.

TAMILSTATUS said...

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

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!

njytr said...

reverseloaded
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.

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.
click

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 mspy.com 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

John said...

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

حامد همایون

faw said...

کشنده فاو

کامیونت فاو

Harrison said...

Awesome blog post, Thanks a ton for sharing such stuff.
https://www.bloglovin.com/@pharmaceuticaldevelopmentgroup/6228915
https://mamby.com/post/medical-devices-exempted-from-510-k
https://www.weddingbee.com/members/pdgroup/
https://www.hometalk.com/member/49413372/pharmaceuticaldevelopmentgroup
https://pastebin.com/u/PDGroup
https://profile.hatena.ne.jp/PharmaceuticalDevelopmentGroup/profile
http://nerdforum.org/index.php?/user/6351-pharmaceuticaldevelopmentg/
http://www.cherryframework.com/v3/forums/users/PharmaceuticalDevelopmentGroup
https://www.doctorslounge.com/index.php/member/1487171
https://trabajo.merca20.com/author/PharmaceuticalDevelopmentGroup/

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.

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

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

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. 풀싸롱

(freaky)

apkdelightlove.com 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 Store said...

Many thanks for the shared this informative and interesting post with us. https://crackstores.com/coreldraw-graphics-suite-crack/

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.
https://pcsoftnew.com/

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.
https://topcracksoft.com/

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.
토토사이트 cragro.com/배팅사이트 안전놀이터

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?

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: https://chich3x.net/phim-sex/phim-sex-loan-luan-viet-nam-dit-chi-dau-khi-anh-hai-vang-nha

sid said...

I really like to learn PHP language this is the best language. Can anyone suggest any institute where i can learn PHP

Felisa Fix said...

I wonder where to buy book reports. I am bad at academic writing. I always fall behind with writing. I know a lot of my classmates buy papers online. I have never hired a writer before. I do need help.

Anonymous said...

This is a wonderful work we wish you success and excellence and thank you 스포츠중계

Anonymous said...

토토사이트 Thanks for sharing your info. I really appreciate your efforts and I will be waiting for your further write.
Thanks for sharing !

robertcooper said...

Your article is informative. I am glad to visit your forum. I started using the essay professor writing service. It helps me to be better. This is an important part of learning for me.

안전카지노사이트 said...

Great looking web site. 안전카지노사이트 Assume you did a lot of your very own html coding.

Helga Doris said...

Hello guys! I am a fan of such enlightening articles.Pay attention to my posts here https://nextion.tech/forums/users/helgadoris/ I own an account at the platform.

phil123321 said...

Very often you have to update applications due to growing traffic, sometimes there is simply not enough time for this. I found a way to increase my free time and turned to Paperwritingservices to help me with writing a very difficult essay. I myself have been breaking my head over him for the fifth day.

Age Of Learning Promo Code said...

Couponfollowers specializes in scalable infrastructure solutions and can assist you in optimizing and scaling your myVidster application. Our team of experts has extensive experience with Apache, PHP-FPM, and various caching technologies.

19guide03 com said...

I think the reason reading is fun is because it is a post related.

casinosite zone said...

Wow, amazing blog format! How long have you been blogging for.

casinositeone.JDS said...


Thank you for the info. I’ve definitely picked up something new from right here.

casinositeguidecom.JDS said...

This is very nice one and gives indepth information.

safetotositepro.JDS said...

Thanks for this nice article.

totosafesite said...

Thanks for sharing this brilliant article it was a very useful and helpful article.

casinositerank said...


I’m impressed, I must say. Really rarely do I encounter a blog that’s both educative and entertaining.

kontho said...

TFTI is a Colorful museum in Houston, a selfie museum + photo booth experience all in one spot. Whether you're looking for a new jaw-dropping selfie, a fun family portrait or a fun date night idea, TFTI has something for everyone. We are ranked one of the best places to take photos in Houston!

kontho said...

Quick Action is a trusted debt collection company based in Dubai. With their expertise and commitment, They help businesses and individuals recover outstanding debts efficiently. Choose Quick Action for reliable and results-oriented debt collection services. Visit here for debt recovery dubai.

Matthew Marsh said...

Al Ramsy Advocates & Legal Consultancy is a full-service law firm dedicated to delivering first-class legal solutions and powerful results to their clients. With 20 years of experience, they offer unparalleled legal services in UAE, regional and international law. Their expertise covers a wide spectrum of fields, including but not limited to, Banks, Real Estate, Services based companies, transportation, and Family law. Visit here for corporate lawyers in dubai.

Leonelepps said...

Whether you’re buying a house, selling your home, or you’re a realtor, contact Magnolia for top-rated home inspection services in Nashville, Tennessee. Check here: home inspection near me

Rehousing packers and movers said...

Get Shifting services in Gurgaon with affordable charges, and relocate to a new home.

TheTransporter Packers and Movers said...

Packers and movers Chandigarh charges vary depending on a number of factors, including the size and distance of the move, the type of goods being moved, and the services required.

Anonymous said...

Russian
VIP in Gurgaon
Gurgaon Enjoyment service
Bangalore service

Vijay Thomas said...

Contact for Hire India's Best Packers and Movers in Thiruvananthapuram, Thanks.

Movie Jacket said...

It’s help me a lot.

USA Suit said...

Thanks for providing such blogs.

Aiden Pearce Coat said...

This Article is Awesome.

Leather Jacket said...

Wow its a very good post.

securemove said...

this article is very informativeSecuremove

daisey said...

By doing that your video will get first in search results and will get more views. Basically it is not easy to research keywords ,tags and writing a particular description to a video. And by giving your video details, they will generate 1.Title 2. Tags 3.Description. and applying those to your video lead your video to get first in search results. Indigo card benefits

Grewal Transport Services said...

This blog post seems like a valuable resource for anyone looking to scale their video streaming platform! Here are some key takeaways:

Leveraging Apache and PHP-FPM seems like a promising approach for handling increased traffic on myVidster.
The detailed explanations and code examples make it easier to understand and implement the scaling process.
However, it would be interesting to see if the blog explores alternative solutions like scaling with a cloud-based platform for potentially even greater efficiency and cost-effectiveness.

Bhola Singh said...

Prior to relocating your residence and workplace, it is recommended to thoroughly assess the feedback from the company and reviews from customers before hiring packers and movers in Greater Kailash.