Varnish – nowoczesny akcelerator HTTP dla dostawców treści.pdf

(287 KB) Pobierz
748982233 UNPDF
A modern HTTP accelerator
for content providers
Leszek Urbański
Trader Media East Competence Center
PLNOG 4 – Warsaw, 2010-03-05
748982233.008.png 748982233.009.png 748982233.010.png
Varnish
a state-of-the-art reverse proxy and cache
open source, initially developed for a
Norwegian tabloid “Verdens Gang” in 2006
Poul-Henning Kamp – architect and lead
developer
Linpro AS
748982233.011.png 748982233.001.png
Varnish
used by TOP100 sites
Twitter
Photobucket
weather.com
answers.com
Hulu
Wikia
748982233.002.png 748982233.003.png
Architecture
Varnish does not fight the OS kernel!
uses virtual memory, two main stevedores:
mmap()
malloc()
scales well in SMP environments
event-based acceptor
multi-threaded worker model
static workspaces – reused, operating on
pointers
748982233.004.png 748982233.005.png
Architecture
SHM logging
an mmap()ed file shared by all threads and logging
programs
logging without syscalls!
memcpy(p + SHMLOG_DATA, t.b, l);
/* or */
vsnprintf((char *)(p + SHMLOG_DATA), mlen + 1, fmt, ap);
748982233.006.png 748982233.007.png
Zgłoś jeśli naruszono regulamin