• 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


    作者:Standby一生热爱名山大川、草原沙漠,还有妹子
    出处:http://www.cnblogs.com/standby/

    本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

  • 相关阅读:
    看看大对象是如何爆你的内存
    Web Api 多项目文档生成之SwaggerUI
    react-native执行 npm install cl.exe找不到 的问题
    在SourceTree中使用Git submodule
    [ElasticSearch] 如何使用中文分詞ik與繁簡轉換stconvert插件
    [Activator-HelloAkka] Create our Actors
    [Activator-HelloAkka] Define our Actors
    [Activator- HelloAkka] Define our Messages
    [Scala] Currying
    [Scala] Pattern Matching(模式匹配)
  • 原文地址:https://www.cnblogs.com/standby/p/6809921.html
Copyright © 2020-2023  润新知