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
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
NLP2025 WS Shared Task 文法誤り訂正部門 ehiMetrick
sugiyamaseiji
0
190
利用シーンを意識した推薦システム〜SpotifyとAmazonの事例から〜
kuri8ive
1
200
NLP2025参加報告会 LT資料
hargon24
1
320
データサイエンティストの採用に関するアンケート
datascientistsociety
PRO
0
1k
Weekly AI Agents News!
masatoto
33
68k
データサイエンティストの就労意識~2015→2024 一般(個人)会員アンケートより
datascientistsociety
PRO
0
700
「エージェントって何?」から「実際の開発現場で役立つ考え方やベストプラクティス」まで
mickey_kubo
0
120
When Submarine Cables Go Dark: Examining the Web Services Resilience Amid Global Internet Disruptions
irvin
0
220
電通総研の生成AI・エージェントの取り組みエンジニアリング業務向けAI活用事例紹介
isidaitc
1
260
LLM-as-a-Judge: 文章をLLMで評価する@教育機関DXシンポ
k141303
3
820
SSII2025 [SS1] レンズレスカメラ
ssii
PRO
2
970
SSII2025 [TS3] 医工連携における画像情報学研究
ssii
PRO
2
1.2k
Featured
See All Featured
BBQ
matthewcrist
89
9.7k
KATA
mclloyd
30
14k
A designer walks into a library…
pauljervisheath
207
24k
jQuery: Nuts, Bolts and Bling
dougneiner
63
7.8k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
124
52k
Testing 201, or: Great Expectations
jmmastey
42
7.6k
Rails Girls Zürich Keynote
gr2m
94
14k
Being A Developer After 40
akosma
90
590k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.9k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.8k
Why Our Code Smells
bkeepers
PRO
337
57k
Statistics for Hackers
jakevdp
799
220k
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