You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/admin-guide/files/strategies.yaml.en.rst
+46-38Lines changed: 46 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,14 +15,17 @@
15
15
specific language governing permissions and limitations
16
16
under the License.
17
17
18
-
.. include:: ../../common.defs
19
-
20
18
===============
21
19
strategies.yaml
22
20
===============
23
21
24
22
.. configfile:: strategies.yaml
25
23
24
+
.. include:: ../../common.defs
25
+
26
+
.. toctree::
27
+
:maxdepth:2
28
+
26
29
The :file:`strategies.yaml` file identifies the next hop proxies used in an
27
30
cache hierarchy and the algorithms used to select the next hop proxy. Use
28
31
this file to perform the following configuration:
@@ -173,7 +176,8 @@ Each **strategy** in the list may using the following parameters::
173
176
#. **consistent_hash**: hosts are selected using a **hash_key**.
174
177
175
178
- **hash_key**: The hashing key used by the **consistent_hash** policy. If not specified, defaults to **path** which is the
176
-
same policy used in the **parent.config** implementation. Use one of::
179
+
same policy used in the **parent.config** implementation. Use one of:
180
+
177
181
#. **hostname**: Creates a hash using the **hostname** in the request URL.
178
182
#. **path**: (**default**) Creates a hash over the path poertion of the request URL.
179
183
#. **path+query**: Same as **path** but adds the **query string** in the request URL.
@@ -188,44 +192,48 @@ Each **strategy** in the list may using the following parameters::
188
192
- **max_simple_retries**: Part of the **failover** map and is an integer value of the maximum number of retries for a **simple retry** on the list of indicated response codes. **simple retry** is used to retry an upstream request using another upstream server if the response received on from the original upstream request matches any of the response codes configured for this strategy in the **failover** map. If no failover response codes are configured, no **simple retry** is attempted.
189
193
190
194
- **ring_mode**: Part of the **failover** map. The host ring selection mode. Use either **exhaust_ring** or **alternate_ring**
191
-
#. **exhaust_ring**: when a host normally selected by the policy fails, another host is selected from the same group. A new group is not selected until all hosts on the previous group have been exhausted.
195
+
196
+
#. **exhaust_ring**: when a host normally selected by the policy fails, another host is selected from the same group. A new group is not selected until all hosts on the previous group have been exhausted
192
197
#. **alternate_ring**: retry hosts are selected from groups in an alternating group fashion.
198
+
193
199
- **response_codes**: Part of the **failover** map. This is a list of **http** response codes that may be used for **simple retry**.
194
200
- **health_check**: Part of the **failover** map. A list of health checks. **passive** is the default and means that the state machine marks down **hosts** when a transaction timeout or connection error is detected. **passive** is always used by the next hop strategies. **active** means that some external process may actively health check the hosts using the defined **health check url** and mark them down using **traffic_ctl**.
0 commit comments