Repository navigation
fix(coderd): extract provisionerdserver.StaleInterval to 90 seconds - #15643
Conversation
mafredri
left a comment
There was a problem hiding this comment.
I think this is an improvement, but I still find this approach lacking.
mafredri
left a comment
There was a problem hiding this comment.
Thanks for making the change 👍🏻, if we noticed that the decreased interval leads to too many false-positive stale states, then we can consider raising it to 150s or something like that.
|
|
||
| // StaleInterval is the amount of time after the last heartbeat for which | ||
| // the provisioner will be reported as 'stale'. | ||
| StaleInterval = 90 * time.Second |
There was a problem hiding this comment.
If I configure my heartbeat interval to be greater than 90 sec, it reads like this will introduce false negatives where a heartbeat simply hasn't run but the provisioner presents as stale. Am I missing something?
There was a problem hiding this comment.
Yep, but we don't expose that as a coderd configuration knob yet. The only way you could configure that is by editing the source code right now.
Follow-up from #15578
Extracts
provisionerdserver.StaleIntervaland sets it to 90 seconds by default