Pankov Artem.Improving drupal performance www.hr portal.ru.DrupalCamp Kyiv 2011

2,424 views
2,353 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,424
On SlideShare
0
From Embeds
0
Number of Embeds
1,033
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Pankov Artem.Improving drupal performance www.hr portal.ru.DrupalCamp Kyiv 2011

  1. 1. Improving Drupal performance www.hr-portal.ru
  2. 2. Gold Sponsor ofDrupalCamp Kyiv 2011
  3. 3. Silver Sponsors ofDrupalCamp Kyiv 2011
  4. 4. Main performance issues• Tables locking (MyISAM)• Many queries• A lot of join queries• Cache in DB• A lot of queries for anonymous users• No need for refresh cache for anonymous frequently• Slow statics• Slow clients
  5. 5. InnoDB features• No table locking• Auto optimization inside of innodb_pool_buffer_size size
  6. 6. Other MySQL options• Tmp_table_size = 512 Mb• Query_cache_size• Max_connections• join_buffer_size?• thread_concurrency?• mysqltuner
  7. 7. Nginx – cache for anonymous usersproxy_cache_path /var/nginx/cache levels=1:2 keys_zone=hrportal:10m inactive=10m;proxy_cache hrportal; proxy_cache_key $host$uri?$args; proxy_no_cache $cookie_logged; proxy_cache_bypass $cookie_logged; proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504; proxy_pass_header Set-Cookie; proxy_ignore_headers "Expires" "Cache-Control"; #proxy_ignore_headers "Expires"; proxy_cache_valid 200 301 302 304 1h;
  8. 8. Other nginx features• Fast static• Proxy for slow clients• Anti – DDoS• Gzip• No keep-alive with backend • Static cache for remote backends 
  9. 9. Site speed & traffic
  10. 10. Loadimpact
  11. 11. Future optimization• ESI• MongoDB
  12. 12. Вопросы к докладчику Pankov Artem artem@pankov.biz +7 903 726 19 69

×