Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Try Request Timeouts Doc #73

Merged
merged 4 commits into from
Sep 10, 2024
Merged

Add Try Request Timeouts Doc #73

merged 4 commits into from
Sep 10, 2024

Conversation

noobwei
Copy link
Contributor

@noobwei noobwei commented Sep 9, 2024

No description provided.

Copy link

netlify bot commented Sep 9, 2024

Deploy Preview for kmesh-net ready!

Name Link
🔨 Latest commit 3b216b6
🔍 Latest deploy log https://app.netlify.com/sites/kmesh-net/deploys/66e00537be34330008868b89
😎 Deploy Preview https://deploy-preview-73--kmesh-net.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@noobwei
Copy link
Contributor Author

noobwei commented Sep 9, 2024

@YaoZengzeng


1. Make default namespace managed by Kmesh

2. Deploy bookinfo as sample application and sleep as curl client
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't need to deploy sleep which is not used.


In this task, you used Kmesh to set the request timeout for calls to the `reviews` microservice to half a second. By default the request timeout is disabled. Since the `reviews` service subsequently calls the `ratings` service when handling requests, you used Kmesh to inject a 2 second delay in calls to `ratings` to cause the `reviews` service to take longer than half a second to complete and consequently you could see the timeout in action.

You observed that instead of displaying reviews, the Bookinfo product page (which calls the `reviews` service to populate the page) displayed the message: Sorry, product reviews are currently unavailable for this book. This was the result of it receiving the timeout error from the `reviews` service.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
You observed that instead of displaying reviews, the Bookinfo product page (which calls the `reviews` service to populate the page) displayed the message: Sorry, product reviews are currently unavailable for this book. This was the result of it receiving the timeout error from the `reviews` service.
You observed that instead of displaying reviews, the Bookinfo product page (which calls the `reviews` service to populate the page) displayed the message: "Sorry, product reviews are currently unavailable for this book". This was the result of it receiving the timeout error from the `reviews` service.

@YaoZengzeng
Copy link
Member

/lgtm

@kmesh-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hzxuzhonghu

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@YaoZengzeng
Copy link
Member

/lgtm

@kmesh-bot kmesh-bot added the lgtm label Sep 10, 2024
@kmesh-bot kmesh-bot merged commit fd8d3a0 into kmesh-net:main Sep 10, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants