Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

ReasonableInstanceCheckSeconds#1368

Merged
shlomi-noach merged 1 commit intoopenark:masterfrom
binwiederhier:ReasonableInstanceCheckSeconds
Jun 16, 2021
Merged

ReasonableInstanceCheckSeconds#1368
shlomi-noach merged 1 commit intoopenark:masterfrom
binwiederhier:ReasonableInstanceCheckSeconds

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