Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Tối ưu hóa Drupal
Search
Lê Thanh Sang
July 18, 2013
Research
150
0
Share
Tối ưu hóa Drupal
Slide của Sang trình bày các vấn đề để tối ưu hóa cho Drupal.
Lê Thanh Sang
July 18, 2013
Other Decks in Research
See All in Research
さくらインターネット研究所テックトーク2026春、研究開発Gr.25年度成果26年度方針
kikuzo
0
140
Cross-Media Information Spaces and Architectures
signer
PRO
0
290
LLM Compute Infrastructure Overview
karakurist
2
1.3k
討議:RACDA設立30周年記念都市交通フォーラム2026
trafficbrain
0
870
Using our influence and power for patient safety
helenbevan
0
340
第66回コンピュータビジョン勉強会@関東 Epona: Autoregressive Diffusion World Model for Autonomous Driving
kentosasaki
0
600
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
530
National high-resolution cropland classification of Japan with agricultural census information and multi-temporal multi-modality datasets
satai
2
130
AGI4OPT:自然言語から数理最適化を導くエ ージェントスキル Translating Human Intent into Mathematical Optimization
mickey_kubo
0
110
[チュートリアル] 電波マップ構築入門 :研究動向と課題設定の勘所
k_sato
0
440
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
250
Any-Optical-Model: A Universal Foundation Model for Optical Remote Sensing
satai
3
690
Featured
See All Featured
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
910
Large-scale JavaScript Application Architecture
addyosmani
515
110k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2k
Designing for Timeless Needs
cassininazir
1
220
Principles of Awesome APIs and How to Build Them.
keavy
128
17k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
190
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
Heart Work Chapter 1 - Part 1
lfama
PRO
7
36k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
460
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
130
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
230
The Spectacular Lies of Maps
axbom
PRO
1
750
Transcript
Optimize Drupal Make your Drupal site faster Thursday, July 18,
13
Lê Thanh Sang • http://drupal.org/user/204321 • Skype: mr.lamphong • 5
years with Drupal • Captain of Sang.IO • Senior Drupal Developer at GO1 Thursday, July 18, 13
Agenda • Hardware • WebServer • Drupal • FrontEnd •
Monitor Thursday, July 18, 13
Hardware • Many CPU as possible • Faster disk IO
as possible (Sata < SAS < SSD < PCI Flash) Thursday, July 18, 13
Web Server • Reverse Proxy • Nginx for static file
• Percona Database server • PHP-FPM + Opcode (APC, Xcache, eAccelerator) • Redis or Memcache Thursday, July 18, 13
Web Server - Reverse Proxy • Use nginx or varnish
• Cache content on RAM (Create a mount point using tmpfs) • Allow flush cache on Internal IP. Use purge module on Drupal. Thursday, July 18, 13
Web Server • Using nginx if you can. Apache is
fine, use Reverse Proxy for faster. • Using mod_pagespeed (http:// code.google.com/p/modpagespeed/) • For nginx: https://github.com/pagespeed/ ngx_pagespeed Thursday, July 18, 13
Database Server • PerconaDB or MariaDB • Don’t use same
server with Drupal if you can. • Use master for write • Slave replication for read Thursday, July 18, 13
PHP-FPM • Running via socket (faster than TCP/IP) • Only
install extension we need • Set max_request • Turn off log for production Thursday, July 18, 13
Drupal • Use Pressflow (Require PHP 5) • Block cache
• Redis cache • Authenticated cache • Remove slow module (Statistics, admin_menu, tagadelic, nice menus) • Using xdebug or xhprof for profiling Thursday, July 18, 13
Drupal theme • Never use a function in the tpl
file, always on the preprocess function • In tpl only print variables • Only use hook_theme (theme, process, preprocess) Thursday, July 18, 13
Drupal search • Don’t use default DB search • Use
search_api • Solr or Elastic Search Thursday, July 18, 13
FrontEnd • Browser can send 4~6 request per domain (2
for IE). • CSS/JS aggregation • CDN, Gzip compression, sprites, image optimization (Done if using mog_pagespeed) Thursday, July 18, 13
Summary Upgrade your hardware is alway a best solution Thursday,
July 18, 13
Monitor munin monit vnstat htop Thursday, July 18, 13
Question? Lê Thanh Sang
[email protected]
Thursday, July 18, 13