Skip to content
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

Add limits on other workflow fields #3599

Merged
merged 1 commit into from
Nov 18, 2022
Merged

Conversation

MichaelSnowden
Copy link
Contributor

What changed?
I added item count limits on three other fields in our mutable state (pending activities, pending cancel requests, pending signals).

Why?
I made this change to ensure that our workflows don't become too large.

How did you test it?
I just added the limits to our dynamic config, but they aren't enforced yet.

Potential risks
None.

Is hotfix candidate?
No.

@MichaelSnowden MichaelSnowden requested a review from a team as a code owner November 15, 2022 20:07
@MichaelSnowden MichaelSnowden changed the base branch from ms-limits/all-limits-base to ms-limits/remove-warning November 16, 2022 00:08
Base automatically changed from ms-limits/remove-warning to master November 16, 2022 04:00
@MichaelSnowden MichaelSnowden force-pushed the ms-limits/all-limits branch 2 times, most recently from d3adf20 to 4e47e2b Compare November 16, 2022 05:58
Copy link
Contributor

@yux0 yux0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stamped as long as we have consensus on the default value.

Comment on lines 437 to 440
NumPendingChildExecutionsLimit: dc.GetIntPropertyFilteredByNamespace(dynamicconfig.NumPendingChildExecutionsLimitError, 1000),
NumPendingActivitiesLimit: dc.GetIntPropertyFilteredByNamespace(dynamicconfig.NumPendingActivitiesLimitError, 1000),
NumPendingSignalsLimit: dc.GetIntPropertyFilteredByNamespace(dynamicconfig.NumPendingSignalsLimitError, 1000),
NumPendingCancelsRequestLimit: dc.GetIntPropertyFilteredByNamespace(dynamicconfig.NumPendingCancelRequestsLimitError, 1000),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have we reviewed this default numbers?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we want to set these to 50K for now to not break anything

@MichaelSnowden MichaelSnowden enabled auto-merge (squash) November 18, 2022 16:53
@MichaelSnowden MichaelSnowden merged commit be7daec into master Nov 18, 2022
@MichaelSnowden MichaelSnowden deleted the ms-limits/all-limits branch November 18, 2022 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants