Enviar búsqueda
Cargar
Boost PHP Performance with Nginx
•
0 recomendaciones
•
2,029 vistas
Título mejorado por IA
Errazudin Ishak
Seguir
turbocharge your php with nginx by @errazudin #phpnw2010
Leer menos
Leer más
Tecnología
Denunciar
Compartir
Denunciar
Compartir
1 de 37
Descargar ahora
Descargar para leer sin conexión
Recomendados
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
phptechtalk
FastCGI Process Manager
FastCGI Process Manager
Mayflower GmbH
appserver.io - Präsentation auf den code.talks 2014
appserver.io - Präsentation auf den code.talks 2014
TechDivision GmbH
Serverprovisioning in einer dynamischen Infrastruktur
Serverprovisioning in einer dynamischen Infrastruktur
inovex GmbH
Accelarating PHP Applications at INTAN Sabah Technology Updates 2011
Accelarating PHP Applications at INTAN Sabah Technology Updates 2011
phptechtalk
DA with Wa - Desktop Apps With Web Apps
DA with Wa - Desktop Apps With Web Apps
phptechtalk
Joomla! Performance on Steroids
Joomla! Performance on Steroids
SiteGround.com
HTML5 Real Time and WebSocket Code Lab (SFHTML5, GTUGSF)
HTML5 Real Time and WebSocket Code Lab (SFHTML5, GTUGSF)
Peter Lubbers
Recomendados
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
Making Joomla! site fly with nginx : Joomla! day Malaysia 2011
phptechtalk
FastCGI Process Manager
FastCGI Process Manager
Mayflower GmbH
appserver.io - Präsentation auf den code.talks 2014
appserver.io - Präsentation auf den code.talks 2014
TechDivision GmbH
Serverprovisioning in einer dynamischen Infrastruktur
Serverprovisioning in einer dynamischen Infrastruktur
inovex GmbH
Accelarating PHP Applications at INTAN Sabah Technology Updates 2011
Accelarating PHP Applications at INTAN Sabah Technology Updates 2011
phptechtalk
DA with Wa - Desktop Apps With Web Apps
DA with Wa - Desktop Apps With Web Apps
phptechtalk
Joomla! Performance on Steroids
Joomla! Performance on Steroids
SiteGround.com
HTML5 Real Time and WebSocket Code Lab (SFHTML5, GTUGSF)
HTML5 Real Time and WebSocket Code Lab (SFHTML5, GTUGSF)
Peter Lubbers
Rise of the Planet of the Anonymous
Rise of the Planet of the Anonymous
phptechtalk
Cooking security sans@night
Cooking security sans@night
jtimberman
Jeff Rigby on Scaling Drupal in the Enterprise
Jeff Rigby on Scaling Drupal in the Enterprise
Joe Bachana
Sulu and the Other Guys - Symfony Live Berlin 2015
Sulu and the Other Guys - Symfony Live Berlin 2015
Sulu
Scalable applications with HTTP
Scalable applications with HTTP
Patrice Neff
HTML5 Offline Web Applications (Silicon Valley User Group)
HTML5 Offline Web Applications (Silicon Valley User Group)
robinzimmermann
Media mosa architecture - features -10 june 2010
Media mosa architecture - features -10 june 2010
Andrii Podanenko
Analysis & Design Method for OSGi-based Development
Analysis & Design Method for OSGi-based Development
Linuxmalaysia Malaysia
Sitecore 9 - What's new?
Sitecore 9 - What's new?
Adrian IORGU
PHP at Yahoo!
PHP at Yahoo!
elliando dias
Automating Oracle Database deployment with Amazon Web Services, fabric, and boto
Automating Oracle Database deployment with Amazon Web Services, fabric, and boto
mjbommar
Zitec+ +new business+-+3iun2010
Zitec+ +new business+-+3iun2010
Agora Group
Camelone-2012 HTML5 WebSocket ActiveMQ/Camel
Camelone-2012 HTML5 WebSocket ActiveMQ/Camel
Charles Moulliard
Mule Integration Simplified
Mule Integration Simplified
Bui Kiet
Mobile Web High Performance
Mobile Web High Performance
Amjad Rafique
WebSocket Perspectives and Vision for the Future
WebSocket Perspectives and Vision for the Future
Frank Greco
HTML5 Real-Time and Connectivity
HTML5 Real-Time and Connectivity
Peter Lubbers
V2 peter-lubbers-sf-jug-websocket
V2 peter-lubbers-sf-jug-websocket
brent bucci
Scaling wix.com to 100 million users
Scaling wix.com to 100 million users
Aviran Mordo
Peter lubbers-html5-offline-web-apps
Peter lubbers-html5-offline-web-apps
Skills Matter
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
Maria Levchenko
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
wesley chun
Más contenido relacionado
Similar a Boost PHP Performance with Nginx
Rise of the Planet of the Anonymous
Rise of the Planet of the Anonymous
phptechtalk
Cooking security sans@night
Cooking security sans@night
jtimberman
Jeff Rigby on Scaling Drupal in the Enterprise
Jeff Rigby on Scaling Drupal in the Enterprise
Joe Bachana
Sulu and the Other Guys - Symfony Live Berlin 2015
Sulu and the Other Guys - Symfony Live Berlin 2015
Sulu
Scalable applications with HTTP
Scalable applications with HTTP
Patrice Neff
HTML5 Offline Web Applications (Silicon Valley User Group)
HTML5 Offline Web Applications (Silicon Valley User Group)
robinzimmermann
Media mosa architecture - features -10 june 2010
Media mosa architecture - features -10 june 2010
Andrii Podanenko
Analysis & Design Method for OSGi-based Development
Analysis & Design Method for OSGi-based Development
Linuxmalaysia Malaysia
Sitecore 9 - What's new?
Sitecore 9 - What's new?
Adrian IORGU
PHP at Yahoo!
PHP at Yahoo!
elliando dias
Automating Oracle Database deployment with Amazon Web Services, fabric, and boto
Automating Oracle Database deployment with Amazon Web Services, fabric, and boto
mjbommar
Zitec+ +new business+-+3iun2010
Zitec+ +new business+-+3iun2010
Agora Group
Camelone-2012 HTML5 WebSocket ActiveMQ/Camel
Camelone-2012 HTML5 WebSocket ActiveMQ/Camel
Charles Moulliard
Mule Integration Simplified
Mule Integration Simplified
Bui Kiet
Mobile Web High Performance
Mobile Web High Performance
Amjad Rafique
WebSocket Perspectives and Vision for the Future
WebSocket Perspectives and Vision for the Future
Frank Greco
HTML5 Real-Time and Connectivity
HTML5 Real-Time and Connectivity
Peter Lubbers
V2 peter-lubbers-sf-jug-websocket
V2 peter-lubbers-sf-jug-websocket
brent bucci
Scaling wix.com to 100 million users
Scaling wix.com to 100 million users
Aviran Mordo
Peter lubbers-html5-offline-web-apps
Peter lubbers-html5-offline-web-apps
Skills Matter
Similar a Boost PHP Performance with Nginx
(20)
Rise of the Planet of the Anonymous
Rise of the Planet of the Anonymous
Cooking security sans@night
Cooking security sans@night
Jeff Rigby on Scaling Drupal in the Enterprise
Jeff Rigby on Scaling Drupal in the Enterprise
Sulu and the Other Guys - Symfony Live Berlin 2015
Sulu and the Other Guys - Symfony Live Berlin 2015
Scalable applications with HTTP
Scalable applications with HTTP
HTML5 Offline Web Applications (Silicon Valley User Group)
HTML5 Offline Web Applications (Silicon Valley User Group)
Media mosa architecture - features -10 june 2010
Media mosa architecture - features -10 june 2010
Analysis & Design Method for OSGi-based Development
Analysis & Design Method for OSGi-based Development
Sitecore 9 - What's new?
Sitecore 9 - What's new?
PHP at Yahoo!
PHP at Yahoo!
Automating Oracle Database deployment with Amazon Web Services, fabric, and boto
Automating Oracle Database deployment with Amazon Web Services, fabric, and boto
Zitec+ +new business+-+3iun2010
Zitec+ +new business+-+3iun2010
Camelone-2012 HTML5 WebSocket ActiveMQ/Camel
Camelone-2012 HTML5 WebSocket ActiveMQ/Camel
Mule Integration Simplified
Mule Integration Simplified
Mobile Web High Performance
Mobile Web High Performance
WebSocket Perspectives and Vision for the Future
WebSocket Perspectives and Vision for the Future
HTML5 Real-Time and Connectivity
HTML5 Real-Time and Connectivity
V2 peter-lubbers-sf-jug-websocket
V2 peter-lubbers-sf-jug-websocket
Scaling wix.com to 100 million users
Scaling wix.com to 100 million users
Peter lubbers-html5-offline-web-apps
Peter lubbers-html5-offline-web-apps
Último
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
Maria Levchenko
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
wesley chun
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
wesley chun
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
apidays
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Neo4j
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
HampshireHUG
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
Enterprise Knowledge
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
Safe Software
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
Principled Technologies
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
UK Journal
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
Delhi Call girls
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
Delhi Call girls
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Igalia
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
sudhanshuwaghmare1
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
debabhi2
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
Anna Loughnan Colquhoun
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Katpro Technologies
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
Último
(20)
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Boost PHP Performance with Nginx
1.
Turbocharge Your PHP
with Nginx Errazudin Ishak www.mimos.my © 2009 MIMOS Berhad. All Rights Reserved.
2.
Agenda
• me • “engine X” • nginx.conf • ..with PHP • Benchmark • Samples www.mimos.my © 2010 MIMOS Berhad. All Rights Reserved.
3.
"Apache is like
Microsoft Word, it has a million options but you only need six. Nginx does those six things, and it does five of them 50 times faster than Apache." - Chris Lea, ChrisLea.com http://www.abacuspub.com/fsd/catalog/s574.htm www.mimos.my © 2010 MIMOS Berhad. All Rights Reserved.
4.
Me
• Senior engineer @ Mimos Malaysia • Focuses on web application development, deployment, performance and stability. • 2009 : foss.my , MyGOSSCON • 2010 : Entp. PHP Techtalk, BarcampKL, PHP Meetup, MOSC2010 www.mimos.my © 2010 MIMOS Berhad. All Rights Reserved.
5.
www.mimos.my
© 2010 MIMOS Berhad. All Rights Reserved.
6.
nginx
• Free • X platform • open-source • (high-performance) • lightweight • HTTP server • reverse proxy • IMAP/POP3 proxy server www.mimos.my © 2010 MIMOS Berhad. All Rights Reserved.
7.
http://noisetu.be/mirrors/jet_beetle/
“I'm the author of nginx (pronounced "engine x")- Igor Sysoev (nginx creator) www.mimos.my © 2010 MIMOS Berhad. All Rights Reserved.
8.
http://image.importtuner.com/f/miscellaneous/new-tomei-turbo-kits-for-sr/29774779/tomei-bolt-on-turbo-kit-for-sr.jpg
Load Balance Static Content, Index files Reverse Proxy (with cache) Streaming www.mimos.my © 2010 MIMOS Berhad. All Rights Reserved.
9.
http://www.litchfieldimports.co.uk/forum/gtr-engine-bay.jpg
Loads of Request Less memory footprint Use less CPU C10K Certified www.mimos.my © 2010 MIMOS Berhad. All Rights Reserved.
10.
http://www.gtrblog.com/wp-content/uploads/2008/11/gtr-gt2-nurburgring-001.jpg
Apache -------- ---------- Async model Processes Single Thread Threads Low Memory High Memory Less CPU CPU Overhead PHP as separate proc. PHP included as over FastCGI module (mod_php) www.mimos.my © 2010 MIMOS Berhad. All Rights Reserved.
11.
Numbers
http://www.scoobyworld.co.uk/catalog/images/BFamber-1.jpg www.mimos.my © 2010 MIMOS Berhad. All Rights Reserved.
12.
Market Share for
Top Servers Across All Domains 213,458,815 Source : Netcraft www.mimos.my © 2010 MIMOS Berhad. All Rights Reserved.
13.
Market Share for
Top Servers Across the Million Busiest Sites Source : Netcraft www.mimos.my © 2010 MIMOS Berhad. All Rights Reserved.
14.
Market Share for
Top Servers Across All Domains 227,225,642 Source : Netcraft www.mimos.my © 2010 MIMOS Berhad. All Rights Reserved.
15.
Market Share for
Top Servers Across the Million Busiest Sites Source : Netcraft www.mimos.my © 2010 MIMOS Berhad. All Rights Reserved.
16.
http://www.autoguide.com/auto-news/wp-content/uploads/2010/09/The_Stig_Top_Gear_Eight.jpg
Who? www.mimos.my © 2010 MIMOS Berhad. All Rights Reserved.
17.
Me uses nginx www.mimos.my
© 2010 MIMOS Berhad. All Rights Reserved.
18.
Me uses nginx www.mimos.my
© 2010 MIMOS Berhad. All Rights Reserved.
19.
We also.. www.mimos.my
© 2010 MIMOS Berhad. All Rights Reserved.
20.
We all love
nginx… www.mimos.my © 2010 MIMOS Berhad. All Rights Reserved.
21.
Modules
Mail, 3rd Party Optional HTTP Standard HTTP Core www.mimos.my © 2010 MIMOS Berhad. All Rights Reserved.
22.
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, Events www.mimos.my © 2010 MIMOS Berhad. All Rights Reserved.
23.
Nginx with PHP
• FastCGI • PHP-FPM (FastCGI Process Manager) • Bundled with PHP 5.3.3 www.mimos.my © 2010 MIMOS Berhad. All Rights Reserved.
24.
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 © 2010 MIMOS Berhad. All Rights Reserved.
25.
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 © 2010 MIMOS Berhad. All Rights Reserved.
26.
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 termination www.mimos.my © 2010 MIMOS Berhad. All Rights Reserved.
27.
Benchmark http://www.myshutterspace.com/profile/AthonySaucedo
www.mimos.my © 2010 MIMOS Berhad. All Rights Reserved.
28.
Benchmark : Specs
• AMD Turion 64 • 1MB L2 Cache, 1.8 GHz • 1GB RAM • OS- Karmic Koala • (my old 4 y.o. Acer) www.mimos.my © 2010 MIMOS Berhad. All Rights Reserved.
29.
Benchmark : apacheBench
• -n 5000 • -c 500 www.mimos.my © 2010 MIMOS Berhad. All Rights Reserved.
30.
Benchmark : nginx www.mimos.my
© 2010 MIMOS Berhad. All Rights Reserved.
31.
Benchmark : apache
(runs..) www.mimos.my © 2010 MIMOS Berhad. All Rights Reserved.
32.
Benchmark : apache
(end) www.mimos.my © 2010 MIMOS Berhad. All Rights Reserved.
33.
Benchmark : Findings
Apache 2.2.12 Nginx 0.7.62 Concurrency 500 500 Doc size 2195 bytes 2195 bytes Complete 100% 100% Request Req per secs 327 3003 Longest Req 15269ms 296ms www.mimos.my © 2010 MIMOS Berhad. All Rights Reserved.
34.
“Every nanoseconds count!”
- My Big Boss (your boss also) http://geekonfilm.files.wordpress.com/2009/09/vader.jpg www.mimos.my © 2010 MIMOS Berhad. All Rights Reserved.
35.
Resources •
http://wiki.nginx.org/Main • Nedelcu’s book http://goo.gl/67OA • http://php-fpm.org/ • http://nginx.org • #nginx www.mimos.my © 2010 MIMOS Berhad. All Rights Reserved.
36.
http://goo.gl/EbTI
Demo www.mimos.my © 2010 MIMOS Berhad. All Rights Reserved.
37.
THANK YOU
@errazudin http://joind.in/2067 * All images, logos and data are the copyright of their respective owners www.mimos.my © 2009 MIMOS Berhad. All Rights Reserved.
Descargar ahora