diff --git a/content/en/docs/userguide/request_routing_ads.md b/content/en/docs/userguide/request_routing_ads.md index ecc8c90..ff8361a 100644 --- a/content/en/docs/userguide/request_routing_ads.md +++ b/content/en/docs/userguide/request_routing_ads.md @@ -169,7 +169,7 @@ kubectl apply -f samples/fortio/netutils.yaml < Server: 2 ``` -### Understanding what happend +### Understanding what happened If the user request header is not configured, V1 will be used. If the Jason request header is configured, V2 will be used. diff --git a/content/en/docs/userguide/traffic_shifting_ads.md b/content/en/docs/userguide/traffic_shifting_ads.md index 9a92cf0..a5e64ad 100644 --- a/content/en/docs/userguide/traffic_shifting_ads.md +++ b/content/en/docs/userguide/traffic_shifting_ads.md @@ -159,7 +159,7 @@ kubectl apply -f samples/fortio/netutils.yaml < Server: 2 ``` -### Understanding what happend +### Understanding what happened In this task you migrated traffic from an old to new version of the `fortio` service using kmesh’s weighted routing feature. diff --git a/content/en/docs/userguide/try_fault_injection.md b/content/en/docs/userguide/try_fault_injection.md index a0f3c39..86a08da 100644 --- a/content/en/docs/userguide/try_fault_injection.md +++ b/content/en/docs/userguide/try_fault_injection.md @@ -4,7 +4,7 @@ linktitle: Try Fault Injection menu: docs: parent: user guide - weight: 10 + weight: 8 title: Try Fault Injection toc: true type: docs diff --git a/content/en/docs/userguide/try_request_timeouts.md b/content/en/docs/userguide/try_request_timeouts.md new file mode 100644 index 0000000..fae61c9 --- /dev/null +++ b/content/en/docs/userguide/try_request_timeouts.md @@ -0,0 +1,123 @@ +--- +draft: false +linktitle: Try Request Timeouts +menu: + docs: + parent: user guide + weight: 9 +title: Try Request Timeouts +toc: true +type: docs + + + +--- + +### Preparation + +1. Make default namespace managed by Kmesh + +2. Deploy bookinfo as sample application + +3. Install service granularity waypoint for reviews service + +*The above steps could refer to [Install Waypoint | Kmesh](https://kmesh.net/en/docs/userguide/install_waypoint/#preparation)* + +4. And install waypoint for ratings service +```bash +istioctl x waypoint apply -n default --name ratings-svc-waypoint +kubectl label service ratings istio.io/use-waypoint=ratings-svc-waypoint +kubectl annotate gateway ratings-svc-waypoint sidecar.istio.io/proxyImage=ghcr.io/kmesh-net/waypoint:latest +``` + +### Request timeouts + +A timeout for HTTP requests can be specified using a timeout field in a route rule. By default, the request timeout is disabled, but in this task you override the `reviews` service timeout to half a second. To see its effect, however, you also introduce an artificial 2 second delay in calls to the `ratings` service. + +1. Route requests to v2 of the `reviews` service, i.e., a version that calls the `ratings` service: + +```bash +kubectl apply -f - <