Conversation
|
I wonder if we could avoid exposing users to one more knob by jittering by default. We would have to pick a value between [next evaluation..next evaluation+1], maybe biased towards the beginning of the interval. WDYT? Would that be confusing for users? |
|
i think it would be fine for policies which happen often enough (once every day or more often), but could get confusing if policies put in more delays, especially when entered in cron format. For instance if i put We could do something where the jitter_secs is |
|
Yes, |
guilload
left a comment
There was a problem hiding this comment.
This was a nice one :) Let's merge it.
| /// applied. Said otherwise, an operation may start any time between the next time it's | ||
| /// scheduled, and the time after that, but no later than 1h after the scheduled time. | ||
| #[serde(skip_serializing_if = "Option::is_none")] | ||
| pub jitter_secs: Option<u64>, |
Description
add optional jitter to retention policy schedule, so that numerous indexes with the same schedule don't hammer down the metastore when they all execute their retention policy
fix #5353
How was this PR tested?
unit test