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

RPCChainVM fail-fast health RPCs #2123

Merged
merged 6 commits into from
Oct 4, 2023
Merged

RPCChainVM fail-fast health RPCs #2123

merged 6 commits into from
Oct 4, 2023

Conversation

hexfusion
Copy link
Contributor

@hexfusion hexfusion commented Oct 2, 2023

Why this should be merged

Currently the default client config defines all RPCs to WaitForReady this means the client call will block forever in the case that the server is terminated.

HealthChecks should fail fast to report a failing health check for a VM that has been terminated.

How this works

Fine tune WaitForReady as RPC CallOption.
ref. https://github.com/grpc/grpc/blob/master/doc/wait-for-ready.md

How this was tested

Manually and CI

TODO: test with ANR and subnet

@hexfusion hexfusion changed the title Add fail fast client to RPC ChainVM Allow Shutdown and HealthCheck RPCs to fail-fast Oct 3, 2023
Signed-off-by: Sam Batschelet <[email protected]>
vms/rpcchainvm/vm_client.go Outdated Show resolved Hide resolved
vms/rpcchainvm/vm_client.go Outdated Show resolved Hide resolved
vms/rpcchainvm/factory.go Outdated Show resolved Hide resolved
@StephenButtolph StephenButtolph added this to the v1.10.12 milestone Oct 3, 2023
@hexfusion hexfusion changed the title Allow Shutdown and HealthCheck RPCs to fail-fast RPCChainVM fail-fast health RPCs Oct 4, 2023
@StephenButtolph StephenButtolph added this pull request to the merge queue Oct 4, 2023
Merged via the queue into dev with commit 3b6514d Oct 4, 2023
16 checks passed
@StephenButtolph StephenButtolph deleted the fail-fast branch October 4, 2023 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants