Successfully reported this slideshow.

Varnish Reverse Proxy

13,451 views

Published on

Anders Berg, CTO, VG Multimedia (andersb@vg.no)
http://varnish-cache.org/

Published in: Technology, Education
  • Windows users could try Fastream IQ Reverse Proxy - http://www.iqproxyserver.com - for a GUI and useful stuff...
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Varnish Reverse Proxy

  1. 1. Jr¢«¢~1«¢~l«J« Anders Berg, CTO, VG Multimedia (andersb@vg. no)
  2. 2. n0 CTO at VG Nett since: F9 . ’-i[I£; !a. T”'. ;J2»”. .'; 'iJ' E1’ ' —T—j— -BESTILL I . __‘. -n 40 I BILFERIEN 3' :4“ . .., u§ $3 NA, (; ,(, ,,-u, ,(; Hun nu um uni mm ". '.“‘-1 rm Gin)‘/51¢-annorr~. 'I»: -v » n3aI| ['5 J 1 . .«, -1.-m ,4 :1 H J I | 1.- l| .r| _:A_: ': n. -1:, ‘ l'I: P:x-H’ . -I | ', H | 1. » E} . :.. .:
  3. 3. 3 ¢¢¢¢¢¢¢ Welcome to Varnish o‘. Agenda: 3. Presentation of Varnish (Anders Berg, VG Multimedia) 0‘: What 0'0 Who 0‘: Why 0'0 Some technical “details” (Poul-Henning Kamp) 0‘: How a’. Linpro delivers support (Dag-Erling Smorgrav/ Stein Halvorsen, Linpro) o‘. Open Source and professional support 3. Future plans/ Q & A (Anders Berg) andersb@vg. no I111: $ $
  4. 4. 4 »L»L¢~1«¢J«~l« What is Varnish? o‘. Varnish is a HTTP accelerator Cache cluster Clionl Internet andersb@vg. no l: —$ZlI $ $
  5. 5. 5 ¢¢¢¢¢¢¢ What else is Varnish? o‘. Varnish is fast. Very fast. o‘. Varnish is designed for the future. o‘. Varnish gives control over content. c‘. Varnish saves you $$$. 0'0 ~$ 100k-150k first 1-1,5 years for VG alone. o‘. Varnish is free. Open Source, BSD license. o‘. Varnish is supported. andersb@vg. no l: —1jlI +3 +3
  6. 6. 6 ¢¢¢¢¢¢¢ Who is behind Varnish? o‘. VG Multimedia is initiator and sponsor. o‘. Linpro contributed with development, tools and support. o‘. Poul-Henning Kamp has written majority of code. o‘. Small team, 6 month development. andersb@vg. no mlllllili ~$~ 9
  7. 7. 7 ¢¢¢¢¢¢¢ Why did we do Varnish? G Nett has a lot of traffic. e V o VG Nett is gaining complexity <-> traffic <-> expenses. o‘. “Grew” out of Squid. o‘. Varnish was missing. There was an empty spot. o‘. VG Nett has used Open Source since 1995. 3. Time to give something back. 3. Lets take a look at VG Nett today. .. andersb@vg. no l: —1jI 6 6
  8. 8. 8 ¢~L¢~L¢~L¢ VG Nett today
  9. 9. 9 ¢¢¢~L¢¢¢ VG Nett today o‘. 12 Squids gives this picture (3rd party measure) Navigator Graph 259 ll 200 ll 150 ll SECOOGS 108 ll 50rI Mon 00:00 Hon 12:00 Ion 16:00 Mon 20:00 Tue 00:00 Tue 04:00 Median Ping RTT (103.3 as ave) I0 I 1/20 I 2/20 I 3/20 I4/20 I 10/20 I 19/20 Packet Loss: 1.29 average 11.04 naxilul 10.62 8 current Probe: 20 HTTP pings using echopinq(1) every 300 seconds created on Wed Sep 20 01:21:23 2006 andersb@vg. no l: —11lI e e
  10. 10. 10 ¢¢¢¢¢¢¢ VG Nett with Varnish o‘. Wanna guess when we tested Varnish? Navigator Graph 250 u. 200 ll Seconds 5-! I-1 0 ta 0 0 S 3 5Ull 0 —> Sat Sun Mon Tue Had Thu Fri Median Ping RTT (57.3 as avg) I0 I1/20 I2/20 I 3/20 I4/20 I 10/20 I19/20 Packet Loss: 0.72 average 19.59 1 naxilul 0.43 1 current Probe: 20 HTTP pings using echop1ng[1) every 300 seconds created on Wed Sep 20 12:26:27 2006 andersb@vg. no mlllllili e e
  11. 11. 11 ¢¢¢¢¢¢¢ VG Nett with Varnish o‘. This was the test-setup. 1 Varnish, 1 backup. andersb@vg. no Inllalnlili *3 €-
  12. 12. 12 wwwi Poul-Henning Kamp o‘. Wikipedia: http: //en. wikipedia. org/ wiki/ Poul-Henning_Kamp J. Poul-Henning Kamp (sometimes known as PHK) is a Danish FreeBSD developer, responsible for implementation of the widely used I password hash algorithm, a vast quantity of systems code, including the FreeBSD GEOM storage layer, GBDE cryptographic storage transform, part of the UFS2 file system implementation, FreeBSD Jails, malloc library, clock/ time code, and the BeenNare license. I andersb@vg. no I111
  13. 13. 13 ¢¢~L~L»L¢¢ 1980 computer design 0'0 CPU 0‘. lnternt lager (RAM) 0'0 Externt lager (Disk) andersb@vg. no l: —1jlI 4.)
  14. 14. 14 ¢~L¢~L~L~L¢ 1980 operating system 0'0 Open/ read/ write/ close file 0‘. Allocate/ free memory 0‘. Send/ Receive byte on network andersb@vg. no l: —1jlI *3 +3
  15. 15. 15 ¢¢¢¢¢¢¢ 2006 computer design 0‘. Multi-core / Multi-socket, MPP, NUMA 0‘. Paging, mapping & protection, IO-MMU 0‘. L1, L2, L3 caches, Write Buffers 0‘. Frontside Bus, HyperTransport, NorthBridge, PCI 0‘. IP/ TCP checksum offloading andersb@vg. no mlllllill e 9
  16. 16. 16 ¢¢¢¢¢¢¢ 2006 operating system 0‘. We keep emulating a 1970 computer 0‘. While we have at disposal 0% Virtual Memory, Zero-copy 0% Scatter/ Gather I/ O 0'0 Kqueue, epoll, sendfile, accept filters 0% SMP, 1:1/1:N/ N:M threading andersb@vg. no l: —1jlI e e
  17. 17. 17 ¢¢¢¢¢¢¢ Road ahead 0% Continue development. This is the start, and we have ideas. 0‘. Get the product out. 0% “Success” will determine. That’s Open Source. 0‘. Write spec for Varnish 2.0 0'0 ESI . $ Compression 3. What do people need? What does ? need? . $ Let the snowball roll. andersb@vg. no l: —1jl ¢- $-
  18. 18. Thanks for your time! wwwnvarnish-cache. org

×