Server Festa 2013 Autumn

2,780 views

Published on

Lightning Talk slide for Cloud Server Festa 2013 Autumn

http://serverfesta.info/

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

No Downloads
Views
Total views
2,780
On SlideShare
0
From Embeds
0
Number of Embeds
2,005
Actions
Shares
0
Downloads
3
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Server Festa 2013 Autumn

  1. 1. サバフェス2013 @ijin 12/11/2013
  2. 2. ABOUT ME (@IJIN) • Michael H. Oshita • Japanese American • In Japan since 2002 • Software/Infra/Cloud • http://ijin.github.io Engineer
  3. 3. TOOLS • dstat • apache • mysql response time slow logs • top • httperf
  4. 4. ANALYSIS • GET: 47 • POST: 990
  5. 5. BASIC TUNING • Apache • InnoDB • APC MaxClients
  6. 6. BENCHMARK httperf --server 210.140.145.151 --uri / --num-con 200 --rate 6 -v
  7. 7. BENCHMARK MaxClients tuning
  8. 8. BENCHMARK MaxClients + InnoDB
  9. 9. BENCHMARK MaxClients + InnoDB + APC
  10. 10. BENCHMARK MaxClients + InnoDB + PHP5.5 (Opcache) + APCu
  11. 11. BENCHMARK MaxClients + InnoDB + PHP5.5 (Opcache) + APCu
  12. 12. BENCHMARK MaxClients + InnoDB + PHP5.5 (Opcache) + APCu
  13. 13. BENCHMARK HAProxy
  14. 14. BENCHMARK Varnish HAProxy rate 80: Reply rate [replies/s]: min 63.6 avg 70.5 max 77.0 stddev 6.7 (3 samples) Reply time [ms]: response 693.5 transfer 51.1 Reply size [B]: header 228.0 content 48007.0 footer 2.0 (total 48237.0) Reply status: 1xx=0 2xx=1200 3xx=0 4xx=0 5xx=0 Varnish rate 100: Reply rate [replies/s]: min 98.8 avg 99.7 max 100.0 stddev 0.6 (4 samples) Reply time [ms]: response 13.3 transfer 39.6 Reply size [B]: header 342.0 content 48012.0 footer 0.0 (total 48354.0) Reply status: 1xx=0 2xx=2000 3xx=0 4xx=0 5xx=0
  15. 15. ARCHITECTURE Varnish Web, PHP Varnish, MySQL Web, PHP Web, PHP Web, PHP
  16. 16. BENCHMARK Varnish
  17. 17. BENCHMARK POST httperf --server 210.140.145.151 --add-header="Content-Type: application/x-www-form-urlencodedn" --wsesslog 20,2,svpost -v --rate 2
  18. 18. MORE TUNING • nginx • php fpm
  19. 19. ARCHITECTURE Varnish + LVS (DSR) cache clear Varnish, Web, PHP LVS, MySQL Varnish, Web, PHP Varnish, Web, PHP Varnish, Web, PHP
  20. 20. BENCHMARK Varnish + LVS (DSR)
  21. 21. ARCHITECTURE Varnish + LVS (DSR) + lua + memcached cache clear LVS, MySQL, lua + memcached Varnish, Web, PHP Varnish, Web, PHP Varnish, Web, PHP Varnish, Web, PHP
  22. 22. BENCHMARK Varnish + LVS (DSR) + lua + memcached

×