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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Lê Thanh Sang
July 18, 2013
Research
0
140
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
Tweet
Share
Other Decks in Research
See All in Research
[チュートリアル] 電波マップ構築入門 :研究動向と課題設定の勘所
k_sato
0
300
「車1割削減、渋滞半減、公共交通2倍」を 熊本から岡山へ@RACDA設立30周年記念都市交通フォーラム2026
trafficbrain
1
670
Satellites Reveal Mobility: A Commuting Origin-destination Flow Generator for Global Cities
satai
3
570
世界モデルにおける分布外データ対応の方法論
koukyo1994
7
1.8k
AWSの耐久性のあるRedis互換KVSのMemoryDBについての論文を読んでみた
bootjp
1
500
Combining Deep Learning and Street View Imagery to Map Smallholder Crop Types
satai
3
640
生成AI による論文執筆サポート・ワークショップ 論文執筆・推敲編 / Generative AI-Assisted Paper Writing Support Workshop: Drafting and Revision Edition
ks91
PRO
0
140
「なんとなく」の顧客理解から脱却する ──顧客の解像度を武器にするインサイトマネジメント
tajima_kaho
9
4.9k
Upgrading Multi-Agent Pathfinding for the Real World
kei18
0
320
説明可能な機械学習と数理最適化
kelicht
2
1k
学習型データ構造:機械学習を内包する新しいデータ構造の設計と解析
matsui_528
6
3.5k
湯村研究室の紹介2025 / yumulab2025
yumulab
0
310
Featured
See All Featured
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
620
Visualization
eitanlees
150
17k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.9k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.1k
Practical Orchestrator
shlominoach
191
11k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
1
140
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
280
Building Applications with DynamoDB
mza
96
6.9k
The Cult of Friendly URLs
andyhume
79
6.8k
How to Ace a Technical Interview
jacobian
281
24k
Balancing Empowerment & Direction
lara
5
920
How GitHub (no longer) Works
holman
316
140k
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