forked from docs/doc-exports
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com> Co-authored-by: Dong, Qiu Jian <qiujiandong1@huawei.com> Co-committed-by: Dong, Qiu Jian <qiujiandong1@huawei.com>
344 lines
35 KiB
HTML
344 lines
35 KiB
HTML
<a name="asm_01_0050"></a><a name="asm_01_0050"></a>
|
||
|
||
<h1 class="topictitle1">Configuring a Traffic Policy</h1>
|
||
<div id="body0000001083555120"><ol id="asm_01_0050__ol45250152481"><li id="asm_01_0050__li1312216018017"><span>Log in to the ASM console and click the name of the target service mesh to go to its details page.</span></li><li id="asm_01_0050__li2066385617126"><span>In the navigation pane, choose <strong id="asm_01_0050__b34315705419">Service Management</strong>. In the upper right corner of the list, select the namespace that your services belong to.</span></li><li id="asm_01_0050__li382914211205"><span>Locate the target service and click <strong id="asm_01_0050__b11733131123310">Manage Traffic</strong> in the <strong id="asm_01_0050__b8740163113339">Operation</strong> column. In the window that slides out from the right, configure retry, timeout, connection pool, outlier detection, load balancing, HTTP header, and fault injection policies.</span><p><p id="asm_01_0050__p123831241163915"><strong id="asm_01_0050__b57269567367">Retry</strong></p>
|
||
<p id="asm_01_0050__p2175155183918">Auto retries upon service access failures improve the access quality and success rate.</p>
|
||
<p id="asm_01_0050__p93156220465">On the <strong id="asm_01_0050__b108381148143716">Retry</strong> tab, click <span class="uicontrol" id="asm_01_0050__uicontrol98621135752022"><b>Configure now</b></span>. In the displayed dialog box, set the parameters listed in the table below.</p>
|
||
|
||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="asm_01_0050__table99417365355" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Retry parameters</caption><thead align="left"><tr id="asm_01_0050__row894103614352"><th align="left" class="cellrowborder" valign="top" width="16.221622162216224%" id="mcps1.3.1.3.2.4.2.4.1.1"><p id="asm_01_0050__p69423663515">Parameter</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="50.44504450445044%" id="mcps1.3.1.3.2.4.2.4.1.2"><p id="asm_01_0050__p494153616354">Description</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.1.3.2.4.2.4.1.3"><p id="asm_01_0050__p19941936123519">Value Range</p>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr id="asm_01_0050__row159443615352"><td class="cellrowborder" valign="top" width="16.221622162216224%" headers="mcps1.3.1.3.2.4.2.4.1.1 "><p id="asm_01_0050__p3949369358">Retries</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="50.44504450445044%" headers="mcps1.3.1.3.2.4.2.4.1.2 "><p id="asm_01_0050__p1794123683516">Maximum number of retries allowed for a single request. The default retry interval is 25 ms. The actual number of retries depends on the configured timeout period and retry timeout period.</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.1.3.2.4.2.4.1.3 "><p id="asm_01_0050__p29443612355">1-4294967295</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="asm_01_0050__row394336163516"><td class="cellrowborder" valign="top" width="16.221622162216224%" headers="mcps1.3.1.3.2.4.2.4.1.1 "><p id="asm_01_0050__p159453616355">Retry Timeout (s)</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="50.44504450445044%" headers="mcps1.3.1.3.2.4.2.4.1.2 "><p id="asm_01_0050__p6941736193515">Timeout period of an initial or retry request. The default value is the same as the timeout period configured in the <strong id="asm_01_0050__b1103432954102430">Timeout</strong> area below.</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.1.3.2.4.2.4.1.3 "><p id="asm_01_0050__p1994193693512">0.001–2592000</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="asm_01_0050__row1894636143515"><td class="cellrowborder" valign="top" width="16.221622162216224%" headers="mcps1.3.1.3.2.4.2.4.1.1 "><p id="asm_01_0050__p594183611351">Retry Condition</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="50.44504450445044%" headers="mcps1.3.1.3.2.4.2.4.1.2 "><p id="asm_01_0050__p18941336113517">Configure retry conditions. For details, see <a href="https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/router_filter#x-envoy-retry-on" target="_blank" rel="noopener noreferrer">Retry Policies</a> and <a href="https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/router_filter#x-envoy-retry-grpc-on" target="_blank" rel="noopener noreferrer">gRPC Retry Policies</a>.</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.1.3.2.4.2.4.1.3 "><p id="asm_01_0050__p109420365358">-</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
<p id="asm_01_0050__p1556472634018"><strong id="asm_01_0050__b140673988352022">Timeout</strong></p>
|
||
<p id="asm_01_0050__p15768436104020">Auto processing and quickly failure return upon service access timeout eliminate resource locking and request freezing.</p>
|
||
<p id="asm_01_0050__p15599173354616">On the <strong id="asm_01_0050__b182711544193815">Timeout</strong> tab, click <span class="uicontrol" id="asm_01_0050__uicontrol37210392252022"><b>Configure now</b></span>. In the displayed dialog box, set the parameters listed in the table below.</p>
|
||
|
||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="asm_01_0050__table14982102623513" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Timeout parameters</caption><thead align="left"><tr id="asm_01_0050__row1398212683517"><th align="left" class="cellrowborder" valign="top" width="17.731773177317734%" id="mcps1.3.1.3.2.8.2.4.1.1"><p id="asm_01_0050__p5218164216352">Parameter</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="48.93489348934894%" id="mcps1.3.1.3.2.8.2.4.1.2"><p id="asm_01_0050__p132181242163514">Description</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.1.3.2.8.2.4.1.3"><p id="asm_01_0050__p162188424352">Value Range</p>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr id="asm_01_0050__row1298202618352"><td class="cellrowborder" valign="top" width="17.731773177317734%" headers="mcps1.3.1.3.2.8.2.4.1.1 "><p id="asm_01_0050__p109823265359">Timeout (s)</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="48.93489348934894%" headers="mcps1.3.1.3.2.8.2.4.1.2 "><p id="asm_01_0050__p19826262351">Timeout period for HTTP requests</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.1.3.2.8.2.4.1.3 "><p id="asm_01_0050__p9982172663511">0.001–2592000</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
<p id="asm_01_0050__p673310734116"><strong id="asm_01_0050__b93344446952022">Connection Pool</strong></p>
|
||
<p id="asm_01_0050__p14500184804116">Connections and requests that exceed the thresholds are cut off to protect target services. Connection pool settings are applied to each pod of the upstream service at the TCP and HTTP levels. For details, see <a href="https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/circuit_breaking" target="_blank" rel="noopener noreferrer">Circuit Breaker</a>.</p>
|
||
<p id="asm_01_0050__p1062011571416">On the <strong id="asm_01_0050__b1897114811476">Connection Pool</strong> tab, click <strong id="asm_01_0050__b93862197487">Configure now</strong>. In the displayed dialog box, set the parameters listed in the tables below.</p>
|
||
|
||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="asm_01_0050__table45931028425" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Parameters under TCP Settings</caption><thead align="left"><tr id="asm_01_0050__row1659312134218"><th align="left" class="cellrowborder" valign="top" width="20.352035203520348%" id="mcps1.3.1.3.2.12.2.4.1.1"><p id="asm_01_0050__p426512421422">Parameter</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="46.31463146314631%" id="mcps1.3.1.3.2.12.2.4.1.2"><p id="asm_01_0050__p18265204217425">Description</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.1.3.2.12.2.4.1.3"><p id="asm_01_0050__p10265104214212">Value Range</p>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr id="asm_01_0050__row165936244217"><td class="cellrowborder" valign="top" width="20.352035203520348%" headers="mcps1.3.1.3.2.12.2.4.1.1 "><p id="asm_01_0050__p185932294216">Maximum Number of Connections</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="46.31463146314631%" headers="mcps1.3.1.3.2.12.2.4.1.2 "><p id="asm_01_0050__p259314264212">Maximum number of HTTP/TCP connections to the target service. The default value is <strong id="asm_01_0050__b19141131716237">4294967295</strong>.</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.1.3.2.12.2.4.1.3 "><p id="asm_01_0050__p195931021426">1-4294967295</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="asm_01_0050__row115931724426"><td class="cellrowborder" valign="top" width="20.352035203520348%" headers="mcps1.3.1.3.2.12.2.4.1.1 "><p id="asm_01_0050__p10593924425">Maximum Number of Non-responses</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="46.31463146314631%" headers="mcps1.3.1.3.2.12.2.4.1.2 "><p id="asm_01_0050__p5593220428">Maximum number of keepalive probes to be sent before the connection is determined to be invalid. By default, the OS-level configuration is used. (The default value is <strong id="asm_01_0050__b1550574018557">9</strong> for Linux.)</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.1.3.2.12.2.4.1.3 "><p id="asm_01_0050__p7593162154215">1-4294967295</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="asm_01_0050__row5593228426"><td class="cellrowborder" valign="top" width="20.352035203520348%" headers="mcps1.3.1.3.2.12.2.4.1.1 "><p id="asm_01_0050__p75931722427">Health Check Interval (s)</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="46.31463146314631%" headers="mcps1.3.1.3.2.12.2.4.1.2 "><p id="asm_01_0050__p1159313219425">Time interval between two keepalive probes. By default, the OS-level configuration is used. (The default value is <strong id="asm_01_0050__b14407156135515">75</strong> for Linux.)</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.1.3.2.12.2.4.1.3 "><p id="asm_01_0050__p8593182114214">0.001–2592000</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="asm_01_0050__row45930212421"><td class="cellrowborder" valign="top" width="20.352035203520348%" headers="mcps1.3.1.3.2.12.2.4.1.1 "><p id="asm_01_0050__p559310274218">Connection Timeout (s)</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="46.31463146314631%" headers="mcps1.3.1.3.2.12.2.4.1.2 "><p id="asm_01_0050__p8593122194210">TCP connection timeout period. The default value is <strong id="asm_01_0050__b9548172217573">10</strong>.</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.1.3.2.12.2.4.1.3 "><p id="asm_01_0050__p175931724421">0.001–2592000</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="asm_01_0050__row2067324114433"><td class="cellrowborder" valign="top" width="20.352035203520348%" headers="mcps1.3.1.3.2.12.2.4.1.1 "><p id="asm_01_0050__p16673941124310">Minimum Idle Period (s)</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="46.31463146314631%" headers="mcps1.3.1.3.2.12.2.4.1.2 "><p id="asm_01_0050__p12673541134318">Duration in which a connection remains idle before a keepalive probe is sent. By default, the OS-level configuration is used. (The default value is <strong id="asm_01_0050__b18891421135220">7200</strong> for Linux, namely, 2 hours.)</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.1.3.2.12.2.4.1.3 "><p id="asm_01_0050__p5673204144314">0.001–2592000</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
|
||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="asm_01_0050__table1698456164617" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Parameters under HTTP Settings</caption><thead align="left"><tr id="asm_01_0050__row15984865466"><th align="left" class="cellrowborder" valign="top" width="20.352035203520348%" id="mcps1.3.1.3.2.13.2.4.1.1"><p id="asm_01_0050__p398417624614">Parameter</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="46.31463146314631%" id="mcps1.3.1.3.2.13.2.4.1.2"><p id="asm_01_0050__p139841069468">Description</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.1.3.2.13.2.4.1.3"><p id="asm_01_0050__p9984667465">Value Range</p>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr id="asm_01_0050__row1398412694615"><td class="cellrowborder" valign="top" width="20.352035203520348%" headers="mcps1.3.1.3.2.13.2.4.1.1 "><p id="asm_01_0050__p199841265462">Maximum Number of Requests</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="46.31463146314631%" headers="mcps1.3.1.3.2.13.2.4.1.2 "><p id="asm_01_0050__p119841260462">Maximum number of requests that can be forwarded to a single service pod. The default value is <strong id="asm_01_0050__b7763925181711">4294967295</strong>.</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.1.3.2.13.2.4.1.3 "><p id="asm_01_0050__p15984116134610">1-4294967295</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="asm_01_0050__row19984365464"><td class="cellrowborder" valign="top" width="20.352035203520348%" headers="mcps1.3.1.3.2.13.2.4.1.1 "><p id="asm_01_0050__p1498412684614">Maximum Number of Pending Requests</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="46.31463146314631%" headers="mcps1.3.1.3.2.13.2.4.1.2 "><p id="asm_01_0050__p169845614613">Maximum number of HTTP requests that can be forwarded to the target service for processing. The default value is <strong id="asm_01_0050__b165001542141714">4294967295</strong>.</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.1.3.2.13.2.4.1.3 "><p id="asm_01_0050__p19848684618">1-4294967295</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="asm_01_0050__row17984176114616"><td class="cellrowborder" valign="top" width="20.352035203520348%" headers="mcps1.3.1.3.2.13.2.4.1.1 "><p id="asm_01_0050__p89841861468">Maximum Connection Idle Period (s)</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="46.31463146314631%" headers="mcps1.3.1.3.2.13.2.4.1.2 "><p id="asm_01_0050__p14984156124614">Timeout period of an idle upstream service connection. If there is no active request within this time period, the connection will be closed. The default value is <strong id="asm_01_0050__b16156163541819">3600</strong> (1 hour).</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.1.3.2.13.2.4.1.3 "><p id="asm_01_0050__p1598426114615">0.001–2592000</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="asm_01_0050__row898526174611"><td class="cellrowborder" valign="top" width="20.352035203520348%" headers="mcps1.3.1.3.2.13.2.4.1.1 "><p id="asm_01_0050__p159851767460">Maximum Retries</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="46.31463146314631%" headers="mcps1.3.1.3.2.13.2.4.1.2 "><p id="asm_01_0050__p79854615461">Maximum number of retries of all service pods within a specified period. The default value is <strong id="asm_01_0050__b47711511121815">4294967295</strong>.</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.1.3.2.13.2.4.1.3 "><p id="asm_01_0050__p2985569460">1-4294967295</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="asm_01_0050__row89859613462"><td class="cellrowborder" valign="top" width="20.352035203520348%" headers="mcps1.3.1.3.2.13.2.4.1.1 "><p id="asm_01_0050__p1698516634615">Maximum Number of Requests Per Connection</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="46.31463146314631%" headers="mcps1.3.1.3.2.13.2.4.1.2 "><p id="asm_01_0050__p13985364461">Maximum number of requests for each connection to the backend. If this parameter is set to <strong id="asm_01_0050__b2120262823102430">1</strong>, the keepalive function is disabled. The default value is <strong id="asm_01_0050__b960562999102430">0</strong>, indicating infinite. The maximum value is <strong id="asm_01_0050__b08517371198">536870912</strong>.</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.1.3.2.13.2.4.1.3 "><p id="asm_01_0050__p7985126194613">1–536870912</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
<p id="asm_01_0050__p169431991427"><strong id="asm_01_0050__b111001512124212">Outlier Detection</strong></p>
|
||
<p id="asm_01_0050__p26611858185812">Unhealthy pods are automatically isolated to improve the overall access success rate.</p>
|
||
<p id="asm_01_0050__p121596328592">The traffic status of service pods is traced to determine whether the pods are healthy. Unhealthy pods will be ejected from the connection pool to improve the overall access success rate. Outlier detection can be configured for HTTP and TCP services. For HTTP services, pods that continuously return 5xx errors are considered unhealthy. For TCP services, pods whose connections time out or fail are considered unhealthy. For details, see <a href="https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/outlier" target="_blank" rel="noopener noreferrer">Outlier Detection</a>.</p>
|
||
<p id="asm_01_0050__p23901277424">On the <strong id="asm_01_0050__b1150394315503">Outlier Detection</strong> tab, click <strong id="asm_01_0050__b85031643195012">Configure now</strong>. In the displayed dialog box, set the parameters listed in the table below.</p>
|
||
|
||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="asm_01_0050__table189918425518" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Outlier detection parameters</caption><thead align="left"><tr id="asm_01_0050__row9900114213518"><th align="left" class="cellrowborder" valign="top" width="20.352035203520348%" id="mcps1.3.1.3.2.18.2.4.1.1"><p id="asm_01_0050__p129005424518">Parameter</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="46.31463146314631%" id="mcps1.3.1.3.2.18.2.4.1.2"><p id="asm_01_0050__p1900204245118">Description</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.1.3.2.18.2.4.1.3"><p id="asm_01_0050__p179004421510">Value Range</p>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr id="asm_01_0050__row119000429518"><td class="cellrowborder" valign="top" width="20.352035203520348%" headers="mcps1.3.1.3.2.18.2.4.1.1 "><p id="asm_01_0050__p390011429512">Consecutive Errors</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="46.31463146314631%" headers="mcps1.3.1.3.2.18.2.4.1.2 "><p id="asm_01_0050__p20900174285110">Number of consecutive errors in a specified time period. If the number of consecutive errors exceeds the parameter value, the pod will be ejected. The default value is <strong id="asm_01_0050__b17615054111613">5</strong>.</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.1.3.2.18.2.4.1.3 "><p id="asm_01_0050__p7900124265118">1-4294967295</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="asm_01_0050__row090044235117"><td class="cellrowborder" valign="top" width="20.352035203520348%" headers="mcps1.3.1.3.2.18.2.4.1.1 "><p id="asm_01_0050__p13900242175114">Base Ejection Time (s)</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="46.31463146314631%" headers="mcps1.3.1.3.2.18.2.4.1.2 "><p id="asm_01_0050__p1390016428517">Base ejection time of a service pod that meets the outlier detection conditions. The actual ejection time of a service pod = Base ejection time x Number of ejection times. The value must be greater than or equal to 0.001s. The default value is <strong id="asm_01_0050__b3778112042311">30</strong>.</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.1.3.2.18.2.4.1.3 "><p id="asm_01_0050__p109001342115112">0.001–2592000</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="asm_01_0050__row89001942145119"><td class="cellrowborder" valign="top" width="20.352035203520348%" headers="mcps1.3.1.3.2.18.2.4.1.1 "><p id="asm_01_0050__p189001742135112">Inspection Interval (s)</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="46.31463146314631%" headers="mcps1.3.1.3.2.18.2.4.1.2 "><p id="asm_01_0050__p1690054215112">If the number of errors reaches the threshold within this time period, the pod will be ejected. The value must be greater than or equal to 0.001s. The default value is <strong id="asm_01_0050__b488617501585">10</strong>.</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.1.3.2.18.2.4.1.3 "><p id="asm_01_0050__p1890054217515">0.001–2592000</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="asm_01_0050__row090012426510"><td class="cellrowborder" valign="top" width="20.352035203520348%" headers="mcps1.3.1.3.2.18.2.4.1.1 "><p id="asm_01_0050__p8900194217518">Maximum Percentage of Ejected Pods (%)</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="46.31463146314631%" headers="mcps1.3.1.3.2.18.2.4.1.2 "><p id="asm_01_0050__p1290010424516">Maximum percentage of ejected service pods. The default value is <strong id="asm_01_0050__b247020268219">10</strong>.</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.1.3.2.18.2.4.1.3 "><p id="asm_01_0050__p13900194217515">1–100</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
<p id="asm_01_0050__p450113818424"><strong id="asm_01_0050__b1987918428425">Load Balancing</strong></p>
|
||
<p id="asm_01_0050__p1831927214">You can customize a load balancing policy to target backend service pods.</p>
|
||
<p id="asm_01_0050__p777519264549">On the <strong id="asm_01_0050__b965673125116">Load Balancing</strong> tab, click <span class="uicontrol" id="asm_01_0050__uicontrol1293194955115"><b>Configure now</b></span>. In the displayed dialog box, select one of the following load balancing algorithms as required:</p>
|
||
<ul id="asm_01_0050__ul103963353551"><li id="asm_01_0050__li0396133513551"><strong id="asm_01_0050__b755724814102430">Round robin</strong>: The default load balancing algorithm. Each service pod in the pool gets a request in turn.</li><li id="asm_01_0050__li13396103514552"><strong id="asm_01_0050__b1853965317102430">Least connection</strong>: Requests are forwarded to the pod with fewer connections among two randomly selected healthy pods.</li><li id="asm_01_0050__li15396103595518"><strong id="asm_01_0050__b195815002102430">Random</strong>: Requests are forwarded to a randomly selected healthy pod.</li><li id="asm_01_0050__li19985550144014"><strong id="asm_01_0050__b3969574102430">Consistent hashing</strong>: There are four types, as described in <a href="#asm_01_0050__table1878918125557">Table 6</a>.
|
||
<div class="tablenoborder"><a name="asm_01_0050__table1878918125557"></a><a name="table1878918125557"></a><table cellpadding="4" cellspacing="0" summary="" id="asm_01_0050__table1878918125557" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Consistent hashing algorithm types</caption><thead align="left"><tr id="asm_01_0050__row3790151220556"><th align="left" class="cellrowborder" valign="top" width="25.52%" id="mcps1.3.1.3.2.22.4.3.2.3.1.1"><p id="asm_01_0050__p27901912115514">Type</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="74.48%" id="mcps1.3.1.3.2.22.4.3.2.3.1.2"><p id="asm_01_0050__p77906125551">Description</p>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr id="asm_01_0050__row1790161225511"><td class="cellrowborder" valign="top" width="25.52%" headers="mcps1.3.1.3.2.22.4.3.2.3.1.1 "><p id="asm_01_0050__p1279016124557">Based on HTTP header</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="74.48%" headers="mcps1.3.1.3.2.22.4.3.2.3.1.2 "><p id="asm_01_0050__p11790111217558">The hash value is calculated using the header of the HTTP request. Requests with the same hash value are forwarded to the same pod.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="asm_01_0050__row7790412205520"><td class="cellrowborder" valign="top" width="25.52%" headers="mcps1.3.1.3.2.22.4.3.2.3.1.1 "><p id="asm_01_0050__p479021214555">Based on cookie</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="74.48%" headers="mcps1.3.1.3.2.22.4.3.2.3.1.2 "><p id="asm_01_0050__p13790171211554">The hash value is calculated using the cookie key name of the HTTP request. Requests with the same hash value are forwarded to the same pod.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="asm_01_0050__row127901112115512"><td class="cellrowborder" valign="top" width="25.52%" headers="mcps1.3.1.3.2.22.4.3.2.3.1.1 "><p id="asm_01_0050__p7790191216554">Based on source IP</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="74.48%" headers="mcps1.3.1.3.2.22.4.3.2.3.1.2 "><p id="asm_01_0050__p779091245511">The hash value is calculated using the IP address of the HTTP request. Requests with the same hash value are forwarded to the same pod.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="asm_01_0050__row3790151211557"><td class="cellrowborder" valign="top" width="25.52%" headers="mcps1.3.1.3.2.22.4.3.2.3.1.1 "><p id="asm_01_0050__p10790312115512">Based on query parameter</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="74.48%" headers="mcps1.3.1.3.2.22.4.3.2.3.1.2 "><p id="asm_01_0050__p5790201214552">The hash value is calculated using the query parameter key name of the HTTP request. Requests with the same hash value are forwarded to the same pod.</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</li></ul>
|
||
<p id="asm_01_0050__p2024563104319"><strong id="asm_01_0050__b153778680152022">HTTP Header</strong></p>
|
||
<p id="asm_01_0050__p44587399111">You can flexibly add, modify, and delete specified HTTP headers to manage request contents in non-intrusive mode.</p>
|
||
<p id="asm_01_0050__p2050218251714">On the <strong id="asm_01_0050__b1213019913522">HTTP Header</strong> tab, click <span class="uicontrol" id="asm_01_0050__uicontrol565211256521"><b>Configure now</b></span>. In the displayed dialog box, set the parameters listed in the tables below.</p>
|
||
|
||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="asm_01_0050__table67269418561" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Operations on the HTTP headers before the request is forwarded to the destination service</caption><thead align="left"><tr id="asm_01_0050__row37274415567"><th align="left" class="cellrowborder" valign="top" width="28.51%" id="mcps1.3.1.3.2.26.2.3.1.1"><p id="asm_01_0050__p79821462027">Parameter</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="71.49%" id="mcps1.3.1.3.2.26.2.3.1.2"><p id="asm_01_0050__p1898211467216">Description</p>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr id="asm_01_0050__row1972714425617"><td class="cellrowborder" valign="top" width="28.51%" headers="mcps1.3.1.3.2.26.2.3.1.1 "><p id="asm_01_0050__p167271445564">Add request headers.</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="71.49%" headers="mcps1.3.1.3.2.26.2.3.1.2 "><p id="asm_01_0050__p972724185616">To add a request header, you need to set <strong id="asm_01_0050__b728284215419">key</strong> and <strong id="asm_01_0050__b790794412547">value</strong>. You can also click <span><img id="asm_01_0050__image151409911518" src="en-us_image_0000001234454572.png"></span> to add more request headers.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="asm_01_0050__row272718485616"><td class="cellrowborder" valign="top" width="28.51%" headers="mcps1.3.1.3.2.26.2.3.1.1 "><p id="asm_01_0050__p1372784195612">Edit request headers.</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="71.49%" headers="mcps1.3.1.3.2.26.2.3.1.2 "><p id="asm_01_0050__p97271649562">To edit an existing request header, you need to set <strong id="asm_01_0050__b1477416151700">key</strong> and <strong id="asm_01_0050__b1988710181500">value</strong>. You can also click <span><img id="asm_01_0050__image732711431019" src="en-us_image_0000001234773776.png"></span> to edit more request headers.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="asm_01_0050__row167278412564"><td class="cellrowborder" valign="top" width="28.51%" headers="mcps1.3.1.3.2.26.2.3.1.1 "><p id="asm_01_0050__p117279414566">Remove request headers.</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="71.49%" headers="mcps1.3.1.3.2.26.2.3.1.2 "><p id="asm_01_0050__p187275495613">To remove an existing request header, you need to set <strong id="asm_01_0050__b1066745016211">key</strong>. You can also click <span><img id="asm_01_0050__image1071552412516" src="en-us_image_0000001278854949.png"></span> to remove more request headers.</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
|
||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="asm_01_0050__table192939523213" frame="border" border="1" rules="all"><caption><b>Table 8 </b>Operations on the HTTP headers before the response is returned to the client</caption><thead align="left"><tr id="asm_01_0050__row182932521527"><th align="left" class="cellrowborder" valign="top" width="28.51%" id="mcps1.3.1.3.2.27.2.3.1.1"><p id="asm_01_0050__p182931152420">Parameter</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="71.49%" id="mcps1.3.1.3.2.27.2.3.1.2"><p id="asm_01_0050__p142931521029">Description</p>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr id="asm_01_0050__row15293195212216"><td class="cellrowborder" valign="top" width="28.51%" headers="mcps1.3.1.3.2.27.2.3.1.1 "><p id="asm_01_0050__p629355215216">Add response headers.</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="71.49%" headers="mcps1.3.1.3.2.27.2.3.1.2 "><p id="asm_01_0050__p429320529213">To add a response header, you need to set <strong id="asm_01_0050__b118455590310">key</strong> and <strong id="asm_01_0050__b6308166412">value</strong>. You can also click <span><img id="asm_01_0050__image22818281855" src="en-us_image_0000001279134173.png"></span> to add more response headers.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="asm_01_0050__row529365215211"><td class="cellrowborder" valign="top" width="28.51%" headers="mcps1.3.1.3.2.27.2.3.1.1 "><p id="asm_01_0050__p142931752325">Edit response headers.</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="71.49%" headers="mcps1.3.1.3.2.27.2.3.1.2 "><p id="asm_01_0050__p72933521622">To edit an existing response header, you need to set <strong id="asm_01_0050__b823071315520">key</strong> and <strong id="asm_01_0050__b1923161313518">value</strong>. You can also click <span><img id="asm_01_0050__image143837311357" src="en-us_image_0000001234614480.png"></span> to edit more response headers.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="asm_01_0050__row12293452325"><td class="cellrowborder" valign="top" width="28.51%" headers="mcps1.3.1.3.2.27.2.3.1.1 "><p id="asm_01_0050__p19293195213219">Remove response headers.</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="71.49%" headers="mcps1.3.1.3.2.27.2.3.1.2 "><p id="asm_01_0050__p19293252629">To remove an existing response header, you need to set <strong id="asm_01_0050__b861713427610">key</strong>. You can also click <span><img id="asm_01_0050__image924016351953" src="en-us_image_0000001234294620.png"></span> to remove more response headers.</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
<p id="asm_01_0050__p5734947124313"><strong id="asm_01_0050__b75540067152022">Fault Injection</strong></p>
|
||
<p id="asm_01_0050__p127991961331">You can inject faults into the system to check whether it can tolerate and recover from faults.</p>
|
||
<p id="asm_01_0050__p5706150184516">On the <strong id="asm_01_0050__b2802239201410">Fault Injection</strong> tab, click <span class="uicontrol" id="asm_01_0050__uicontrol38022397148"><b>Configure now</b></span>. In the displayed dialog box, set the parameters listed in the table below.</p>
|
||
|
||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="asm_01_0050__table19354684519" frame="border" border="1" rules="all"><caption><b>Table 9 </b>Fault injection parameters</caption><thead align="left"><tr id="asm_01_0050__row49316462453"><th align="left" class="cellrowborder" valign="top" width="20.352035203520348%" id="mcps1.3.1.3.2.31.2.4.1.1"><p id="asm_01_0050__p59319462456">Parameter</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="46.31463146314631%" id="mcps1.3.1.3.2.31.2.4.1.2"><p id="asm_01_0050__p15931646134517">Description</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.1.3.2.31.2.4.1.3"><p id="asm_01_0050__p593154664516">Value Range</p>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr id="asm_01_0050__row69364617457"><td class="cellrowborder" valign="top" width="20.352035203520348%" headers="mcps1.3.1.3.2.31.2.4.1.1 "><p id="asm_01_0050__p59334612455">Fault Type</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="46.31463146314631%" headers="mcps1.3.1.3.2.31.2.4.1.2 "><p id="asm_01_0050__p29334624515">The options are <strong id="asm_01_0050__b13596123518155">Delay</strong> and <strong id="asm_01_0050__b86036357155">Abort</strong>.</p>
|
||
<ul id="asm_01_0050__ul126493303468"><li id="asm_01_0050__li196491230104613"><strong id="asm_01_0050__b155532650252022">Delay</strong>: Service requests are delayed.</li><li id="asm_01_0050__li39591831154617"><strong id="asm_01_0050__b188492889152022">Abort</strong>: A service is aborted and the preset status code is returned.</li></ul>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.1.3.2.31.2.4.1.3 "><p id="asm_01_0050__p5719162042612"><strong id="asm_01_0050__b1234392232516">Delay</strong> and <strong id="asm_01_0050__b16711725122519">Abort</strong></p>
|
||
</td>
|
||
</tr>
|
||
<tr id="asm_01_0050__row493846124519"><td class="cellrowborder" valign="top" width="20.352035203520348%" headers="mcps1.3.1.3.2.31.2.4.1.1 "><p id="asm_01_0050__p189311465451">Delay (s)</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="46.31463146314631%" headers="mcps1.3.1.3.2.31.2.4.1.2 "><p id="asm_01_0050__p1693124654512">This parameter needs to be set when <strong id="asm_01_0050__b484318264">Fault Type</strong> is set to <strong id="asm_01_0050__b6149560267">Delay</strong>.</p>
|
||
<p id="asm_01_0050__p855811306476">A request will be delayed for this period of time before it is forwarded.</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.1.3.2.31.2.4.1.3 "><p id="asm_01_0050__p893154612451">0.001–2592000</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="asm_01_0050__row1057610419477"><td class="cellrowborder" valign="top" width="20.352035203520348%" headers="mcps1.3.1.3.2.31.2.4.1.1 "><p id="asm_01_0050__p2577174154714">HTTP Status Code</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="46.31463146314631%" headers="mcps1.3.1.3.2.31.2.4.1.2 "><p id="asm_01_0050__p17577144184715">This parameter needs to be set when <strong id="asm_01_0050__b71891754122618">Fault Type</strong> is set to <strong id="asm_01_0050__b6189205492610">Abort</strong>.</p>
|
||
<p id="asm_01_0050__p796416514817">HTTP status code returned when an abort fault occurs. The default value is <strong id="asm_01_0050__b6424112816272">500</strong>.</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.1.3.2.31.2.4.1.3 "><p id="asm_01_0050__p957716414470">200–599</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="asm_01_0050__row1493846164516"><td class="cellrowborder" valign="top" width="20.352035203520348%" headers="mcps1.3.1.3.2.31.2.4.1.1 "><p id="asm_01_0050__p1693164615457">Fault Percentage (%)</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="46.31463146314631%" headers="mcps1.3.1.3.2.31.2.4.1.2 "><p id="asm_01_0050__p393446204516">Percentage of requests for which the delay or abort fault is injected.</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.1.3.2.31.2.4.1.3 "><p id="asm_01_0050__p6934466458">1–100</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</p></li></ol>
|
||
</div>
|
||
<div>
|
||
<div class="familylinks">
|
||
<div class="parentlink"><strong>Parent topic:</strong> <a href="asm_01_0085.html">Traffic Management</a></div>
|
||
</div>
|
||
</div>
|
||
|