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
SREのためのテレメトリー技術の探究 / Telemetry for SRE
yuukit
13
3k
超高速データサイエンス
matsui_528
2
380
説明可能な機械学習と数理最適化
kelicht
2
920
Agentic AI フレームワーク戦略白書 (2025年度版)
mickey_kubo
1
120
"主観で終わらせない"定性データ活用 ― プロダクトディスカバリーを加速させるインサイトマネジメント / Utilizing qualitative data that "doesn't end with subjectivity" - Insight management that accelerates product discovery
kaminashi
15
20k
その推薦システムの評価指標、ユーザーの感覚とズレてるかも
kuri8ive
1
310
【NICOGRAPH2025】Photographic Conviviality: ボディペイント・ワークショップによる 同時的かつ共生的な写真体験
toremolo72
0
160
ACL読み会2025: Can Language Models Reason about Individualistic Human Values and Preferences?
yukizenimoto
0
120
20年前に50代だった人たちの今
hysmrk
0
140
ブレグマン距離最小化に基づくリース表現量推定:バイアス除去学習の統一理論
masakat0
0
130
令和最新技術で伝統掲示板を再構築: HonoX で作る型安全なスレッドフロート型掲示板 / かろっく@calloc134 - Hono Conference 2025
calloc134
0
550
情報技術の社会実装に向けた応用と課題:ニュースメディアの事例から / appmech-jsce 2025
upura
0
310
Featured
See All Featured
Stop Working from a Prison Cell
hatefulcrawdad
273
21k
Navigating Team Friction
lara
192
16k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.7k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
2.1k
Practical Orchestrator
shlominoach
191
11k
What's in a price? How to price your products and services
michaelherold
247
13k
From π to Pie charts
rasagy
0
120
Music & Morning Musume
bryan
47
7.1k
Designing for Timeless Needs
cassininazir
0
130
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
0
1.9k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
0
110
Accessibility Awareness
sabderemane
0
51
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