随笔分类 - ATS
摘要:理解缓存分级cache hierarchies 缓存分级是由彼此能够相互通信的各级缓存组成的,ATS支持几种类型的缓存分级。所有的缓存分级都有父子缓存概念。 父缓存位于缓存分级的较高级别,ATS能将请求转发(farward)转发给它。子缓存就是将ATS作为父缓存的缓存。 ATS支持父缓存和ICP两种
阅读全文
摘要:ATS缓存数据结构 HttpTunnel类 数据传输驱动器(data transfer driver),包含一个生产者(producer)集合,每个生产者连接到一个或是多个消费者(comsumer)。隧道(tunnel)处理事件和缓冲区以便数据能从生产者移动到消费者,数据会尽可能保存在引用计数类型的
阅读全文
摘要:^/(.*\.miaopai.com/stream/.*\.mp4\?.*) http://1 ^/(.*\.360safe\.com/.*cab?.*) http://$...
阅读全文
摘要:# # URL Remapping Config File # # Using remap.config allows you to accomplish two things: # # 1) Rewrite a URL (from the client) before sending it to the Origin Server. # 2) Protect the proxy serv...
阅读全文
摘要:Trafficserver的主要功能是缓存,当然你也可以用它来做纯粹的反向代理(像通常用nginx那样)。通常切入一个庞大的系统的最好方式是看如何使用,使用traffic server的主要入口有两个:配置文件和插件。所有使用者都需要配置文件,高级使用者则需要插件。 traffic支持大规模的集群处
阅读全文
摘要:# Process Records Config File # # # # RECORD-TYPE: CONFIG, LOCAL # NAME: name of variable # TYPE: INT, STRING, FLOAT # VALUE: Initial value for recor...
阅读全文
摘要:# # cache.config # # The purpose of this file is to alter caching parameters of # specific objects or sets of objects # # Each line consists of a set of tag value pairs. The pairs # are in the f...
阅读全文
摘要:# # URL Remapping Config File # # Using remap.config allows you to accomplish two things: # # 1) Rewrite a URL (from the client) before sending it to the Origin Server. # 2) Protect the proxy serv...
阅读全文
摘要:# # # Process Records Config File # # # # RECORD-TYPE: CONFIG, LOCAL # NAME: name of variable # TYPE: INT, STRING, FLOAT # VALUE: Initial value for record # # # *NOTE*: All options covered in ...
阅读全文
摘要:1、什么是正向代理(前向代理)? 在NAT技术(Network Address Translation)出现之前,所有主机无法直接与外网相连,要想上网,需要连接到一台能够访问外网的Web服务器,再通过这台服务器访问外网。而这台Web服务器就叫做“正向代理服务器”。 现在的“FQ”技术也是如何,我们把
阅读全文
摘要:一、简介 Apache Traffic Server(ATS或TS)是一个高性能的、模块化的HTTP代理和缓存服务器,与 Nginx 和 Squid 类似。它通过将频繁访问的信息缓存在网络的边缘来改善网络的效率和性能,使得访问内容在地里上更接近终端用户,在更快分发的同事也减少带宽的占用。 Apach
阅读全文
摘要:在ATS日志中我们经常遇到形形色色的缓存结果码,为了更清晰地认识它们,相关资料整理到这里: TCP_HIT 请求对象的一份合法拷贝被缓存,ATS将发送该对象给client TCP_MISS 请求对象未缓存,ATS会从源站或是父代理那里获取请求对象,并发送给client TCP_REFRESH_HIT
阅读全文