Your SlideShare is downloading. ×
0
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Making Joomla! site fly with nginx : Joomla! day Malaysia 2011

4,651

Published on

Published in: Technology, Business
1 Comment
4 Likes
Statistics
Notes
  • Thanx for the slide!
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total Views
4,651
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
57
Comments
1
Likes
4
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  1. Joomla! Day Malaysia 2011 Making Joomla! Site fly with Nginx Errazudin Ishakwww.mimos.my © 2009 MIMOS Berhad. All Rights Reserved.
  2. Agenda • Me • Joomla! • “engine X” • Benchmarks • Sampleswww.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  3. About Me • Errazudin Ishak • @errazudin • Senior engineer @ Mimos Bhd Malaysia • Focuses on web application development, deployment, performance and stability. • 2009 : foss.my , MyGOSSCON • 2010 : Entp. PHP Techtalk, BarcampKL, PHP Meetup, MOSC2010, PHP Northwest UK, MyGOSSCON • 2011 : INTAN Tech Update, Wordpress Conf. Asiawww.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  4. www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  5. Joomla! 23.5mil *downloads Techcrunch June 11th; http://goo.gl/DTveSwww.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  6. Joomla! 1.6 +2.5mil *downloads Techcrunch June 11th; http://goo.gl/DTveSwww.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  7. www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  8. nginx • Free • X platform • open-source • (high-performance) • lightweight • HTTP server • reverse proxy • IMAP/POP3 proxy serverwww.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  9. http://commons.wikimedia.org/wiki/File:Whittle_Jet_Engine_W2-700.JPG “Im the author of nginx (pronounced "engine x")- Igor Sysoev (nginx creator)www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  10. http://www.litchfieldimports.co.uk/forum/gtr-engine-bay.jpg Load Balance Static Content, Index files Reverse Proxy (with cache) Streamingwww.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  11. http://noisetu.be/mirrors/jet_beetle/ Loads of Request Less memory footprint Use less CPU C10K Certifiedwww.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  12. http://www.gtrblog.com/wp-content/uploads/2008/11/gtr-gt2-nurburgring-001.jpg Apache ---------- -------- Processes Async model Threads Single Thread High Memory Low Memory CPU Overhead Less CPU PHP included as PHP as separate proc. module (mod_php) over FastCGIwww.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  13. Boston.com Numberswww.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  14. Market Share for Top Servers Across All DomainsSource :Netcraft www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  15. Market Share for Top Servers Across All DomainsSource :Netcraft www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  16. Market Share for Top Servers Across the Million Busiest SitesSource :Netcraft www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  17. Market Share for Top Servers Across the Million Busiest SitesSource :Netcraft www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  18. http://goo.gl/KJC8H Who?www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  19. Me uses nginxwww.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  20. Me uses nginxwww.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  21. We also..www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  22. We all love nginx…www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  23. Modules Mail, 3rd Party Optional HTTP Standard HTTP Corewww.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  24. Modules Mail Core, Mail Auth, Mail Proxy, Mail SSL HTTP Addition, Emb. Perl, FLV, Gzip Precompression, Random Index,GeoIP, Real IP, SSL, Stub Status, Substitution, WebDAV, Google Perftools, XSLT, Secure Link, Image Filter HTTP Core, HTTP Upstream, HTTP Access, HTTP Auth Basic, HTTP Auto Index, Browser, Charset, Empty gif, FastCGI, Geo, Gzip, HTTP Headers, Index, HTTP Referer, HTTP Limit Zone, HTTP Limit Requests, Log, Map, Memchached, HTTP Proxy, Rewrite, SSI, User ID Main, Eventswww.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  25. Nginx with PHP • FastCGI • PHP-FPM (FastCGI Process Manager) • Bundled with PHP 5.3.3www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  26. Nginx with PHP : FastCGI • persistent processes, ability to handle multiple requests. • web server and gateway application communicate with sockets such as TCP • web server forwards the client request to the gateway and receives the response within a single connection • can be implemented on any platform with any programming language.www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  27. Nginx with PHP : FastCGI server { server_name mysite.com; listen 80; root /usr/share/mysite/www; index index.html; location / { fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_script_name; include fastcgi_params; } }www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  28. Nginx with Joomla! server { server_name yourdomain.com; large_client_header_buffers 4 8k; root /var/www/joomla; index index.php index.html; location / { try_files $uri $uri/ /index.php?q=$request_uri; } location ~ .php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } }www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  29. PHP-FPM • FastCGI Process Manager • Daemonizes PHP > background proc • provides a command-line script for managing PHP proc • configuration of FastCGI pools • enhances some of the FastCGI internals • increases error reporting • script terminationwww.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  30. Benchmarkshttp://www.myshutterspace.com/profile/AthonySaucedo www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  31. Benchmark : Specs • Intel Core Duo • T2400, 1.83 GHz • 2GB RAM • OS- Fedora 12www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  32. Benchmark : apacheBench • -n 100 • -c 20www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  33. Benchmark : nginxwww.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  34. Benchmark : apachewww.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  35. Benchmark : Findings Apache 2.2.15 Nginx 0.7.67 Concurrency 20 20 Doc size 674600bytes 658000bytes Complete 100% 100% Request Req per secs 7.2 8.8 Longest Req 4848ms 2638mswww.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  36. Benchmark : apacheBench • -n 500 • -c 50www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  37. Benchmark : nginxwww.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  38. Benchmark : apachewww.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  39. Benchmark : Findings Apache 2.2.12 Nginx 0.7.62Concurrency 50 50Doc size 3373300 bytes 3290000 bytesComplete 100% 100%RequestReq per secs 7.93 8.47Longest Req 12154 ms 6374 ms www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  40. Benchmark : apacheBench • -n 1000 • -c 100www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  41. Benchmark : nginxwww.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  42. Benchmark : apachewww.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  43. Benchmark : Findings Apache 2.2.12 Nginx 0.7.62Concurrency 100 100Doc size 6746000 bytes 6580000 bytesComplete 100% 100%RequestReq per secs 7.91 8.48Longest Req 19268 ms 12196 ms www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  44. http://goo.gl/4SAnf “Every nanoseconds count!” - My Big Boss (your boss also)www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  45. http://goo.gl/xmdsy Demowww.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  46. Resources• http://wiki.nginx.org/Main• Nedelcu’s book http://goo.gl/67OA• Nginx 1 Web Server Implementation Cookbook http://goo.gl/46UYq• http://php-fpm.org/• http://nginx.org www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  47. THANK YOU @errazudin errazudin.ishak@mimos.my errazudin.ishak@gmail.com* All images, logos and data are the copyright oftheir respective owners www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.

×