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

get_block large timeout exceeded values in 3.2 #679

Closed
Tracked by #1440
heifner opened this issue Feb 1, 2023 · 3 comments
Closed
Tracked by #1440

get_block large timeout exceeded values in 3.2 #679

heifner opened this issue Feb 1, 2023 · 3 comments
Assignees
Labels
bug Something isn't working discussion 👍 lgtm

Comments

@heifner
Copy link
Member

heifner commented Feb 1, 2023

As indicated in #677 /v1/chain/get_block is showing: "deadline 2023-01-31T22:14:07.564 exceeded by 914656us"

Outside of the issues being tracked on #677, get_block is currently not honoring http-max-response-time-ms appropriately. get_block runs for abi-serializer-max-time-ms and then checks http-max-response-time-ms after. This means if abi-serializer-max-time-ms is set to 2000 and http-max-response-time-ms is set to 30, then the get_block call can run for say 1750ms and then fail after the expensive work of the abi serializer has completed. In the above exception it appears that abi serializer ran for around 900ms and then failed after the abi serialization was complete.

First thought might be to use the minimum of http-max-response-time-ms and abi-serializer-max-time-ms for the limit on abi serialization of get_block. However, node operators, I believe would prefer for get_block to honor abi-serializer-max-time-ms and ignore http-max-response-time-ms.

Introduced by #96

@enf-ci-bot enf-ci-bot moved this to Todo in Team Backlog Feb 1, 2023
@heifner heifner added bug Something isn't working discussion and removed triage labels Feb 1, 2023
@matthewdarwin
Copy link

Yes, we (me and Aaron) did indicate that : <<node operators, I believe would prefer for get_block to honor abi-serializer-max-time-ms and ignore http-max-response-time-ms.>>

However, before we start changing things around again I would like to better understand what are all the knobs used for and why they should be set depending the expected use of the node in question. I think this merits a more in-depth discussion than a quick fix. Once we decide how this should look, then we can decide on the appropriate code change.

@heifner
Copy link
Member Author

heifner commented Feb 17, 2023

This was worked and fixed by #677. /v1/chain/get_block now honors the minimum of http-max-response-time-ms and abi-serializer-max-time-ms.

@heifner
Copy link
Member Author

heifner commented Jul 24, 2023

Cat: API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working discussion 👍 lgtm
Projects
Archived in project
Development

No branches or pull requests

4 participants