-
Notifications
You must be signed in to change notification settings - Fork 910
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce default namespace cache refresh interval to 2s #7209
Conversation
@@ -42,7 +42,7 @@ import ( | |||
const ( | |||
WorkflowName = "temporal-sys-reclaim-namespace-resources-workflow" | |||
|
|||
namespaceCacheRefreshDelay = 11 * time.Second | |||
namespaceCacheRefreshDelay = 3 * time.Second |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤦
Let's not change it? In production we are using 2s and 11s combination and thing are fine. 2s and 3s I am not sure. Relying on this delay to make sure no new workflows are created is kinda dangerous.
cc @alexshtin WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, no strong opinion for me. Just did a quick search to try to find anywhere else we were redefining it as a constant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't realize that we have DC for this interval. This WF should read DC, not have its own const. I will change it. Revert it to 11
for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What changed?
Reduced the default namespace cache refresh interval (dynamic config
system.namespaceCacheRefreshInterval
) from 10s -> 2sWhy?
How did you test it?
Existing tests
Potential risks
Additional load on persistence from increased calls to refresh namespaces in the cache.