Skip to content

Add time-bounded executor & limit light client request processing time - #12725

Open
dmitry-markin wants to merge 4 commits into
masterfrom
dm-timed-executor
Open

Add time-bounded executor & limit light client request processing time#12725
dmitry-markin wants to merge 4 commits into
masterfrom
dm-timed-executor

Conversation

@dmitry-markin

@dmitry-markin dmitry-markin commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Add executor that aborts execution when timeout elapses, based on WasmTime epoch interruptions. A separate executor for time-bound requests is needed, because epoch interruption compiles into the WASM blob and slows execution down by 10%.

Limit light client execution proof requests by 3-second timeout by defaul. The timeout is deliberately chosen high before we obtain real-world execution time data for legitimate requests. The default timeout can be overridden with --light-request-execution-timeout-ms.

Review Notes

It is recommended to review the PR as a series of individual commits. They build on each other bottom-up.

See #12500 for original work and discussion.

@dmitry-markin
dmitry-markin requested review from bkchr and lexnv July 22, 2026 08:45
@dmitry-markin dmitry-markin self-assigned this Jul 22, 2026
@dmitry-markin
dmitry-markin requested a review from koute as a code owner July 22, 2026 08:45
@dmitry-markin dmitry-markin added the T0-node This PR/Issue is related to the topic “node”. label Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T0-node This PR/Issue is related to the topic “node”.

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant