records.config文件參數解釋

    # Process Records Config File  
    #  
    # <RECORD-TYPE> <NAME> <TYPE> <VALUE (till end of line)>  
    #  
    # RECORD-TYPE: CONFIG, LOCAL  
    # NAME: name of variable  
    # TYPE: INT, STRING, FLOAT  
    # VALUE: Initial value for record  
    # *NOTE*: All options covered in this file should be documented in the  
    # administration guide or the addendum:  
      
    ##############################################################################  
    #  
    # System Variables  
    # 系統變量  
    ##############################################################################  
    #爲TS命名  
    CONFIG proxy.config.proxy_name STRING cVM231  
    #TS配置文件目錄  
    CONFIG proxy.config.config_dir STRING etc/trafficserver  
    #命令行啓動ts時的選項  
    CONFIG proxy.config.proxy_binary_opts STRING -M  
    #該腳本在traffice_manager啓動traffice_server前執行  
    CONFIG proxy.config.env_prep STRING example_prep.sh  
    #發送報警信息至如下郵箱  
    CONFIG proxy.config.alarm_email STRING nobody  
    #用於記錄系統日誌的設備  
    CONFIG proxy.config.syslog_facility STRING LOG_DAEMON  
    #ts進程日誌記錄名稱  
    CONFIG proxy.config.output.logfile STRING traffic.out  
    #ts配置文件快照路徑  
    CONFIG proxy.config.snapshot_dir STRING snapshots  
    #末知功能 http://blog.chinaunix.net/uid-20332519-id-3538277.html  
    CONFIG proxy.config.system.mmap_max INT 2097152  
    ##############################################################################  
    #  
    # Main threads configuration (worker threads). Also see configurations for  
    # SSL threads, disk I/O threads and task threads in their respective areas.  
    # 主要線程配置(工做線程),同時能夠在各自的配置模塊進行SSL線程,磁盤I/O線程任務線程的配置。  
    #  
    ##############################################################################  
    #ts的線程數量根據可用的CPU核數進行調整,默認值爲1,即開啓。  
    CONFIG proxy.config.exec_thread.autoconfig INT 1  
    #當proxy.config.exec_thread.autoconfig值爲1時,CPU核數與TS線程數量的默認比例,默認的縮放比例是1.5。CPU核數*縮放比例=TS線程數量  
    CONFIG proxy.config.exec_thread.autoconfig.scale FLOAT 1.500000  
    #當proxy.config.exec_thread.autoconfig值爲0時,TS線程數量  
    CONFIG proxy.config.exec_thread.limit INT 2  
    #當啓用時(1),運行一個單獨的線程來處理請求。若是禁用(0),那麼只有一個線程  
    CONFIG proxy.config.accept_threads INT 1  
    ##############################################################################  
    #  
    # Local Manager  
    # 本地管理  
    #  
    ##############################################################################  
    #ts管理用戶名  
    CONFIG proxy.config.admin.admin_user STRING admin  
    #配置文件副本數量  
    CONFIG proxy.config.admin.number_config_bak INT 3  
    #選項用於指定運行的traffic_server過程,也能夠用來指定的配置文件和日誌文件的全部權  
    CONFIG proxy.config.admin.user_id STRING nobody  
    ##############################################################################  
    #  
    # Process Manager  
    # 進程管理  
    #  
    ##############################################################################  
    #配置管理端口  
    CONFIG proxy.config.admin.autoconf_port INT 8083  
    #traffic_manager和traffice_server內部通信管理端口  
    CONFIG proxy.config.process_manager.mgmt_port INT 8084  
    ##############################################################################  
    #  
    # In order to only bind a specific IP, use the following config, as in  
    # the example below. Note - this can contain two addresses, one for IPv4  
    # sockets and one for IPv6 sockets.  
    # 網絡配置  
    ##############################################################################  
    #本地代理服務器bind地址  
    LOCAL proxy.local.incoming_ip_to_bind STRING 10.16.137.195  
    #LOCAL proxy.local.incoming_ip_to_bind STRING 192.168.101.17 fc07:192:168:101::17  
    ##############################################################################  
    #  
    # Alarm Configuration  
    # 報警配置  
    #  
    ##############################################################################  
     # execute alarm as "<abs_path>/<bin> "<MSG_STRING_FROM_PROXY>""  
    #當發現報警時,能夠觸發一個指定腳本.默認名稱是example_alarm_bin.sh,放在bin目錄下面.你必須編輯該腳本知足需求  
    CONFIG proxy.config.alarm.bin STRING example_alarm_bin.sh  
    #example_alarm_bin.sh的完整路徑  
    CONFIG proxy.config.alarm.abs_path STRING NULL  
    ##############################################################################  
    #  
    # HTTP Engine  
    # HTTP引擎  
    #  
    ##############################################################################  
     ##########  
     # basics #  
     # 基礎 #  
     ##########  
     # The server ports are listed here. These are separated by spaces or commas.  
     # 這裏配置服務的監控端口列表.可使用空格和逗號進行分隔  
     # Each port is a colon separated list of values, which must include a  
     # port number. The order is irrelevant. Other options are  
     #  
     # ipv4 - Use IPv4 (default)  
     # ipv6 - Use IPv6  
     # tr-in - Transparent inbound.  
     # tr-out - Transparent outbound.  
     # tr-full - Fully transparent (inbound and outbound).  
     # tr-pass - Transparently Pass-through non-HTTP traffic (in conjuction with tr-in).  
     # ssl - SSL terminated port.  
     # blind - Blind tunnel port (CONNECT only)  
     # ip-in=[addr] - Bind inbound IP address (listen for client).  
     # ip-out=[addr] - Bind outbound IP address (connect to origin server).  
     # ip-resolve=[style] - Set the IP resolution style.  
     #  
     # Note - address types must agree with each other and the ipv4/ipv6  
     # option if specified. IPv6 addresses must be enclosed in brackets.  
     # ip-out can be repeated as long as each address is a different  
     # family. If ip-in is specified as an IPv6 address, the port is  
     # forced to IPv6. Transparent ports cannot be bound to an IP  
     # address on the transparent side.  
     #  
     # The '=' is optional for any option with a value.  
     #  
     # Example 1: Port 8080 IPv6 inbound transparent, and port 80 IPv4  
     # "8080:ipv6:tr-in 80"  
     #  
     # Example 2: Listen on standard http and https ports for IPv4 and IPv6,  
     # fully transparent on the http ports. Also provide an non-transparent  
     # port at address 192.168.1.56 on port 8080.  
     # "80:ipv4:tr-full tr-full:80:ipv6 443:ipv4:ssl 443:ssl:ipv6 ip-in=192.168.1.56:8080"  
     #  
    #HTTP通信所使用的端口列表  
    CONFIG proxy.config.http.server_ports STRING 8080  
     # Ports on the origin server to which a blind tunnel may connect.  
    # 源服務器上能夠鏈接的(盲目)隧道端口列表 //??  
    CONFIG proxy.config.http.connect_ports STRING 443 563  
     # The via settings have four values  
     # 0 - Do not modify / set this via header  
     # 1 - Update the via, with normal verbosity  
     # 2 - Update the via, with higher verbosity  
     # 3 - Update the via, with highest verbosity  
     # Via的設置有如下四種  
     # 0 - 不作任何修改 /設置目前的via頭  
     # 1 - 更新via,添加少許信息  
     # 2 - 更新via,添加較多的信息  
     # 3 - 更新via,添加最多的信息  
    #配置如何處理VIA請求到源服務器  
    CONFIG proxy.config.http.insert_request_via_str INT 1  
    #配置如何處理VIA響應到源服務器  
    CONFIG proxy.config.http.insert_response_via_str INT 0  
     # Insert a Server: header, this has three values  
     # 0 - Don't add or modify the Server: header  
     # 1 - Add a Server: header  
     # 2 - Only add a Server: header if one doesn't exist already  
     # 添加一個Server頭部,有如下三個選項  
     # 0 - 不添加\修改目前的頭部  
     # 1 - 添加一個服務器頭部  
     # 2 - 只在當前不存在Server頭時則添加  
    #設置ts響應服務狀態  
    CONFIG proxy.config.http.response_server_enabled INT 1  
    #設置ts在響應頭時是否插入age頭  
    CONFIG proxy.config.http.insert_age_in_response INT 1  
    #啓用/禁用com域名擴展.解決不合格的主機名前面加上www.和追加.com,而後重定向到的擴展地址。  
    #例如:若是用戶端發出請求的主機,而後流量重定向請求www.host.com  
    CONFIG proxy.config.http.enable_url_expandomatic INT 0  
    #不使用dns解析,將全部的DNS請求至父cache  
    CONFIG proxy.config.http.no_dns_just_forward_to_parent INT 0  
    #將不可緩存請求使用旁路方式請求父緩存  
    CONFIG proxy.config.http.uncacheable_requests_bypass_parent INT 1  
    #對於進來鏈接是否開啓keep-alive  
    CONFIG proxy.config.http.keep_alive_enabled_in INT 1  
    #對於出口鏈接是否開啓keep-alive  
    CONFIG proxy.config.http.keep_alive_enabled_out INT 1  
    #指定ts是否能夠生成一個分塊響應(chunk)  
    CONFIG proxy.config.http.chunking_enabled INT 1  
     # send http11 requests:  
     # 0 - Never  
     # 1 - Always  
     # 2 - if the server has returned http1.1 before  
     # 3 - if the client request is 1.1 & the server has returned 1.1 before  
     # If use_client_addr is set to 1, options 2 and 3 cause the proxy to use  
     # the client HTTP version for upstream requests.  
     # 發送http 1.1請求  
     # 0 - 從不  
     # 1 - 始終  
     # 2 - 若是服務器端返回的http版本小於1.1,那麼就生成一個區塊  
     # 3 - 若是客戶端請求是HTTP/1.1和源服務器返回HTTP/1.1,生成一個區塊的反應  
     # 若是使用HTTP/1.1,而後可使用Traffic Server的流水線keep-alive鏈接到原始服務器。  
     # 若是使用HTTP/0.9,而後流量服務器不使用保持活動狀態鏈接到原始服務器。  
     # 若是使用了HTTP/1.0,而後可使用流量服務器保持活動的鏈接,無需流水線到原始服務器。  
    #配置ts發送HTTP 1.1請求  
    CONFIG proxy.config.http.send_http11_requests INT 1  
    #這裏使用3會影響斷點續傳  
     # Share server connections  
     # 0 - Never  
     # 1 - Share, with a single global connection pool  
     # 2 - Share, with a connection pool per worker thread  
     # 共享服務器鏈接  
     # 0 - 從不  
     # 1 - 共享,使用一個全局共享鏈接池  
     # 2 - 共享,每一個worker使用一個共享鏈接池  
    #啓用/禁用 重用服務器會話  
    CONFIG proxy.config.http.share_server_sessions INT 2  
    CONFIG proxy.config.http.origin_server_pipeline INT 1  
    CONFIG proxy.config.http.user_agent_pipeline INT 8  
     ##########################  
     # HTTP referer filtering #  
     # HTTP referer 過濾器 #  
     ##########################  
    #http的防盜鏈開關  
    CONFIG proxy.config.http.referer_filter INT 0  
    #是否爲格式化重定向。詳見remap.conf  
    CONFIG proxy.config.http.referer_format_redirect INT 0  
    #默認的防盜鏈重定向地址  
    CONFIG proxy.config.http.referer_default_redirect STRING http://www.example.com/  
     ##############################  
     # parent proxy configuration #  
     # 父節點配置 #  
     ##############################  
    #開啓、關閉父節點開關  
    CONFIG proxy.config.http.parent_proxy_routing_enable INT 0  
    #當父節點不可用時,重試父節點時間  
    CONFIG proxy.config.http.parent_proxy.retry_time INT 300  
     # Parent fail threshold is the number of request that must  
     # fail within the retry window for the parent to be marked  
     # down  
    #探測父節點次數,若是超過閾值,則認爲父節點不可用  
    CONFIG proxy.config.http.parent_proxy.fail_threshold INT 10  
    #在跳過父節點緩存或者是回覆請求失敗以前容許鏈接嘗試的次數(依賴於bypass.config的go_direct選項)  
    CONFIG proxy.config.http.parent_proxy.total_connect_attempts INT 4  
    #當有多個父節點時,每一個父節點容許鏈接數  
    CONFIG proxy.config.http.parent_proxy.per_parent_connect_attempts INT 2  
    #父節點緩存的鏈接嘗試的超時值  
    CONFIG proxy.config.http.parent_proxy.connect_attempts_timeout INT 30  
    #配置ts發送代理身份驗證頭信息到父緩存  
    CONFIG proxy.config.http.forward.proxy_auth_to_parent INT 0  
     ###################################  
     # HTTP connection timeouts (secs) #  
     # HTTP 鏈接超時時間 #  
     ###################################  
     # out: proxy -> origin server connection  
     # 出:代理服務器 -> 源服務器鏈接  
     # in : ua -> proxy connection  
     # 進:ua -> 代理服務器鏈接  
    #指定事務結束後爲保證後續進入請求而繼續打開的鏈接時間  
    CONFIG proxy.config.http.keep_alive_no_activity_timeout_in INT 115  
    #指定事務結束後爲保證後續出口請求而繼續打開的鏈接時間  
    CONFIG proxy.config.http.keep_alive_no_activity_timeout_out INT 120  
    #指定若是發生網絡擁塞時(入),ts服務器多長時間後與客戶端斷開鏈接  
    CONFIG proxy.config.http.transaction_no_activity_timeout_in INT 30  
    #指定若是發生網絡擁塞時(出),ts服務器多長時間後與客戶端斷開鏈接  
    CONFIG proxy.config.http.transaction_no_activity_timeout_out INT 30  
    #和客戶端保持鏈接的最長時間(入)  
    CONFIG proxy.config.http.transaction_active_timeout_in INT 900  
    #和客戶端保持鏈接的最長時間(出)  
    CONFIG proxy.config.http.transaction_active_timeout_out INT 0  
    #關閉沒有活動的鏈接的超時時間間隔  
    CONFIG proxy.config.http.accept_no_activity_timeout INT 120  
    #指定預緩存服務器鏈接多久後斷開與源服務器的鏈接  
    ###################異步傳輸###########################################  
    # enable the cache to read from an object while it is being added to the cache  
    #1爲開啓異步傳輸機制.若是開啓read while write機制,有讀取相同object請求到來時,此時object尚未寫到cache中去,cache查找會失敗,但能夠直接從這個負責寫操做的CacheVC中讀取object。這樣不只讀取速度快,同時也避免了回源,減小了到源服務器的請求連接數  
    CONFIG proxy.config.cache.enable_read_while_writer INT   
    #提升後臺填充的時間限制  
    CONFIG proxy.config.http.background_fill_active_timeout INT 60  
    #總文件大小的比例已寫入時,TS停止其餘繼續從原始服務器獲取的進程,而到緩存中讀取。0爲有系統來決定比例。設置這裏後,若客戶端多線程分段下載,當第一個線程下載1/3時,TS即將此url記錄,第2個線程下載1/3--2/3時,因爲TS並未緩存完整的內容,卻記錄了此url,會返回12002的錯誤並繼續回源。  
    CONFIG proxy.config.http.background_fill_completed_threshold FLOAT 0.300000  
    #-1即最大重讀次數沒有限制  
    <span>CONFIG proxy.config.http.cache.max_open_read_retries INT -1</span>  
     ##################################  
     # origin server connect attempts #  
     # 源服務器鏈接嘗試 #  
     ##################################  
    #當源服務器沒有響應時,ts最大重試次數  
    CONFIG proxy.config.http.connect_attempts_max_retries INT 6  
    #當源服務器不可用時,ts最大重試次數  
    CONFIG proxy.config.http.connect_attempts_max_retries_dead_server INT 3  
    #若是該服務器DNS有作輪循,則在輪循條目標記爲down以前容許嘗試鏈接失敗的最大值  
    CONFIG proxy.config.http.connect_attempts_rr_retries INT 3  
    #源服務器鏈接的超時值  
    CONFIG proxy.config.http.connect_attempts_timeout INT 30  
    #POST/PUT請求時,源服務器的超時值  
    CONFIG proxy.config.http.post_connect_attempts_timeout INT 1800  
    #指定多長時間後,TS標記源服務器爲down掉  
    CONFIG proxy.config.http.down_server.cache_time INT 300  
    #在一個客戶端由於源服務器相應太慢而放棄請求以後到TS標記該服務器不可達之間的秒數  
    CONFIG proxy.config.http.down_server.abort_threshold INT 10  
     ##################################  
     # congestion control #  
     # 擁塞控制 #  
     ##################################  
    #開啓/禁用擁塞控制選項。這個配置就中止TS服務器轉發請求至源服務器,  
    #TS向客戶端發送消息讓其稍後重試源服務器  
    CONFIG proxy.config.http.congestion_control.enabled INT 0  
     #############################  
     # negative response caching #  
     # 負響應緩存 #  
     #############################  
    #開啓/禁用負響應緩存.當TS緩存到一個負響應時(如404),下一客戶端請求相應URL時,直接由TS服務器返回負響應  
    #負響應包括:204 305 400 403 404 405 500 501 502 503 504  
    CONFIG proxy.config.http.negative_caching_enabled INT 0  
    #緩存負響應時間  
    CONFIG proxy.config.http.negative_caching_lifetime INT 1800  
     #########################  
     # proxy users variables #  
     # 代理用戶變量 #  
     #########################  
    #啓用以後將刪除From頭來保護用戶的隱私。  
    CONFIG proxy.config.http.anonymize_remove_from INT 0  
    #啓用以後將刪除Refer頭來保護用戶和網站的隱私  
    CONFIG proxy.config.http.anonymize_remove_referer INT 0  
    #啓用以後將刪除user-agent頭來保護用戶的隱私  
    CONFIG proxy.config.http.anonymize_remove_user_agent INT 0  
    #啓用以後將刪除cookie頭來保護用戶的隱私  
    CONFIG proxy.config.http.anonymize_remove_cookie INT 0  
    #啓用以後將刪除client_ip頭來保護用戶的隱私  
    CONFIG proxy.config.http.anonymize_remove_client_ip INT 0  
    #啓用以後將添加Client_IP頭保留客戶端的IP地址。  
    CONFIG proxy.config.http.anonymize_insert_client_ip INT 1  
    #啓用以後,TS傳出請求後,刪除的頭部列表  
    CONFIG proxy.config.http.anonymize_other_header_list STRING NULL  
    #啓用後,將添加客戶端的IP地址添加到x-forward-for  
    CONFIG proxy.config.http.insert_squid_x_forwarded_for INT 1  
     ############  
     # security #  
     # 安全 #  
     ############  
    #啓用/禁用HTTP PUSH的選項。  
    CONFIG proxy.config.http.push_method_enabled INT 0  
    # ###################################  
    # # HTTP Quick filtering (security) #  
    # # HTTP 快速過濾器(安全) #  
    # ###################################  
    # this functionality is moved to ip_allow.config  
    # 這個功能轉移至ip_allow.config  
     #################  
     # cache control #  
     # 緩存控制 #  
     #################  
    #配置是否開啓http緩存  
    CONFIG proxy.config.http.cache.http INT 1  
     # Enabling this setting allows the proxy to cache empty documents. This currently  
     # requires that the response has a Content-Length: header, with a value of "0".  
    #是否緩存Content-Length爲0的緩存  
    CONFIG proxy.config.http.cache.allow_empty_doc INT 0  
    #是否忽略客戶端no-cache  
    CONFIG proxy.config.http.cache.ignore_client_no_cache INT 1  
    #啓用時,若是客戶端發出的請求有no-cache頭,Traffic Server會發出一個有條件的請求到原始服務器。  
    CONFIG proxy.config.http.cache.ims_on_client_no_cache INT 1  
    #是否忽略源服務器的no-cache  
    CONFIG proxy.config.http.cache.ignore_server_no_cache INT 0  
    #是否忽略全部客戶端中的max-age頭  
    CONFIG proxy.config.http.cache.ignore_client_cc_max_age INT 0  
    #啓用後使全部的Accept-Encoding頭部規範化:  
    CONFIG proxy.config.http.normalize_ae_gzip INT 0  
    #不啓用會緩存多個副本,浪費緩存空間  
     # cache responses to cookies has 5 options:  
     # 0 - do not cache any responses to cookies  
     # 1 - cache for any content-type  
     # 2 - cache only for image types  
     # 3 - cache for all but text content-types  
     # 4 - cache for all but text content-types except OS response  
     # without "Set-Cookie" or with "Cache-Control: public"  
     # See also cache-responses-to-cookies in cache.config.  
     # 緩存響應cookie的五個選項  
     # 0 - 不緩存全部cookies響應  
     # 1 - 只緩存content-type  
     # 2 - 只緩存圖片  
     # 3 - 緩存全部的文字內容類型  
     # 4 - 緩存爲全部除了系統響應的沒有」Set-Cookie」或者有」Cache-Control:public」的文字內容類型  
    #ts緩存cookies操做  
    CONFIG proxy.config.http.cache.cache_responses_to_cookies INT 1  
    #啓用/關閉TS是否忽略服務器傳過來的認證頭信息  
    CONFIG proxy.config.http.cache.ignore_authentication INT 0  
    #緩存動態文件內容  
    CONFIG proxy.config.http.cache.cache_urls_that_look_dynamic INT 1  
    #啓用/禁用緩存不含vary頭的可選http版本的內容  
    CONFIG proxy.config.http.cache.enable_default_vary_headers INT 0  
     # when_to_revalidate has 5 options:  
     # 0 - default. use cache directives or heuristic  
     # 1 - stale if heuristic  
     # 2 - always stale (always revalidate)  
     # 3 - never stale  
     # 4 - always revalidate if request is conditional, else default is used  
     # 從新驗證內容的5個選項  
     # 0 - 默認.使用緩存指令或啓發式緩存  
     # 1 - 啓發式緩存  
     # 2 - 老是陳舊的(老是從新驗證)  
     # 3 - 不刷新  
     # 4 - 若是請求含有條件則驗證,不然使用默認值  
     # 若是該請求中包含的If-Modified-since,而後TS的老是從新驗證緩存的內容,  
     # 並使用客戶端的代理請求的If-Modified-Since的頭。  
     #  
    #TS從新驗證緩存機制  
    CONFIG proxy.config.http.cache.when_to_revalidate INT 0  
     # Some old MSIE browsers don't send no-cache headers to  
     # reverse proxies or transparent caches, this variable controls  
     # when to add no-cache headers to MSIE requests:  
     # -1 - no-cache is never added, stats are not updated  
     # 0 - default; no-cache not added to MSIE requests  
     # 1 - no-cache added to IMS MSIE requests  
     # 2 - no-cache added to all MSIE requests  
     # 一些老的MSIE瀏覽器不發送no-cache頭部到TS,這個變量能夠控制爲MSIE請求添加no-cache頭部  
     # -1 - no-cache從不被添加,統計數據不更新  
     # 0 - 默認;no-cache不添加到MSIE的請求  
     # 1 - no-cache被添加到MSIE IMS的請求  
     # 2 - no-cache被添加到全部的MSIE的請求  
    #配置TS處理msie的no-cache請求  
    CONFIG proxy.config.http.cache.when_to_add_no_cache_to_msie_requests INT -1  
     # required headers: three options:  
     # 0 - No required headers to make document cachable  
     # 1 - "Last-Modified:", "Expires:", or "Cache-Control: max-age" required  
     # 2 - explicit lifetime required, "Expires:" or "Cache-Control: max-age"  
     # 所需頭部的三個選項:  
     # 0 - 不須要使用頭部來決定文檔是否能夠緩存  
     # 1 - 須要Last-Modified:", "Expires:", 或者 "Cache-Control: max-age"  
     # 2 - 明確緩存生命週期須要的,"Expires:" 或者"Cache-Control: max-age"  
    #配置TS緩存所須要的頭部  
    CONFIG proxy.config.http.cache.required_headers INT 2  
    #在不能被緩存前,舊對象可以響應的最大時間  
    CONFIG proxy.config.http.cache.max_stale_age INT 604800  
    #啓用時,TS在緩存中的查找範圍  
    CONFIG proxy.config.http.cache.range.lookup INT 1  
     ########################  
     # heuristic expiration #  
     # 預約過時 #  
     ########################  
    #一個在緩存中沒有過時的而且沒有過時時間的對象能被保持的最短期  
    CONFIG proxy.config.http.cache.heuristic_min_lifetime INT 3600  
    #一個在緩存中沒有過時的而且沒有過時時間的對象能被保持的最長時間  
    CONFIG proxy.config.http.cache.heuristic_max_lifetime INT 86400  
    #設置這個變量來指定計算有效期的老化因子。TS存儲該對象從其上次修改後這個百分比的時間。默認值爲0.1  
    CONFIG proxy.config.http.cache.heuristic_lm_factor FLOAT 0.100000  
    #在此文檔過時以前,多久以內對於ts進行刷新檢查一次  
    CONFIG proxy.config.http.cache.fuzz.time INT 240  
    #指定刷新一個文檔指定模糊時間的機率  
    CONFIG proxy.config.http.cache.fuzz.probability FLOAT 0.005000  
     #########################################  
     # dynamic content & content negotiation #  
     # 動態內容和內容協商 #  
     #########################################  
    #設置這個變量是用來指定在請求是文本時HTTP頭部的多種格式:好比HTML  
    CONFIG proxy.config.http.cache.vary_default_text STRING NULL  
    #設置這個變量是用來指定在請求是圖片時HTTP頭部的多種格式:好比GIF  
    CONFIG proxy.config.http.cache.vary_default_images STRING NULL  
    #設置這個變量是用來指定在請求不是文本和圖片時HTTP頭部的多種格式  
    CONFIG proxy.config.http.cache.vary_default_other STRING NULL  
     ##############################################################  
     # The HTTP stats are expensive, turn off you don't need them #  
     # HTTP統計是很是消耗資源,不須要的話請關閉它們 #  
     ##############################################################  
    CONFIG proxy.config.http.enable_http_stats INT 1  
    ##############################################################################  
    #  
    # Customizable User Response Pages  
    # 自定義用戶響應頁面  
    #  
    ##############################################################################  
     # 0 - turn off customizable user response pages  
     # 1 - enable customizable user response pages in only the "default" directory  
     # 2 - enable language-targeted user response pages  
     # 0 - 禁用用戶自定義響應頁面  
     # 1 - 僅在默認目錄中使用自定義的用戶響應頁面  
     # 2 - 使用語言針對性的用戶響應頁面  
    CONFIG proxy.config.body_factory.enable_customizations INT 1  
    #啓用/禁用自定義響應頁面的日誌記錄.當啓用時,TS服務器會記錄請求自定義響應頁面的每次使用或修改  
    CONFIG proxy.config.body_factory.enable_logging INT 0  
     # 0 - never suppress generated responses  
     # 1 - always suppress generated responses  
     # 2 - suppress responses for intercepted traffic  
     # 0 - 永遠不會抑制生成響應頁面  
     # 1 - 老是抑制生成響應頁面  
     # 2 - 抑制響應頁面僅用於攔截的流量  
    CONFIG proxy.config.body_factory.response_suppression_mode INT 0  
    ##############################################################################  
    #  
    # Net Subsystem  
    # 網絡子系統  
    #  
    ##############################################################################  
    #配置最大網絡鏈接限制  
    CONFIG proxy.config.net.connections_throttle INT 30000  
     # Enable defer accept / accept filtering. On Linux, this is a timeout, sec.  
    #啓用推遲接受/接受過濾。在Linux上,這是一個以秒爲單位的超時時間  
    CONFIG proxy.config.net.defer_accept INT 45  
    ##############################################################################  
    #  
    # Cluster Subsystem  
    # 集羣子系統  
    #  
    ##############################################################################  
     # cluster type requires restart to change  
     # 1 is full clustering, 2 is mgmt only, 3 is no clustering  
     # 集羣類型須要重啓才能生效  
     # 1=全集羣模式  
     # 2=管理模式  
     # 3=非集羣模式  
    LOCAL proxy.local.cluster.type INT 3  
    #配置集羣端口  
    CONFIG proxy.config.cluster.cluster_port INT 8086  
    #配置可靠的服務端口.可靠端口用於發送配置信息在集羣節點間。  
    #全部的集羣節點間必須使用相同的可靠服務端口  
    CONFIG proxy.config.cluster.rsport INT 8088  
    #指定組播端口。組播端口是用於節點識別。在集羣中全部節點必須使用相同的組播端口  
    CONFIG proxy.config.cluster.mcport INT 8089  
    #指定一個組播地址  
    CONFIG proxy.config.cluster.mc_group_addr STRING 224.0.1.37  
    #指定組播的ttl  
    CONFIG proxy.config.cluster.mc_ttl INT 1  
    #配置記錄組播衝突消息  
    CONFIG proxy.config.cluster.log_bogus_mc_msgs INT 1  
    #設置集羣模式的以太網口  
    CONFIG proxy.config.cluster.ethernet_interface STRING lo  
    ##############################################################################  
    #  
    # Cache  
    # 緩存  
    #  
    ##############################################################################  
    #當值爲1即開啓時,TS在必定的時間內會保持內cache.config指定的HTTP對象  
    CONFIG proxy.config.cache.permit.pinning INT 0  
     # default the ram cache size to AUTO_SIZE (-1) based on cache size  
     # (approximately 10 MB of RAM cache per GB of disk cache)  
     # alternatively, set to a fixed value such as 21474836480 (20GB)  
     #默認狀況下內存的緩存大小是其於磁盤緩存大小決定  
     #(每GB的磁盤緩存大約有10MB RAM緩存)  
     #固然它也能夠設置爲一個固定值,好比21474836480 (20GB)  
     #  
     #trafficserver的cache層分爲兩層:磁盤disk與緩存ram cache。  
     #在用戶第一次請求一個頁面時,ts會回源取出object返回給用戶的同時,將object寫入disk。  
     #當用戶第二次請求object時,直接disk命中,這時若是條件符合就將object寫入ram cache,  
     #之後用戶再次請求相同object時,就可能直接緩存命中,從而提升響應速度  
     #  
    #設置RAM緩存大小  
    CONFIG proxy.config.cache.ram_cache.size INT -1  
    #用於肯定寫入緩存的object大小,只有小於該數值的object纔會緩存,默認爲4M  
    CONFIG proxy.config.cache.ram_cache_cutoff INT 4194304  
     # Replacement algorithm  
     # 0 : Clocked Least Frequently Used by Size (CLFUS) w/optional compression  
     # 1 : LRU w/o optional compression - trivially simple  
     #兩種RAM替換緩存算法  
     # 0 :CLFUS算法-TS特有的算法。http://blog.chinaunix.net/uid-23242010-id-147989.html  
     # 1 :LRU算法-最久未使用算法(LRU):最久沒有訪問的內容做爲替換對象.可選壓縮,且很是簡單。  
     # 但緩存污染狀況比較嚴重.http://www.cnblogs.com/-OYK/archive/2012/12/05/2803317.html  
    #配置RAM緩存算法  
    CONFIG proxy.config.cache.ram_cache.algorithm INT 0  
     # Filter inserts into the RAM cache to ensure that they have been seen at  
     # least once. For LRU, this provides scan resistance. Note that CLFUS  
     # already requires that a document have history before it is inserted, so  
     # for CLFUS, setting this option means that a document must be seen three  
     # times before it is added to the RAM cache.  
     # 啓用這個選項將過濾器插入到RAM緩存,以確保他們已經見過至少一次。對於LRU,這將增長掃描的阻力。  
    CONFIG proxy.config.cache.ram_cache.use_seen_filter INT 0  
     # Compress the content of the ram cache:  
     # 0 : no compression  
     # 1 : fastlz (extremely fast, relatively low compression)  
     # 2 : libz (moderate speed, reasonable compression)  
     # 3 : liblzma (very slow, high compression)  
     # NOTE: compression runs on task threads. To use more cores for  
     # compression, increase proxy.config.task_threads.  
     # 壓縮RAM緩存內容  
     # 0 :不壓縮  
     # 1 :很是快,但相對較低的壓縮比  
     # 2 :中等速度,合理壓縮  
     # 3 : 很是慢,高度壓縮  
     # 提醒:壓縮任務運行在線程。須要使用更多核壓縮時,就須要調整proxy.config.task_threads  
     #  
     # 這是針對CLFUS算法RAM緩存壓縮選項。不要混淆於Content-Encoding: gzip選項。  
     # RAM緩存壓縮的目的是儘可能節省內存空間。並用戶、代理都是不可見的  
     #  
    #配置RAM緩存壓縮類型  
    CONFIG proxy.config.cache.ram_cache.compress INT 0  
     # The maximum number of alternates that are allowed for any given URL.  
     # It is not possible to strictly enforce this if the variable  
     # 'proxy.config.cache.vary_on_user_agent' is set to 1.  
     # The default value for 'proxy.config.cache.vary_on_user_agent' is 0.  
     # (0 disables the maximum number of alts check)  
    #指定TS緩存一個對象不一樣版本的數目。默認爲:5  
    CONFIG proxy.config.cache.limits.http.max_alts INT 5  
     # The target size of a contiguous fragment on disk.  
     # Acceptable values are powers of 2, e.g. 65536, 131072, 262144, 524288, 1048576, 2097152.  
     # Larger could waste memory on slow connections, smaller could waste seeks.  
     # 目標對象尺寸可以使用磁盤上連續的片斷(簡單點說就是對大文件進行分塊存儲)  
     # 可接收的值是2的冪值,好比:65536, 131072, 262144, 524288, 1048576, 2097152.  
     # 太大在慢鏈接時會浪費內存,過小會形成浪費  
    #配置RAM緩存的單個分片大小  
    CONFIG proxy.config.cache.target_fragment_size INT 1048576  
     # The maximum size of a document that will be stored in the cache.  
     # (0 disables the maximum document size check)  
     #存儲在緩存中最大的文件大小,設置爲0即禁用最大尺寸檢查)  
    CONFIG proxy.config.cache.max_doc_size INT 0  
       
     # This controls how many objects (average) the disk caches can hold, and  
     # how much memory it'll consume for the directory structure.  
    #配置最小的平均對象大小.默認是8000 byte http://blog.chinaunix.net/uid-23242010-id-2182847.html  
    CONFIG proxy.config.cache.min_average_object_size INT 8000  
     # How many I/O threads to allocate per disk (spindle). Be aware that RAID  
     # disks would show up to TS as a single spindle.  
     # 每塊磁盤分配多少的I/O線程。當使用RAID時TS會把多塊硬盤當成一塊硬盤。  
    CONFIG proxy.config.cache.threads_per_disk INT 8  
     # Time (in ms) to delay until retrying to acquire a cache lock. Setting  
     # this low can reduce latencies in some cases, but can consume more CPU.  
     # If you experience CPU spinning, try increasing this setting.  
     # 從新嘗試從新獲取一個緩存鎖的時間(毫秒).這個設置在某些狀況下減小延遲。  
     # 但須要消耗更多的CPU,若是你有CPU調整經驗,能夠嘗試高度該設置。  
    CONFIG proxy.config.cache.mutex_retry_delay INT 2  
     # The interim storage disks. Must use raw disks.  
     # Only support at most 8 interim disks now. e.g.  
     # proxy.config.cache.interim.storage STRING /dev/sda /dev/sdb/  
     # 臨時存儲磁盤。必要是使用裸設備。  
     # 如今只須要8個臨時磁盤。好比:  
     # proxy.config.cache.interim.storage STRING /dev/sda /dev/sdb/  
    LOCAL proxy.config.cache.interim.storage STRING NULL  
    ##############################################################################  
    #  
    # DNS  
    #  
    ##############################################################################  
    #啓用或禁用本地域名的放大。  
    #TS能夠嘗試解決不合格的主機名經過擴大到本地域名。  
    #例如,一個客戶端發出請求到一個不合格的主機(host_x)和TS本地域名是y.com,而後TS將擴大host_x.y.com主機名  
    CONFIG proxy.config.dns.search_default_domains INT 0  
    #啓用或禁用DNS服務器選擇。當啓用時,TS將選擇標準的splitdns.config配置文件  
    CONFIG proxy.config.dns.splitDNS.enabled INT 0  
    #沒有打到這個選項的具體用途  
    CONFIG proxy.config.dns.max_dns_in_flight INT 2048  
     # Additional URL expansions for http DNS lookup  
    #指定的主機名擴展列表會自動添加到主機名查找失敗後.  
    #好比你須要TS添加一個主機名爲.org的擴展而後指定org爲該變動的值  
    CONFIG proxy.config.dns.url_expansions STRING NULL  
    #啓用/禁用DNS服務器輪循  
    CONFIG proxy.config.dns.round_robin_nameservers INT 0  
    #指定DNS服務器  
    CONFIG proxy.config.dns.nameservers STRING NULL  
    #指定dns解析文件  
    CONFIG proxy.config.dns.resolv_conf STRING /etc/resolv.conf  
     # This provides additional resilience against DNS forgery, particularly in  
     # forward or transparent proxies, but requires that the resolver populates  
     # the queries section of the response properly.  
    #這裏提供了一個額外的對DNS的僞造  
    CONFIG proxy.config.dns.validate_query_name INT 0  
    ##############################################################################  
    #  
    # HostDB  
    #  
    ##############################################################################  
     # in entries, may not be changed while running  
     # note that in order to increase hostdb.size, hostdb.storage_size should  
     # also be increase. These are best guesses, you will have to monitor this.  
    #存在數據庫中的最大文件條目  
    CONFIG proxy.config.hostdb.size INT 120000  
    #用於儲存hostdb的空間大小(bytes).若是調整了proxy.config.hostdb.size的值,就必要更改這個。  
    CONFIG proxy.config.hostdb.storage_size INT 33554432  
     # ttl modes:  
     # 0 = obey  
     # 1 = ignore  
     # 2 = min(X,ttl)  
     # 3 = max(X,ttl)  
     # ttl 模式  
     # 0 = 遵循DNS響應的TTL  
     # 1 = 忽略。使用內部超時值  
     # 2 = 使用DNS和內部TTL較小的值。內部超時值成爲最大的TTL  
     # 3 = 使用DNS和內部TTL較大的值。內部超時值成爲最小的TTL  
    CONFIG proxy.config.hostdb.ttl_mode INT 0  
     # in minutes...  
    #內部數據條目的超時時間,單位分鐘  
    CONFIG proxy.config.hostdb.timeout INT 1440  
     # round-robin addresses for single clients  
     # (can cause authentication problems)  
    #設置使用更加嚴格的DNS輪循策略。  
    #當這個選項和proxy.config.hostdb.timed_round_robin禁用時(0),  
    #那麼TS會將相同的客戶端始終使用相同的原始服務器,只要原始服務器可用。  
    #若是不這樣作,每一個請求的IP地址最會在變化的。  
    #這個設置優化級要高於proxy.config.hostdb.timed_round_robin.  
    CONFIG proxy.config.hostdb.strict_round_robin INT 0  
    若是設置爲0,可能會致使節點服務器回源不均衡,節點會優先選擇它上次回源的源機,而不是輪詢。推薦選擇1  
    ##############################################################################  
    #  
    # Logging Config  
    # 日誌配置  
    #  
    ##############################################################################  
     # possible values for logging_enabled:  
     # 0: no logging at all  
     # 1: log errors only  
     # 2: log transactions only  
     # 3: full logging (errors + transactions)  
     # 可啓用的日誌記錄:  
     # 0:所有不記錄  
     # 1:只記錄錯誤  
     # 2:只記錄事務日誌  
     # 3:所有記錄(錯誤和事務)  
    CONFIG proxy.config.log.logging_enabled INT 3  
    #數據刷新到磁盤以前的最大緩衝時間  
    CONFIG proxy.config.log.max_secs_per_buffer INT 5  
    #分配給日誌目錄的空間大小(MB)  
    CONFIG proxy.config.log.max_space_mb_for_logs INT 25000  
    #孤兒日誌的最大容量,孤兒日誌是指本來發送到網絡上的日誌,因爲網絡的緣由,  
    #如日誌服務器鏈接中斷、網絡傳輸速度太慢,致使發送端的日誌堆積量超過指定的閾值  
    #(這個閾值可由collation_max_send_buffers等參數控制),則會把這些日誌,寫到本地磁盤上,變成孤兒日誌。  
    #max_space_mb_for_orphan_logs的配置值,常令用戶感受到困惑,這裏詳細解釋一下:  
    #TS在往磁盤寫日誌前,會計算日誌的容量以及磁盤的容量,檢查它們是否達到指定的閾值,若是達到則會丟棄日誌。  
    #TS在計算已經寫到磁盤上的日誌的總容量時,是把普通日誌與孤獨日誌,一塊兒計算的。  
    #所以,TS須要肯定日誌的最大容量,該採用max_space_mb_for_logs仍是max_space_mb_for_orphan_logs?TS採用下面的規則計算:  
    #若是logs_xml.config裏,沒有任何LogObject配置了CollationHosts,則採用max_space_mb_for_logs的值。  
    #若是全部LogObject都不寫本地磁盤(注意若打開了squid_log,會自動建立一個寫本地磁盤的LogObject),則採用  
      
    max_space_mb_for_orphan_logs的值。  
    #若是即有寫本在磁盤的LogObject,又有寫網絡的LogObject,則取這二者的較大的值。  
    #這個算法太繞口了,建議你們把二者配爲相同的值,防止出錯。  
    CONFIG proxy.config.log.max_space_mb_for_orphan_logs INT 25  
    #這個值,用來防止磁盤被日誌打滿,它能確保:普通日誌+孤兒日誌+動態餘量 < 磁盤容量。  
    #但值得的一提的是:traffic.out不屬於普通日誌,更不屬於孤兒日誌,traffic.out不會被rolling,在舊版的TS裏,磁盤有可能被  
      
    traffic.out打滿。  
    #雖然traffic.out不屬於普通日誌,也不屬於孤兒日誌,但在計算日誌的總大小時,  
    #TS只是簡單地把/var/log/trafficserver/目錄下(這個目錄只是默認配置,可能與各位的環境不符)的全部文件的size加起來。  
    #當日志的總大小,超過了配置值,TS就會報以下告警:  
    # logging space exhausted, ...  
    # 這時TS會試圖回收(reclaim)日誌,就是把後綴爲.old的普通日誌、孤兒日誌(.old後綴的日誌,由rolling產生)  
    # 先按建立時間排序,先刪掉最老的,直到全部日誌的大小,知足配置的要求。  
    #但如前面所言,因爲traffic.out不會被rolling,一旦traffic.out的文件大小超過了配置值,就會一直處於"logging space exhausted  
      
    」的狀態。  
    #這個問題在master版本里已經解決,在master版本里traffic.out的大部份內容,會寫到diags.out裏,  
    #diags.out的內容會做爲普通日誌對待,會被rolling,當磁盤不夠時,會被日誌進程回收。  
    CONFIG proxy.config.log.max_space_mb_headroom INT 1000  
    #設置運行TS服務器主機名  
    CONFIG proxy.config.log.hostname STRING localhost  
    #日誌目錄的完整路徑  
    CONFIG proxy.config.log.logfile_dir STRING var/log/trafficserver  
    #日誌文件默認權限  
    CONFIG proxy.config.log.logfile_perm STRING rw-r--r--  
    #自定義日誌文件格式  
    CONFIG proxy.config.log.custom_logs_enabled INT 0  
    #開啓/禁用squid日誌格式  
    CONFIG proxy.config.log.squid_log_enabled INT 1  
    #squid日誌格式類型。1=ASCII 2=binary  
    CONFIG proxy.config.log.squid_log_is_ascii INT 0  
    #定義squid日誌文件名  
    CONFIG proxy.config.log.squid_log_name STRING squid  
    #squid日誌文件頭部文本  
    CONFIG proxy.config.log.squid_log_header STRING NULL  
    #開啓/禁用Netscape common日誌格式  
    CONFIG proxy.config.log.common_log_enabled INT 0  
    #Netscape common日誌格式類型。1=ASCII 2=binary  
    CONFIG proxy.config.log.common_log_is_ascii INT 1  
    #定義Netscape common日誌文件名  
    CONFIG proxy.config.log.common_log_name STRING common  
    #定義Netscape common日誌文件頭部文本  
    CONFIG proxy.config.log.common_log_header STRING NULL  
    #開啓/禁用Netscape extended日誌格式  
    CONFIG proxy.config.log.extended_log_enabled INT 0  
    #Netscape extended日誌格式類型。1=ASCII 2=binary  
    CONFIG proxy.config.log.extended_log_is_ascii INT 0  
    #定義Netscape extended日誌文件名  
    CONFIG proxy.config.log.extended_log_name STRING extended  
    #定義Netscape extended日誌文件頭部文本  
    CONFIG proxy.config.log.extended_log_header STRING NULL  
    #開啓/禁用Netscape extended2日誌格式  
    CONFIG proxy.config.log.extended2_log_enabled INT 0  
    #Netscape extended2日誌格式類型。1=ASCII 2=binary  
    CONFIG proxy.config.log.extended2_log_is_ascii INT 1  
    #定義Netscape extended2日誌文件名  
    CONFIG proxy.config.log.extended2_log_name STRING extended2  
    #定義Netscape extended2日誌文件頭部文本  
    CONFIG proxy.config.log.extended2_log_header STRING NULL  
    #當設置爲1時,TS服務器會將ICP事務單獨保存爲一個日誌文件  
    #0 - 禁用分離。全部ICP事務都會被記錄至HTTP事務中  
    #1 - 全部的ICP事務都會被記錄在一個獨立的文件中  
    #-1 - 在默認的日誌文件中過濾掉全部的ICP事務。也就是說ICP事務不會被記錄  
    CONFIG proxy.config.log.separate_icp_logs INT 0  
    #當設置爲1時,TS服務器會爲每個源服務器的HTTP事務單首創新一個日誌文件。配置在log_hosts.config  
    CONFIG proxy.config.log.separate_host_logs INT 0  
     # Log collation allows you to do "remote logging"  
    #設置日誌收集模式  
    #0 - 客戶端模式.即表示,TS不負責從別的機器接收日誌。  
    #1 - 服務端模式。可接收別的機器發送的日誌,值得一提的是,它還能夠繼續充當「客戶端」。  
    #2 - 服務端模式。客戶端發送標準的日誌格式到服務端。  
    #3 - 服務端模式。客戶端發送自定義的日誌格式到服務端。  
    #3 - 服務端模式。客戶端發送標準的和自定義的日誌格式到服務端。  
    LOCAL proxy.local.log.collation_mode INT 0  
    #日誌收集服務器主機名  
    CONFIG proxy.config.log.collation_host STRING NULL  
    #日誌收集服務器端口  
    CONFIG proxy.config.log.collation_port INT 8085  
    #日誌收集服務器認證密碼  
    CONFIG proxy.config.log.collation_secret STRING foobar  
    #當設置爲1時,TS服務器會爲每個收集客戶端生成一個單獨的日誌條目  
    CONFIG proxy.config.log.collation_host_tagged INT 0  
    #重試從新鏈接日誌收集服務器秒數  
    CONFIG proxy.config.log.collation_retry_sec INT 5  
    #日誌文件的滾動  
    #0 - 禁用日誌文件的滾動  
    #1 - 啓用在特定的時間間隔對日誌文件進行滾動.(須要配合proxy.config.log.rolling_interval_sec和  
      
    proxy.config.log.rolling_offset_hr)  
    #2 - 啓用在指定文件大小對日誌文件進行滾動(須要配合proxy.config.log.rolling_size_mb )  
    #3 - 啓用在指定文件大小或特定的時間間隔對日誌文件進行滾動(以先發生優先)  
    #4 - 啓用在指定的時間間隔中日誌文件達到特定大小進行滾動  
    CONFIG proxy.config.log.rolling_enabled INT 1  
    #日誌滾動間隔秒數。最低爲300秒,最大爲86400  
    CONFIG proxy.config.log.rolling_interval_sec INT 86400  
    #日誌滾動偏移小時。  
    CONFIG proxy.config.log.rolling_offset_hr INT 0  
    #當日志文件多大的時對日誌進行滾動  
    CONFIG proxy.config.log.rolling_size_mb INT 10  
    #是否啓用滾動文件的自動刪除  
    CONFIG proxy.config.log.auto_delete_rolled_files INT 1  
    #配置日誌文件只是對事務進行採樣,而不是記錄全部的事務  
    #1 - 記錄全部的事務  
    #2 - 每秒只記錄一次事務  
    #3 - 每三件事務記錄一次  
    CONFIG proxy.config.log.sampling_frequency INT 1  
    ##############################################################################  
    #  
    # Reverse Proxy  
    # 反向代理  
    #  
    ##############################################################################  
    #啓用\關啓http反向代理  
    CONFIG proxy.config.reverse_proxy.enabled INT 1  
    #對於沒有主機頭的請求重定向至的URL  
    CONFIG proxy.config.header.parse.no_host_url_redirect STRING NULL  
    ##############################################################################  
    #  
    # URL Remap Rules  
    # URL 映射規則  
    #  
    ##############################################################################  
    #啓用/禁用使用PAC文件請求請求代理服務器默認端口(8080)時重定向到PAC端口  
    #這個開關必須是proxy.config.reverse_proxy.enabled變量爲1  
    CONFIG proxy.config.url_remap.default_to_server_pac INT 0  
    #PAC端口設置,使PAC請求將被重定向到TS的代理服務端口到此端口。  
    #-1是默認設置,即設置PAC端口的自動配置端口(默認的自動配置端口是8083)。  
    #這個變量能夠和proxy.config.url_remap.default_to_server_pac變量一塊兒使用來得到一個PAC文件從一個不一樣的端口。  
    CONFIG proxy.config.url_remap.default_to_server_pac_port INT -1  
     # To enable forward proxy, you must turn off remap_required  
    #設置爲1時,若是你想TS服務請求從源服務器的映射的規則的remap.config文件中列出  
    CONFIG proxy.config.url_remap.remap_required INT 1  
     # Pristine host header is the "original" (request) header. Make sure your  
     # origin expects them in reverse proxy.  
    #設置爲1時,將保留在重映射請求的客戶端主機頭  
    CONFIG proxy.config.url_remap.pristine_host_hdr INT 1  
    ##############################################################################  
    #  
    # SSL Termination  
    # SSL終止  
    #  
    ##############################################################################  
     # The number of SSL threads is a multiplier of number of CPUs and  
     # proxy.config.exec_thread.autoconfig.scale by default. You can  
     # override that here (set it to a non-zero value).  
    #SSL線程數量。默認是CPU數量和proxy.config.exec_thread.autoconfig.scale的乘積。  
    #你能夠在這裏覆蓋(設置非零的值)  
    CONFIG proxy.config.ssl.number.threads INT 0  
     # The following three variables can be  
     # set to 0 to disable SSLv2, SSLv3, and/or TLSv1.  
     # SSLv2 is disabled by default for security concern.  
    #啓用/禁用各SSL協議  
    CONFIG proxy.config.ssl.SSLv2 INT 0  
    CONFIG proxy.config.ssl.SSLv3 INT 1  
    CONFIG proxy.config.ssl.TLSv1 INT 1  
     # The following two variables control the Cipher Suite traffic Server  
     # uses for HTTPS connnections and whether to prefer the client  
     # selected (default) or the server selected  
     # Our default SSL Cipher Suite tries to be reasonably fast and strong.  
    #下面兩個變動設置TS使用HTTPS鏈接使用的加密方法  
    CONFIG proxy.config.ssl.server.cipher_suite STRING RC4-SHA:AES128-SHA:DES-CBC3-SHA:AES256-SHA:ALL:!aNULL:!EXP:!LOW:!MD5:!  
      
    SSLV2:!NULL  
    CONFIG proxy.config.ssl.server.honor_cipher_order INT 0  
     # Control if SSL should perform content compression or not  
    #控制是否啓用內容壓縮選項  
    CONFIG proxy.config.ssl.compression INT 0  
     # Client certification level should be:  
     # 0 no client certificates  
     # 1 client certificates optional  
     # 2 client certificates required  
    #設置客戶端認證級別:  
    #0=沒有客戶端證書  
    #1=客戶端證書是可選的  
    #2=須要客戶端證書  
    CONFIG proxy.config.ssl.client.certification_level INT 0  
     # Server cert chain filename is the name of the global cert chain file  
     # that is added to every cert in ssl_multicert.config. This file is only  
     # loaded if there are configurations in ssl_multicert.config.  
    #網站根證書的文件名.  
    CONFIG proxy.config.ssl.server.cert_chain.filename STRING NULL  
     # This is the path that SSL certificates files are relative to. Certificate  
     # names specified in ssl_multicert.config will be located relative to this path.  
    #TS服務器證書的路徑  
    CONFIG proxy.config.ssl.server.cert.path STRING etc/trafficserver  
     # If any private key is not contained in the certificate file, you must  
     # fill in the private key path. Private key names specified in  
     # ssl_multicert.config will be located relative to this path.  
    #TS密鑰證書的路徑  
    CONFIG proxy.config.ssl.server.private_key.path STRING etc/trafficserver  
     # The CA file name and path are the  
     # certificate authority certificate that  
     # client certificates will be verified against.  
    #CA證書的文件名  
    CONFIG proxy.config.ssl.CA.cert.filename STRING NULL  
    #CA證書的文件路徑  
    CONFIG proxy.config.ssl.CA.cert.path STRING etc/trafficserver  
     ################################  
     # client related configuration #  
     # 客戶端相關的配置  
     ################################  
    #配置TS驗證原始服務器證書的CA  
    CONFIG proxy.config.ssl.client.verify.server INT 0  
    #SSL客戶證書安裝在TS的文件名  
    CONFIG proxy.config.ssl.client.cert.filename STRING NULL  
    #SSL客戶證書安裝在TS的路徑  
    CONFIG proxy.config.ssl.client.cert.path STRING etc/trafficserver  
     # Fill in private key file and path only if the client's  
     # private key is not contained in the client certificate file.  
    #TS私鑰的文件名。改變這個變量只有私鑰不是位於TS的SSL客戶機證書文件。  
    CONFIG proxy.config.ssl.client.private_key.filename STRING NULL  
    #TS私鑰的路徑。改變這個變量只有私鑰不是位於TS的SSL客戶機證書文件。  
    CONFIG proxy.config.ssl.client.private_key.path STRING etc/trafficserver  
     # The CA file name and path are the  
     # certificate authority certificate that  
     # server certificates will be verified against.  
    #指定CA簽發文件的位置  
    CONFIG proxy.config.ssl.client.CA.cert.filename STRING NULL  
    #指定CA簽發文件的路徑  
    CONFIG proxy.config.ssl.client.CA.cert.path STRING etc/trafficserver  
    ##############################################################################  
    #  
    # ICP Configuration. NOTE! ICP is currently broken NOTE!  
    # ICP配置.  
    #  
    ##############################################################################  
     # icp modes  
     # enabled=0 ICP disabled  
     # enabled=1 Allow receive of ICP queries  
     # enabled=2 Allow send/receive of ICP queries  
     # ICP模式  
     # 0 = ICP關閉  
     # 1 = 容許接收ICP查詢  
     # 2 = 容許發送、接收ICP查詢  
    CONFIG proxy.config.icp.enabled INT 0  
    #指定用於ICP流量的網絡接口  
    CONFIG proxy.config.icp.icp_interface STRING NULL  
    #指定用於ICP通訊的UDP端口  
    CONFIG proxy.config.icp.icp_port INT 3130  
    #是否開啓icp組播  
    CONFIG proxy.config.icp.multicast_enabled INT 0  
    #ICP查詢超時設置  
    CONFIG proxy.config.icp.query_timeout INT 2  
    ##############################################################################  
    #  
    # Scheduled Update Configuration  
    # 計劃更新配置  
    #  
    ##############################################################################  
    #是否開啓計劃更新  
    CONFIG proxy.config.update.enabled INT 0  
    #是否啓用強制當即更新.當啓用時,TS會覆蓋全部預約的更新項目,並啓動更新,直到該選項被禁用。  
    CONFIG proxy.config.update.force INT 0  
    #指定次TS的在計劃更新發生故障的URL時,重試的次數  
    CONFIG proxy.config.update.retry_count INT 10  
    #指定次TS的在計劃更新發生故障的URL時,重試的延遲時間  
    CONFIG proxy.config.update.retry_interval INT 2  
    CONFIG proxy.config.update.concurrent_updates INT 100  
    ##############################################################################  
    #  
    # Socket send/recv buffer sizes (0 == don't call setsockopt() )  
    # Socket 發送/接收緩存區尺寸  
    #  
    ##############################################################################  
     # out: proxy -> os connection  
     # in : ua -> proxy connection  
     # out: TS到源服務器  
     # in : 客戶端到TS  
    #設置從客戶端到TS鏈接的發送緩存區大小  
    CONFIG proxy.config.net.sock_send_buffer_size_in INT 262144  
    #設置從客戶端到TS鏈接的接收緩存區大小  
    CONFIG proxy.config.net.sock_recv_buffer_size_in INT 0  
    #設置從TS到源服務器鏈接的發送緩存區大小  
    CONFIG proxy.config.net.sock_send_buffer_size_out INT 0  
    #設置從TS到源服務器鏈接的接收緩存區大小  
    CONFIG proxy.config.net.sock_recv_buffer_size_out INT 0  
    ##############################################################################  
    #  
    # User Overridden Configurations Below  
    #  
    #  
    ##############################################################################  
    CONFIG proxy.config.core_limit INT -1  
    ##############################################################################  
    #  
    # Debugging  
    # 調試  
    #  
    ##############################################################################  
     # Uses a regular expression to match the debugging topic name, performance  
     # will be affected!  
    #可使用正則表達式來匹配debug的主題名字,可是相應的性能也會受到必定影響  
    CONFIG proxy.config.diags.debug.enabled INT 0  
    CONFIG proxy.config.diags.debug.tags STRING http.*|dns.*  
     # Great for tracking down memory leaks, but you need to use the  
     # ink allocators  
    #跟蹤內存泄露的利器,可是須要使用ink分配器  
    CONFIG proxy.config.dump_mem_info_frequency INT 0  
     # Log the source code location of diagnostic messages.  
    #記錄診斷消息的源碼位置  
    CONFIG proxy.config.diags.show_location INT 0  
    ##############################################################################  
    #  
    # Configuration for Reclaimable InkFreeList memory pool  
    # 配置可收回的InkFreeList內存池  
    #  
    #  
    # NOTE: The following options are meaningfull only when Traffic Server is  
    # compiled with the following option to configure:  
    #  
    # --enable-reclaimable-freelist  
    #這個選項只有當TS在編譯時使用下面的選項:  
    # --enable-reclaimable-freelist  
    #  
    ##############################################################################  
    #禁用、啓用內存回收  
    CONFIG proxy.config.allocator.enable_reclaim INT 1  
     # The value of reclaim_factor should be in the 0.0 to 1.0 range. Allocators  
     # use it to calculate size of unused memory, which is used to determine when  
     # to reclaim memory. The larger the value, the more aggressive reclaims.  
    #控制回收的閾值的,0.0-1.0的浮點數,默認0.3。越高越主動回收  
    CONFIG proxy.config.allocator.reclaim_factor FLOAT 0.300000  
     # Allocator will reclaim memory only when it continuously satisfy the reclaim  
     # condition for max_overage continuous checks.  
    #定義超過閾值幾回纔回收。  
    CONFIG proxy.config.allocator.max_overage INT 3  
     # For debugging, enable debug_filter, which is a bit-map with these fields:  
     # bit 0: reclaim memory in ink_freelist_new  
     # bit 1: allocate memory from partial-free Chunks(if exist) or OS  
     # 用於debug,開啓debug_filter,  
     # 0:在ink_freelist_new上回收內存  
     # 1: 在空間塊或操做系統上回收內存  
    CONFIG proxy.config.allocator.debug_filter INT 0  
    ##############################################################################  
    #  
    # Slow Log  
    # 慢日誌  
    #  
    ##############################################################################  
     # Log any request that takes more then x number of milliseconds, needs  
     # to be > 0 to be enabled  
    #記錄慢日誌的閾值.當請求大於多少毫秒時會被記錄至慢日誌,當該參數值大於0時即啓用  
    CONFIG proxy.config.http.slow.log.threshold INT 0  
    ##############################################################################  
    #  
    # Thread pool for "misc" tasks, plugins etc. 2 is a good minimum.  
    # 雜項.任務的線程池、插件的一些選項。推薦2  
    # 官方文檔沒有說明  
    #  
    ##############################################################################  
    CONFIG proxy.config.task_threads INT 2  
    CONFIG proxy.config.cluster.cluster_configuration STRING cluster.config  
    CONFIG proxy.config.body_factory.template_sets_dir STRING etc/trafficserver/body_factory  
相關文章
相關標籤/搜索