340 likes | 362 Views
Explore the history and benefits of Apache Traffic Server, a powerful HTTP proxy server. Learn about overcoming concurrency challenges, building a CDN, TCP connection management, and server load balancing. Discover key features and how it outperforms with up to 350,000 requests/sec. Get insights on configuration, scalability, and performance optimization.
E N D
Apache Traffic Server • HTTP Proxy Server on the Edge • Leif Hedstrom • Engineer • leif@yahoo-inc.com • zwoop@apache.org
Agenda • History and background of Traffic Server • Brief introduction to HTTP intermediaries • Concurrency problems (and solutions) • Choosing an intermediary • Building a CDN • TCP connection management • Server Load Balancer (if time permits)
Traffic Server performance • 350,000 requests / sec in production CDN • 30 Gbps / second • Max capacity is at least 10x normal usage, to deal with massive spikes. • 85,000 requests / sec with small content out of cache, for a single (lab)box • 3.6Gbps out of a single box, with larger content (4x GigE NIC bonded) (all numbers from Y! CDN and lab testing).
Traffic Server making Ops easy • Traffic Server will restart automatically if it crashes • Traffic Server will kill itself if it isn’t responding • Traffic Server can reload most configurations without server restarts • Adding plugins is a matter of dropping in the shared object, and restarting • Stats and configurations are accessible via command line utilities
Traffic Server CDN configuration CONFIG proxy.config.http.server_port INT 80CONFIG proxy.config.cache.ram_cache.size INT 512MB CONFIG proxy.config.url_remap.remap_required INT 1 map http://cdn.example.com/js http://js.example.com reverse_map http://js.example.com http://cdn.example.com/js map http://cdn.example.com/css http://css.example.com reverse_map http://css.example.com http://cdn.exampe.com/css map http://cdn.example.com/img http://img.example.com reverse_map http://img.example.com http://cdn.example.com/img /dev/sd2
Executive Summary • Understand your requirements • Evaluate available solutions • Building a CDN is easy • Apache Traffic Server is • Fast and SMP scalable • HTTP/1.1 compliant • Battle hardened • Easy to configure and operate • Actively developed • Free as in beer