Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.
Traffic Server 介简
淘宝网 -- 核心系 研 :千石统 发
qianshi@taobao.com
http://www.flyinfo.net
Agenda
• 功能概览
• 架构 & 模型
• Plugin 开发
• 配置 CDN
TS 何物为
• Apache Traffic Server™ is fast, scalable and
extensible HTTP/1.1 compliant caching proxy
server.
回首 去过
功能概览
• web 代理 存缓
• 反向代理
• 多 存级缓
存命中缓
存未命中缓
反向代理
多 存级缓
并发问题
• C10k
– http://www.kegel.com/c10k.html
• C10k-C500k
– http://www.dbanotes.net/arch/c10k_c500k.html
• C1000k
– http:/...
步事件 理异 处
CPU 多核支持
架构
• 多 程 步状 机线 异 态
– 每个 听端口 建监 创 accept 程线
– 每个 core 分配 2-3 个 程线
– 独立的 程 理 控和日志线 处 监
– 每个活 的 求 持状 机跃 请 维 态
• 支持 Plugins
– ...
架构
架构
程模型线
同类比较
ATS HAProxy nginx Squid Varnish
Work Threads  X X X 
Multi-process X #

#

Event-driven     X
Plugin APIs  X...
Plugin 开发
Plugin 例子
Http 状态转换 Hook
Http 状态转换 Hook
配置 CDN
CONFIG proxy.config.http.server_port INT 80
CONFIG proxy.config.reverse_proxy.enabled INT 1
CONFIG proxy.config.url...
更多信息
• http://www.flyinfo.net/category/traffic-
server/
参考文献
• https://cwiki.apache.org/TS/traffic-
server.html
• Traffic Server Meetup, ApacheCon 2009.
• Leif Hedstrom, Apache T...
Thank you!
Any question?
Nächste SlideShare
Wird geladen in …5
×

Traffic server overview

7.357 Aufrufe

Veröffentlicht am

Traffic server overview

Veröffentlicht in: Technologie
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://redirect.is/fyxsb0u } ......................................................................................................................... Download Full EPUB Ebook here { https://redirect.is/fyxsb0u } ......................................................................................................................... Download Full doc Ebook here { https://redirect.is/fyxsb0u } ......................................................................................................................... Download PDF EBOOK here { https://redirect.is/fyxsb0u } ......................................................................................................................... Download EPUB Ebook here { https://redirect.is/fyxsb0u } ......................................................................................................................... Download doc Ebook here { https://redirect.is/fyxsb0u } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THE is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, EBOOK, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THE Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THE the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Antworten 
    Sind Sie sicher, dass Sie …  Ja  Nein
    Ihre Nachricht erscheint hier
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://redirect.is/fyxsb0u } ......................................................................................................................... Download Full EPUB Ebook here { https://redirect.is/fyxsb0u } ......................................................................................................................... Download Full doc Ebook here { https://redirect.is/fyxsb0u } ......................................................................................................................... Download PDF EBOOK here { https://redirect.is/fyxsb0u } ......................................................................................................................... Download EPUB Ebook here { https://redirect.is/fyxsb0u } ......................................................................................................................... Download doc Ebook here { https://redirect.is/fyxsb0u } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THE is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, EBOOK, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THE Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THE the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Antworten 
    Sind Sie sicher, dass Sie …  Ja  Nein
    Ihre Nachricht erscheint hier
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THE is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, EBOOK, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THE Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THE the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Antworten 
    Sind Sie sicher, dass Sie …  Ja  Nein
    Ihre Nachricht erscheint hier
  • Follow the link, new dating source: ♥♥♥ http://bit.ly/39mQKz3 ♥♥♥
       Antworten 
    Sind Sie sicher, dass Sie …  Ja  Nein
    Ihre Nachricht erscheint hier
  • Sex in your area is here: ❶❶❶ http://bit.ly/39mQKz3 ❶❶❶
       Antworten 
    Sind Sie sicher, dass Sie …  Ja  Nein
    Ihre Nachricht erscheint hier

Traffic server overview

  1. 1. Traffic Server 介简 淘宝网 -- 核心系 研 :千石统 发 qianshi@taobao.com http://www.flyinfo.net
  2. 2. Agenda • 功能概览 • 架构 & 模型 • Plugin 开发 • 配置 CDN
  3. 3. TS 何物为 • Apache Traffic Server™ is fast, scalable and extensible HTTP/1.1 compliant caching proxy server.
  4. 4. 回首 去过
  5. 5. 功能概览 • web 代理 存缓 • 反向代理 • 多 存级缓
  6. 6. 存命中缓
  7. 7. 存未命中缓
  8. 8. 反向代理
  9. 9. 多 存级缓
  10. 10. 并发问题 • C10k – http://www.kegel.com/c10k.html • C10k-C500k – http://www.dbanotes.net/arch/c10k_c500k.html • C1000k – http://www.slideshare.net/mryufeng/c1000k • 解决之道 – 步事件 理异 处 – CPU 多核支持
  11. 11. 步事件 理异 处
  12. 12. CPU 多核支持
  13. 13. 架构 • 多 程 步状 机线 异 态 – 每个 听端口 建监 创 accept 程线 – 每个 core 分配 2-3 个 程线 – 独立的 程 理 控和日志线 处 监 – 每个活 的 求 持状 机跃 请 维 态 • 支持 Plugins – 在状 机的不同 段 行态 阶 进 Hook – 其他 的支持(协议 NNTP, streaming, FTP )
  14. 14. 架构
  15. 15. 架构
  16. 16. 程模型线
  17. 17. 同类比较 ATS HAProxy nginx Squid Varnish Work Threads  X X X  Multi-process X #  #  Event-driven     X Plugin APIs  X # # # Forward proxy  X X  X Reverse proxy      Transp. proxy #    X Load Balancer      Cache  X    ESI  X X   ICP  X X  X Keep-Alive  X    SSL  X   X Pipeline  X   X
  18. 18. Plugin 开发
  19. 19. Plugin 例子
  20. 20. Http 状态转换 Hook
  21. 21. Http 状态转换 Hook
  22. 22. 配置 CDN CONFIG proxy.config.http.server_port INT 80 CONFIG proxy.config.reverse_proxy.enabled INT 1 CONFIG proxy.config.url_remap.remap_required INT 1 map http://cdn.example.com/img http://img.example.com reverse_map http://img.example.com http://cdn.example.com/img 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 records.config remap.config
  23. 23. 更多信息 • http://www.flyinfo.net/category/traffic- server/
  24. 24. 参考文献 • https://cwiki.apache.org/TS/traffic- server.html • Traffic Server Meetup, ApacheCon 2009. • Leif Hedstrom, Apache Traffic Server - HTTP Proxy Server on the Edge, Velocity 2010. • Leif Hedstrom, Driving Apache Traffic Server, OSCON 2010.
  25. 25. Thank you! Any question?

×