Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Highload осень 2012 лекция 10

317 views

Published on

  • Be the first to comment

  • Be the first to like this

Highload осень 2012 лекция 10

  1. 1. rb1.i lf*f*.i f*.i thttpd-rb rb2.i r.mail.ru apache + mpop + RBclient.pm rbstatd mysqlUDP/rbstat rbmap lf*f*.i apache + mod_rb lf**.mail.ru apache + mod_rb win.mail.ru www.mail.ru *.mail.ru rbimport.pl rbserver.pl lightserver.pl rbcount.pl rbnewday.pl rbdatad baserb.i
  2. 2. apache mod_include html UDP/rbstat rbmap <!-- #include virtual=“/rb/913” --> mod_rb libtmpl.so librbclnt.so rbclntd TCP/rbdata .shtml httpd.conf: LoadModule rb_module libexec/mod_rb.so <Location /rb> SetHandler rb </Location>
  3. 3. apache html UDP/rbstat rbmap httpd.conf: LoadModule rb_module libexec/mod_rb.so <Location /cgi-bin/splash> SetHandler tmpl </Location> mod_rb libtmpl.so librbclnt.so rbclntd TCP/rbdata
  4. 4. apache mod_perl html UDP/rbstat rbmap ##Reklama/ShowBanner(913)## RBclient.pm libtmpl.so librbclnt.so rbclntd TCP/rbdata MTemplate.pm libtmpl.so .tmpl
  5. 5. use RBclient; $rb = new RBclient; $html = $rb->Get(913, 0 , {}); $region = $rb->Region(„127.0.0.1‟);
  6. 6. thttpd-rb html, js, gif, swf … UDP/rbstat rbmap libtmpl.so librbclnt.so rbclntd TCP/rbdata GET /b1234567.gif — картинки GET /n12345678 — ссылки GET /cgi-bin/banners/get/913 — html-банер GET /cgi-bin/banners/js/913 — JS-баннер
  7. 7. rb1.i lf*f*.i f*.i thttpd-rb rb2.i r.mail.ru apache + mpop + RBclient.pm rbstatd mysqlUDP/rbstat rbmap lf*f*.i apache + mod_rb lf**.mail.ru apache + mod_rb win.mail.ru www.mail.ru *.mail.ru rbimport.pl rbserver.pl lightserver.pl rbcount.pl rbnewday.pl rbdatad baserb.i 50 фронтендов 8 Мб rbmap
  8. 8. rb2.i rbstat*.irbstat*.i lf*rf*.i f*.i nginx-rb rb8.i r.mail.ru imagine apache + RBclient.pm rbstatd mysql UDP/rbstat rbmap lf*lf*.i imagine lf**.mail.ru nginx-rb win.mail.ru www.mail.ru *.mail.ru rbimport.pl rbserver.pl lightserver.pl baserb.i rbdata*.i rbdatad rbstat*.irbcalc*.i rbuniqd 500 фронтендов 70 Мб rbmap
  9. 9. rb2.i rbstat*.irbstat*.i lf*rf*.i f*.i nginx-rb rb8.i r.mail.ru imagine apache + RBclient.pm mysql UDP/rbstat lf*lf*.i imagine lf**.mail.ru nginx-rb e.mail.ru mail.ru *.mail.ru rbimport.py rbserver*.pl lightserver.pl base1.i rbdata*.i rbdatad rbstat*.irbcalc*.irbuniqd 2500 фронтендов 120 Мб rbmap TCP/rbdata mysql base2.i rbstat*.irbbl*.irbrcvd UDP rsyncrbmem*.i rbstatd
  10. 10. lf*srf*.i nginx-rb lua-module top.mail.ru r3.mail.ru/k mysql UDP base1.i rbstat*.irbstat.i Expires: 2h rbtop.i rbmem*.i rbstatd tarantool batch
  11. 11. rbstat*.i lf*rf*.i nginx-rb + lua trgstat HTTP libslave mysql replication mysql rbstat*.ibannerd*.i bannerd iproto rbstat*.i trgbase.i mysql replication tarantool iproto UDP UDP
  12. 12. 60 фронтендов под HTTP/HTTPS, 15 % загрузка CPU, отдача 7 Гбит/с

×