Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

ReasonableInstanceCheckSeconds #1368

Merged

Conversation

binwiederhier
Copy link
Contributor

Related issue: #1367

This PR introduces a config option ReasonableInstanceCheckSeconds that allows configuring the time that Orchestrator allows for a check to take before considering an instanced failed (LastCheckValid: false). Currently this value is hardcoded as 1s.

More details in the issue.

Copy link
Collaborator

@shlomi-noach shlomi-noach left a comment

Choose a reason for hiding this comment

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

Looks good, thank you!

@shlomi-noach shlomi-noach merged commit 88867e6 into openark:master Jun 16, 2021
@binwiederhier
Copy link
Contributor Author

For reference, if this ever needs to be tested, you can test it by setting

"DetectSemiSyncEnforcedQuery": "select 1 from (select sleep(5)) a",

This will make the check take 5 seconds, so with the normal config it'll fail. If you then set

"ReasonableInstanceCheckSeconds": 15,

it should work again

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants