Find Bottlenecks of Web Sites

Find Bottlenecks of Web Sites

2019/07/31 LINE Developer Meetup 開發者小聚系列活動 #9
https://linegroup.kktix.cc/events/20190731

2102a6b8760bd6f57f672805723dd83a?s=128

line_developers_tw

July 31, 2019
Tweet

Transcript

  1. None
  2. 'JOE#PUUMFOFDLT PG8FC4JUFT LINE TODAY Case Study

  3. 8IBUJT-*/&5PEBZ

  4. 8IBUJT -*/&5PEBZ 4th tab of LINE  $POUFOU  /PUJGJDBUJPO

     4PDJBM  -JWF  ˘
  5. %JWFSTJUZPG$POUFOU

  6. *OUFSOBUJPOBMJ[BUJPO

  7. 0GGJDJBM"DDPVOU

  8. /FXT

  9. • ."6.JMMJPO • .17#JMMJPO .POUIMZ6TBHF

  10. Content Provider s Editors Users Content Provider s Content Provider

    s Content Provider s Users Users Users Users Users "SDIJUFDUVSF CMS LINE TODAY Servers CDN LINE Services Recommendation System
  11. 4FSWFS%FQMPZNFOU WEB CDN Nginx Tomcat API Nginx Tomcat Mongo DB

    Redis
  12. /FXT 3FDPNNFOEBUJPO

  13. • 8F-BVODIGSPNUP • /FYUNPSOJOH • XFHPUFSSPSSFQPSUTEVSJOHIBMGIPVS • 4PNFBSUJDMFTXJMMTIPXFSSPSQBHF • "GUFSUIBUUJNF

    TZTUFNMPPLTGJOF 4DFOBSJP
  14. • $IFDLBQQMJDBUJPOFSSPSMPHT • $IFDLNPOJUPSJOHSFQPSU • TFSWFS$16.FNPSZ*0 • $IFDLBQQMJDBUJPOBDDFTTMPHT • /VNCFSPGSFRVFTUT

    • 1SPDFTTUJNFPGSFRVFTUT /FYU4UFQ
  15. Server Monitoring • WEB

  16. Server Monitoring • API

  17. User Stats • Peak is around 2.5x

  18. • "SUJDMF$PNQPTJUJPOJTUJNFEPVU • $16MPX *0MPX • -PUTPG5$15*.&@8"*5 • /HJOY5PNDBU/HJOY5PNDBU •

    "MMJO)551 • .BYUISFBET.BYTJ[FPG%# DPOOFDUJPOT "GUFS'JSTU$IFDL
  19. 5$15*.&@8"*5

  20. • )551 • $POOFDU3FRVFTU3FTQPOTF$MPTF • )551 • 4VQQPSULFFQBMJWF • )551DPVMECFCFUUFS

    • .VMUJQMFYJOH • 6OGPSUVOBUFMZ /HJOYEPFTOPUIBWFUIJTGPS SFWFSTFQSPYZ )551WT
  21. IUUQ\ LFFQBMJWF@UJNFPVU TT LFFQBMJWF@SFRVFTUT  ^ VQTUSFBNUPNDBU\ TFSWFS LFFQBMJWF 

    ^ MPDBUJPO\ QSPYZ@QBTT IUUQUPNDBUBQJ QSPYZ@IUUQ@WFSTJPO  QSPYZ@TFU@IFBEFS $POOFDUJPO ^ /HJOY&YBNQMF
  22. • "QQMZ)UUQ • 5*.&@8"*5 • &SSPSJTSFEVDFE CVUXFTUJMMIBWF FSSPST • 4P

    /FYU4UFQ
  23. • 1SPGJMJOHUIFQSPHSBN • *TPMBUFBTFSWFSJOSFBMFOW • 0QFOEFCVHMPH • 4FOETVTQJDJPVTSFRVFTUT • "OBMZ[F

    OE $IFDL
  24. • .POHP%#SFRVFTUJTGBTU • 3FEJT PQFSBUJPOJTGBTU • 3FEJT EBUBSFDFJWJOHJTTMPX • $IFDLJOH5FNQMBUFGJMFUBLFTUJNF

    "GUFSOE $IFDL
  25. 3FEJT 1G 700M

  26. • 4PNFLFZWBMVFBSFMBSHF • 'SPN,UP. • 3FGJOFVTBHFBOEBEEMPDBMDBDIF • .JHSBUF3FEJT UP(OFUXPSLFOW •

    &YUFOEUFNQMBUFFYQJSBUJPOUJNF Solution
  27. Final Stats

  28. • .POJUPS4ZTUFNJTJNQPSUBOU • -PHTBSFZPVSGSJFOE • -PDBM$BDIFUPUIFSFTDVF $PODMVTJPO

  29. • 5IBOLZPV 2"