Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
conf: reduce readiness file stat() initial interval
Sometimes even if the readiness file exists the os.Stat() call will return "file not found". This causes GetReadinessIndicatorFile() to wait 1 second during performance critical operations, even if the os.Stat() would have returned success quickly after the first failure. Add a short backoff up to 1.2s before falling back to the longer intervals. The exponential backoff shouldn't add too much stress to the filesystem, but should allow quicker detection of the readiness file on each container operation. Signed-off-by: Dan Williams <[email protected]>
- Loading branch information