Skip to content

Commit 21cc78d

Browse files
committed
Docs update. (commit in progress)
1 parent d8c3d59 commit 21cc78d

File tree

90 files changed

+1526
-1430
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+1526
-1430
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ config.cache
5252
config.status
5353
config.nice
5454

55-
configs/records.config.default
55+
configs/records.yaml.default
5656
configs/storage.config.default
5757

5858
doc/_build

ci/jenkins/remap.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ reverse_map http://192.168.3.17:6969 https://ci.trafficserver.apache.org
2828

2929
# Read-the-docs
3030
#map http://docs.trafficserver.apache.org \
31-
# http://trafficserver.readthedocs.org/en/latest/reference/configuration/records.config.en.html
31+
# http://trafficserver.readthedocs.org/en/latest/reference/configuration/records.yaml.en.html
3232
redirect http://docs.trafficserver.apache.org https://docs.trafficserver.apache.org
3333

3434
map https://docs.trafficserver.apache.org/__RTD http://192.168.3.17/RTD
3535

3636
map https://docs.trafficserver.apache.org/records.config \
37-
https://trafficserver.readthedocs.org/en/latest/reference/configuration/records.config.en.html \
37+
https://trafficserver.readthedocs.org/en/latest/reference/configuration/records.yaml.en.html \
3838
@plugin=conf_remap.so @pparam=records.config.pristine
3939

4040
map https://docs.trafficserver.apache.org https://trafficserver.readthedocs.org \

configs/records.yaml.default.in

Lines changed: 92 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -1,194 +1,194 @@
11
##############################################################################
22
# *NOTE*: All options covered in this file should be documented in the docs:
33
#
4-
# https://docs.trafficserver.apache.org/records.config
4+
# https://docs.trafficserver.apache.org/records.yaml
55
##############################################################################
66

77
ts:
8-
accept_threads: !!int '1'
8+
accept_threads: 1
99
cache:
1010
limits:
1111
http:
1212

13-
# https://docs.trafficserver.apache.org/records.config#proxy-config-cache-limits-http-max-alts
14-
max_alts: !!int '5'
13+
# https://docs.trafficserver.apache.org/records.yaml#proxy-config-cache-limits-http-max-alts
14+
max_alts: 5
1515
log:
1616
alternate:
1717

18-
# https://docs.trafficserver.apache.org/records.config#proxy-config-cache-log-alternate-eviction
19-
eviction: !!int '0'
18+
# https://docs.trafficserver.apache.org/records.yaml#proxy-config-cache-log-alternate-eviction
19+
eviction: 0
2020

21-
# https://docs.trafficserver.apache.org/records.config#proxy-config-cache-max-doc-size
22-
max_doc_size: !!int '0'
23-
min_average_object_size: !!int '8000'
21+
# https://docs.trafficserver.apache.org/records.yaml#proxy-config-cache-max-doc-size
22+
max_doc_size: 0
23+
min_average_object_size: 8000
2424

2525
##############################################################################
2626
# RAM and disk cache configurations. Docs:
27-
# https://docs.trafficserver.apache.org/records.config#ram-cache
27+
# https://docs.trafficserver.apache.org/records.yaml#ram-cache
2828
# https://docs.trafficserver.apache.org/en/latest/admin-guide/files/storage.config.en.html
2929
##############################################################################
3030
ram_cache:
31-
size: !!int '-1'
32-
ram_cache_cutoff: !!int '4194304'
33-
threads_per_disk: !!int '8'
31+
size: -1
32+
ram_cache_cutoff: 4194304
33+
threads_per_disk: 8
3434
##############################################################################
3535
# Debugging. Docs:
36-
# https://docs.trafficserver.apache.org/records.config#diagnostic-logging-configuration
36+
# https://docs.trafficserver.apache.org/records.yaml#diagnostic-logging-configuration
3737
##############################################################################
3838
diags:
3939
debug:
40-
enabled: !!int '0'
40+
enabled: 0
4141
tags: http|dns
4242

43-
# https://docs.trafficserver.apache.org/records.config#proxy-config-dump-mem-info-frequency
44-
dump_mem_info_frequency: !!int '0'
43+
# https://docs.trafficserver.apache.org/records.yaml#proxy-config-dump-mem-info-frequency
44+
dump_mem_info_frequency: 0
4545

4646
##############################################################################
4747
# Thread configurations. Docs:
48-
# https://docs.trafficserver.apache.org/records.config#thread-variables
48+
# https://docs.trafficserver.apache.org/records.yaml#thread-variables
4949
##############################################################################
5050
exec_thread:
51-
affinity: !!int '1'
51+
affinity: 1
5252
autoconfig:
53-
enabled: !!int '1'
54-
scale: !!float '1.0'
55-
limit: !!int '2'
53+
enabled: 1
54+
scale: 1.13
55+
limit: 2
5656
http:
57-
accept_no_activity_timeout: !!int '120'
57+
accept_no_activity_timeout: 120
5858
cache:
59-
cache_responses_to_cookies: !!int '1'
60-
cache_urls_that_look_dynamic: !!int '1'
59+
cache_responses_to_cookies: 1
60+
cache_urls_that_look_dynamic: 1
6161

6262
##############################################################################
6363
# Heuristic cache expiration. Docs:
64-
# https://docs.trafficserver.apache.org/records.config#heuristic-expiration
64+
# https://docs.trafficserver.apache.org/records.yaml#heuristic-expiration
6565
##############################################################################
66-
heuristic_lm_factor: !!float '0.1'
67-
heuristic_max_lifetime: !!int '86400'
68-
heuristic_min_lifetime: !!int '3600'
66+
heuristic_lm_factor: 0.1
67+
heuristic_max_lifetime: 86400
68+
heuristic_min_lifetime: 3600
6969

7070
##############################################################################
7171
# Enable / disable HTTP caching. Useful for testing, but also as an
7272
# overridable (per remap) config
7373
##############################################################################
74-
http: !!int '1'
74+
http: 1
7575

7676
##############################################################################
7777
# Cache control. Docs:
78-
# https://docs.trafficserver.apache.org/records.config#cache-control
78+
# https://docs.trafficserver.apache.org/records.yaml#cache-control
7979
# https://docs.trafficserver.apache.org/en/latest/admin-guide/files/cache.config.en.html
8080
##############################################################################
81-
ignore_client_cc_max_age: !!int '1'
81+
ignore_client_cc_max_age: 1
8282

83-
# https://docs.trafficserver.apache.org/records.config#proxy-config-http-cache-required-headers
84-
required_headers: !!int '2'
83+
# https://docs.trafficserver.apache.org/records.yaml#proxy-config-http-cache-required-headers
84+
required_headers: 2
8585

86-
# https://docs.trafficserver.apache.org/records.config#proxy-config-http-cache-when-to-revalidate
87-
when_to_revalidate: !!int '0'
86+
# https://docs.trafficserver.apache.org/records.yaml#proxy-config-http-cache-when-to-revalidate
87+
when_to_revalidate: 0
8888

8989
##############################################################################
9090
# Origin server connect attempts. Docs:
91-
# https://docs.trafficserver.apache.org/records.config#origin-server-connect-attempts
91+
# https://docs.trafficserver.apache.org/records.yaml#origin-server-connect-attempts
9292
##############################################################################
93-
connect_attempts_max_retries: !!int '3'
94-
connect_attempts_max_retries_dead_server: !!int '1'
95-
connect_attempts_rr_retries: !!int '3'
96-
connect_attempts_timeout: !!int '30'
93+
connect_attempts_max_retries: 3
94+
connect_attempts_max_retries_dead_server: 1
95+
connect_attempts_rr_retries: 3
96+
connect_attempts_timeout: 30
9797
down_server:
98-
cache_time: !!int '60'
98+
cache_time: 60
9999
forward:
100-
proxy_auth_to_parent: !!int '0'
100+
proxy_auth_to_parent: 0
101101

102102
##############################################################################
103103
# Proxy users variables. Docs:
104-
# https://docs.trafficserver.apache.org/records.config#proxy-user-variables
104+
# https://docs.trafficserver.apache.org/records.yaml#proxy-user-variables
105105
##############################################################################
106-
insert_client_ip: !!int '1'
106+
insert_client_ip: 1
107107

108108
##############################################################################
109109
# Via: headers. Docs:
110-
# https://docs.trafficserver.apache.org/records.config#proxy-config-http-insert-response-via-str
110+
# https://docs.trafficserver.apache.org/records.yaml#proxy-config-http-insert-response-via-str
111111
##############################################################################
112-
insert_request_via_str: !!int '1'
113-
insert_response_via_str: !!int '0'
114-
insert_squid_x_forwarded_for: !!int '1'
115-
keep_alive_no_activity_timeout_in: !!int '120'
116-
keep_alive_no_activity_timeout_out: !!int '120'
112+
insert_request_via_str: 1
113+
insert_response_via_str: 0
114+
insert_squid_x_forwarded_for: 1
115+
keep_alive_no_activity_timeout_in: 120
116+
keep_alive_no_activity_timeout_out: 120
117117

118118
##############################################################################
119119
# Negative response caching, for redirects and errors. Docs:
120-
# https://docs.trafficserver.apache.org/records.config#negative-response-caching
120+
# https://docs.trafficserver.apache.org/records.yaml#negative-response-caching
121121
##############################################################################
122-
negative_caching_enabled: !!int '0'
123-
negative_caching_lifetime: !!int '1800'
124-
normalize_ae: !!int '1'
122+
negative_caching_enabled: 0
123+
negative_caching_lifetime: 1800
124+
normalize_ae: 1
125125

126126
##############################################################################
127127
# Parent proxy configuration, in addition to these settings also see parent.config. Docs:
128-
# https://docs.trafficserver.apache.org/records.config#parent-proxy-configuration
128+
# https://docs.trafficserver.apache.org/records.yaml#parent-proxy-configuration
129129
# https://docs.trafficserver.apache.org/en/latest/admin-guide/files/parent.config.en.html
130130
##############################################################################
131131
parent_proxy:
132-
retry_time: !!int '300'
132+
retry_time: 300
133133

134134
##############################################################################
135135
# Security. Docs:
136-
# https://docs.trafficserver.apache.org/records.config#security
136+
# https://docs.trafficserver.apache.org/records.yaml#security
137137
##############################################################################
138-
push_method_enabled: !!int '0'
138+
push_method_enabled: 0
139139

140140
##############################################################################
141141
# Specify server addresses and ports to bind for HTTP and HTTPS. Docs:
142-
# https://docs.trafficserver.apache.org/records.config#proxy.config.http.server_ports
142+
# https://docs.trafficserver.apache.org/records.yaml#proxy.config.http.server_ports
143143
##############################################################################
144144
server_ports: 8080 8080:ipv6
145145

146-
# https://docs.trafficserver.apache.org/records.config#proxy-config-http-slow-log-threshold
146+
# https://docs.trafficserver.apache.org/records.yaml#proxy-config-http-slow-log-threshold
147147
slow:
148148
log:
149-
threshold: !!int '0'
149+
threshold: 0
150150

151151
##############################################################################
152152
# HTTP connection timeouts (secs). Docs:
153-
# https://docs.trafficserver.apache.org/records.config#http-connection-timeouts
153+
# https://docs.trafficserver.apache.org/records.yaml#http-connection-timeouts
154154
##############################################################################
155-
transaction_active_timeout_in: !!int '900'
156-
transaction_active_timeout_out: !!int '0'
157-
transaction_no_activity_timeout_in: !!int '30'
158-
transaction_no_activity_timeout_out: !!int '30'
159-
uncacheable_requests_bypass_parent: !!int '1'
155+
transaction_active_timeout_in: 900
156+
transaction_active_timeout_out: 0
157+
transaction_no_activity_timeout_in: 30
158+
transaction_no_activity_timeout_out: 30
159+
uncacheable_requests_bypass_parent: 1
160160

161161
##############################################################################
162162
# Logging Config. Docs:
163-
# https://docs.trafficserver.apache.org/records.config#logging-configuration
163+
# https://docs.trafficserver.apache.org/records.yaml#logging-configuration
164164
# https://docs.trafficserver.apache.org/en/latest/admin-guide/files/logging.yaml.en.html
165165
##############################################################################
166166
log:
167-
auto_delete_rolled_files: !!int '1'
168-
logging_enabled: !!int '3'
169-
max_space_mb_for_logs: !!int '25000'
170-
max_space_mb_headroom: !!int '1000'
171-
periodic_tasks_interval: !!int '5'
172-
rolling_enabled: !!int '1'
173-
rolling_interval_sec: !!int '86400'
174-
rolling_size_mb: !!int '10'
167+
auto_delete_rolled_files: 1
168+
logging_enabled: 3
169+
max_space_mb_for_logs: 25000
170+
max_space_mb_headroom: 1000
171+
periodic_tasks_interval: 5
172+
rolling_enabled: 1
173+
rolling_interval_sec: 86400
174+
rolling_size_mb: 10
175175

176176
##############################################################################
177177
# Network. Docs:
178-
# https://docs.trafficserver.apache.org/records.config#network
178+
# https://docs.trafficserver.apache.org/records.yaml#network
179179
##############################################################################
180180
net:
181-
connections_throttle: !!int '30000'
182-
default_inactivity_timeout: !!int '86400'
183-
max_connections_in: !!int '30000'
184-
max_requests_in: !!int '0'
181+
connections_throttle: 30000
182+
default_inactivity_timeout: 86400
183+
max_connections_in: 30000
184+
max_requests_in: 0
185185

186-
# https://docs.trafficserver.apache.org/records.config#proxy-config-res-track-memory
187-
res_track_memory: !!int '0'
186+
# https://docs.trafficserver.apache.org/records.yaml#proxy-config-res-track-memory
187+
res_track_memory: 0
188188

189-
# https://docs.trafficserver.apache.org/records.config#reverse-proxy
189+
# https://docs.trafficserver.apache.org/records.yaml#reverse-proxy
190190
reverse_proxy:
191-
enabled: !!int '1'
191+
enabled: 1
192192
ssl:
193193
client:
194194
CA:
@@ -197,22 +197,22 @@ ts:
197197

198198
##############################################################################
199199
# SSL Termination. Docs:
200-
# https://docs.trafficserver.apache.org/records.config#client-related-configuration
200+
# https://docs.trafficserver.apache.org/records.yaml#client-related-configuration
201201
# https://docs.trafficserver.apache.org/en/latest/admin-guide/files/ssl_multicert.config.en.html
202202
##############################################################################
203203
verify:
204204
server:
205205
policy: PERMISSIVE
206206
properties: ALL
207-
task_threads: !!int '2'
207+
task_threads: 2
208208

209209
##############################################################################
210210
# These settings control remapping, and if the proxy allows (open) forward proxy or not. Docs:
211-
# https://docs.trafficserver.apache.org/records.config#url-remap-rules
211+
# https://docs.trafficserver.apache.org/records.yaml#url-remap-rules
212212
# https://docs.trafficserver.apache.org/en/latest/admin-guide/files/remap.config.en.html
213213
##############################################################################
214214
url_remap:
215215

216-
# https://docs.trafficserver.apache.org/records.config#proxy-config-url-remap-pristine-host-hdr
217-
pristine_host_hdr: !!int '0'
218-
remap_required: !!int '1'
216+
# https://docs.trafficserver.apache.org/records.yaml#proxy-config-url-remap-pristine-host-hdr
217+
pristine_host_hdr: 0
218+
remap_required: 1

doc/.tx/config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ source_file = _build/locale/pot/admin-guide/files/plugin.config.en.pot
9898
source_lang = en
9999

100100
[apache-traffic-server-6x.admin-guide--files--records_config_en]
101-
file_filter = locale/<lang>/LC_MESSAGES/admin-guide/files/records.config.en.po
102-
source_file = _build/locale/pot/admin-guide/files/records.config.en.pot
101+
file_filter = locale/<lang>/LC_MESSAGES/admin-guide/files/records.yaml.en.po
102+
source_file = _build/locale/pot/admin-guide/files/records.yaml.en.pot
103103
source_lang = en
104104

105105
[apache-traffic-server-6x.admin-guide--files--remap_config_en]

doc/Pipfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ sphinxcontrib-plantuml = "*"
3939
# i18n
4040
sphinx-intl = "*"
4141

42+
pyyaml = "*"
43+
4244
# For parsing Doxygen XML output, to add links from an API description
4345
# to the source code for that object
4446
lxml = "*"

0 commit comments

Comments
 (0)