6
6
generator: protoc-gen-docs
7
7
aliases:
8
8
- /docs/reference/config/istio.routing.v1alpha1/
9
- number_of_entries: 49
9
+ number_of_entries: 50
10
10
---
11
11
< p > Configuration affecting traffic routing. Here are a few terms useful to define
12
12
in the context of traffic routing.</ p >
@@ -1274,8 +1274,8 @@ <h2 id="HTTPFaultInjection">HTTPFaultInjection</h2>
1274
1274
< h2 id ="HTTPFaultInjection-Abort "> HTTPFaultInjection.Abort</ h2 >
1275
1275
< section >
1276
1276
< p > Abort specification is used to prematurely abort a request with a
1277
- pre-specified error code. The following example will return an HTTP
1278
- 400 error code for 10% of the requests to the “ratings” service “v1”.</ p >
1277
+ pre-specified error code. The following example will return an HTTP 400
1278
+ error code for 1 out of every 1000 requests to the “ratings” service “v1”.</ p >
1279
1279
1280
1280
< pre > < code class ="language-yaml "> apiVersion: networking.istio.io/v1alpha3
1281
1281
kind: VirtualService
@@ -1291,14 +1291,15 @@ <h2 id="HTTPFaultInjection-Abort">HTTPFaultInjection.Abort</h2>
1291
1291
subset: v1
1292
1292
fault:
1293
1293
abort:
1294
- percent: 10
1294
+ percentage:
1295
+ value: 0.001
1295
1296
httpStatus: 400
1296
1297
</ code > </ pre >
1297
1298
1298
1299
< p > The < em > httpStatus</ em > field is used to indicate the HTTP status code to
1299
- return to the caller. The optional < em > percent </ em > field, a value between 0
1300
- and 100, is used to only abort a certain percentage of requests. If
1301
- not specified, all requests are aborted.</ p >
1300
+ return to the caller. The optional < em > percentage </ em > field can be used to only
1301
+ abort a certain percentage of requests. If not specified, all requests are
1302
+ aborted.</ p >
1302
1303
1303
1304
< table class ="message-fields ">
1304
1305
< thead >
@@ -1309,11 +1310,13 @@ <h2 id="HTTPFaultInjection-Abort">HTTPFaultInjection.Abort</h2>
1309
1310
</ tr >
1310
1311
</ thead >
1311
1312
< tbody >
1312
- < tr id ="HTTPFaultInjection-Abort-percent ">
1313
+ < tr id ="HTTPFaultInjection-Abort-percent " class =" deprecated " >
1313
1314
< td > < code > percent</ code > </ td >
1314
1315
< td > < code > int32</ code > </ td >
1315
1316
< td >
1316
- < p > Percentage of requests to be aborted with the error code provided (0-100).</ p >
1317
+ < p > Percentage of requests to be aborted with the error code provided (0-100).
1318
+ Use of integer < code > percent</ code > value is deprecated. Use the double < code > percentage</ code >
1319
+ field instead.</ p >
1317
1320
1318
1321
</ td >
1319
1322
</ tr >
@@ -1323,6 +1326,14 @@ <h2 id="HTTPFaultInjection-Abort">HTTPFaultInjection.Abort</h2>
1323
1326
< td >
1324
1327
< p > REQUIRED. HTTP status code to use to abort the Http request.</ p >
1325
1328
1329
+ </ td >
1330
+ </ tr >
1331
+ < tr id ="HTTPFaultInjection-Abort-percentage ">
1332
+ < td > < code > percentage</ code > </ td >
1333
+ < td > < code > < a href ="#Percent "> Percent</ a > </ code > </ td >
1334
+ < td >
1335
+ < p > Percentage of requests to be aborted with the error code provided.</ p >
1336
+
1326
1337
</ td >
1327
1338
</ tr >
1328
1339
</ tbody >
@@ -1332,7 +1343,7 @@ <h2 id="HTTPFaultInjection-Delay">HTTPFaultInjection.Delay</h2>
1332
1343
< section >
1333
1344
< p > Delay specification is used to inject latency into the request
1334
1345
forwarding path. The following example will introduce a 5 second delay
1335
- in 10% of the requests to the “v1” version of the “reviews”
1346
+ in 1 out of every 1000 requests to the “v1” version of the “reviews”
1336
1347
service from all pods with label env: prod</ p >
1337
1348
1338
1349
< pre > < code class ="language-yaml "> apiVersion: networking.istio.io/v1alpha3
@@ -1352,14 +1363,14 @@ <h2 id="HTTPFaultInjection-Delay">HTTPFaultInjection.Delay</h2>
1352
1363
subset: v1
1353
1364
fault:
1354
1365
delay:
1355
- percent: 10
1366
+ percentage:
1367
+ value: 0.001
1356
1368
fixedDelay: 5s
1357
1369
</ code > </ pre >
1358
1370
1359
- < p > The < em > fixedDelay</ em > field is used to indicate the amount of delay in
1360
- seconds. An optional < em > percent</ em > field, a value between 0 and 100, can
1361
- be used to only delay a certain percentage of requests. If left
1362
- unspecified, all request will be delayed.</ p >
1371
+ < p > The < em > fixedDelay</ em > field is used to indicate the amount of delay in seconds.
1372
+ The optional < em > percentage</ em > field can be used to only delay a certain
1373
+ percentage of requests. If left unspecified, all request will be delayed.</ p >
1363
1374
1364
1375
< table class ="message-fields ">
1365
1376
< thead >
@@ -1370,11 +1381,13 @@ <h2 id="HTTPFaultInjection-Delay">HTTPFaultInjection.Delay</h2>
1370
1381
</ tr >
1371
1382
</ thead >
1372
1383
< tbody >
1373
- < tr id ="HTTPFaultInjection-Delay-percent ">
1384
+ < tr id ="HTTPFaultInjection-Delay-percent " class =" deprecated " >
1374
1385
< td > < code > percent</ code > </ td >
1375
1386
< td > < code > int32</ code > </ td >
1376
1387
< td >
1377
- < p > Percentage of requests on which the delay will be injected (0-100).</ p >
1388
+ < p > Percentage of requests on which the delay will be injected (0-100).
1389
+ Use of integer < code > percent</ code > value is deprecated. Use the double < code > percentage</ code >
1390
+ field instead.</ p >
1378
1391
1379
1392
</ td >
1380
1393
</ tr >
@@ -1385,6 +1398,14 @@ <h2 id="HTTPFaultInjection-Delay">HTTPFaultInjection.Delay</h2>
1385
1398
< p > REQUIRED. Add a fixed delay before forwarding the request. Format:
1386
1399
1h/1m/1s/1ms. MUST be >=1ms.</ p >
1387
1400
1401
+ </ td >
1402
+ </ tr >
1403
+ < tr id ="HTTPFaultInjection-Delay-percentage ">
1404
+ < td > < code > percentage</ code > </ td >
1405
+ < td > < code > < a href ="#Percent "> Percent</ a > </ code > </ td >
1406
+ < td >
1407
+ < p > Percentage of requests on which the delay will be injected.</ p >
1408
+
1388
1409
</ td >
1389
1410
</ tr >
1390
1411
</ tbody >
@@ -2190,6 +2211,28 @@ <h2 id="OutlierDetection">OutlierDetection</h2>
2190
2211
< p > Maximum % of hosts in the load balancing pool for the upstream
2191
2212
service that can be ejected. Defaults to 10%.</ p >
2192
2213
2214
+ </ td >
2215
+ </ tr >
2216
+ </ tbody >
2217
+ </ table >
2218
+ </ section >
2219
+ < h2 id ="Percent "> Percent</ h2 >
2220
+ < section >
2221
+ < p > Percent specifies a percentage in the range of [0.0, 100.0].</ p >
2222
+
2223
+ < table class ="message-fields ">
2224
+ < thead >
2225
+ < tr >
2226
+ < th > Field</ th >
2227
+ < th > Type</ th >
2228
+ < th > Description</ th >
2229
+ </ tr >
2230
+ </ thead >
2231
+ < tbody >
2232
+ < tr id ="Percent-value ">
2233
+ < td > < code > value</ code > </ td >
2234
+ < td > < code > double</ code > </ td >
2235
+ < td >
2193
2236
</ td >
2194
2237
</ tr >
2195
2238
</ tbody >
0 commit comments