Parent Proxy 和 Origin Server配置学习

Parent Proxy Configuration

 1 proxy.config.http.parent_proxy_routing_enable               开启/关闭parent caching;
 2 
 3 proxy.config.http.parent_proxy.retry_time                   当父节点缓存不可用时,允许的连接重试的时间;
 4 
 5 proxy.config.http.parent_proxy.fail_threshold               尝试连接父节点缓存的次数,如果超过该次数仍然未能连接成功,则认为父节点不可用;
 6 
 7 proxy.config.http.parent_proxy.total_connect_attempts       在ATS跳过该父节点或者回复请求失败之前(取决于parent.config里的go_direct配置)允许尝试连接该父节点缓存的次数;
 8 
 9 proxy.config.http.parent_proxy.per_parent_connect_attempts  在配置多个父节点缓存的情况下,每一个父节点被允许尝试连接的次数;
10 
11 proxy.config.http.parent_proxy.connect_attempts_timeout     尝试连接父节点缓存的超时时间;
12 
13 proxy.config.http.forward.proxy_auth_to_parent              配置Traffic Server发送代理身份验证头信息到父缓存;

Origin Server Connect Attempts

 1 proxy.config.http.connect_attempts_max_retries              当源站没有响应的情况下,ATS可以尝试连接的最大次数;每一次重试会持续 [proxy.config.http.connect_attempts_timeout] 这些秒;ATS一旦尝试了最大次数还没连接成功就把这个源站标记为 'Dead' ,这样之后 [proxy.config.http.connect_attempts_max_retries_dead_server] 这个值就会用来限制那些已知的 'Dead的源站' 的被尝试连接次数;
 2 
 3 proxy.config.http.connect_attempts_max_retries_dead_server  限制ATS尝试连接 'Dead 的源站' 的最大次数;
 4 
 5 proxy.config.http.server_max_connections                    限制到所有源站socket连接的数量,0 即不启用socket连接;
 6 
 7 proxy.config.http.origin_max_connections                    限制到每一个源站socket连接的数量,0 即不启用socket连接;
 8 
 9 proxy.config.http.origin_max_connections_queue              与 [proxy.config.http.origin_max_connections] 有关,暂时不深究;
10 
11 proxy.config.http.origin_min_keep_alive_connections         ATS建立了一个到源站的连接后,可以保持的最小的连接数;即使一段时间内不使用也要保持长连接状态;这在源站支持长连接/keep-alive的情况下节省了新请求到来建立新连接的开销;
12 
13 proxy.config.http.connect_attempts_rr_retries               如果服务器有round-robin的DNS条目,则该值为在round-robin条目标记为down之前允许尝试连接失败的最大值;
14 
15 proxy.config.http.connect_attempts_timeout                  The timeout value (in seconds) for time to first byte for an origin server connection.(到源站连接的超时时间);
16 
17 proxy.config.http.post_connect_attempts_timeout             当客户端请求是POST或PUT请求,源服务器连接的超时值(以秒计);
18 
19 proxy.config.http.down_server.cache_time                    指定ATS记录 'Dead 的源站' Dead 的时间(以秒计),在该段时间内认为该源站是不可用的;
20 
21 proxy.config.http.down_server.abort_threshold               在客户端因为源站响应过慢而放弃一个用户请求之后到ATS标记源站不可用之前的时间间隔;
22 
23 proxy.config.http.uncacheable_requests_bypass_parent        设置为1,则ATS就会把不可缓存的用户请求绕过 'parent proxy' ;

 


参考:https://docs.trafficserver.apache.org/en/6.2.x/admin-guide/files/records.config.en.html


 

转载于:https://www.cnblogs.com/standby/p/6809921.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值