forked from cadence-workflow/cadence
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Emit metric for various mutable state stats (cadence-workflow#1136)
MutableState support for computing following metric: 1) Total size of mutableState 2) Execution info size within mutable state 3) Activity info size within mutable state 4) Timer info size within mutable state 5) Child info size within mutable state 6) Signal info size within mutable state 7) Buffered events size within mutable state 8) Buffered replication tasks size within mutable state 9) Number of activity infos within mutable state 10) Number of timers within mutable state 11) Number of child executions within mutable state 12) Number of signals within mutable state 13) Number of requestCancels within mutable state 14) Number of buffered events within mutable state 15) Number of buffered replication tasks within mutable state Session update support for following metric: 1) TotalSize of mutable state 2) Execution info size for session update 3) Activity info size for session update 4) Timer info size for session update 5) Child info size for session update 6) Signal info size for session update 7) Buffered events size for session update 8) Buffered replication tasks size for session update 9) Number of updated activity infos for session update 10) Number of updated timer infos for session update 11) Number of updated child infos for session update 12) Number of updated signal infos for session update 13) Number of updated requestCancel infos for session update 14) Number of deleted activity infos for session update 15) Number of deleted timer infos for session update 16) Number of deleted child infos for session update 17) Number of deleted signal infos for session update 18) Number of deleted requestCancel infos for session update Support to emit metric for all mutableState and sessionUpdate stats on each update through workflowContext. Emit metric on each AppendHistory call for size of update. Support for keeping track of total history size for workflow execution as part of mutable state.
- Loading branch information
1 parent
593ac83
commit 5c93511
Showing
21 changed files
with
1,068 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ALTER TYPE workflow_execution ADD history_size bigint; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
{ | ||
"CurrVersion": "0.11", | ||
"MinCompatibleVersion": "0.11", | ||
"Description": "Adding server side workflow retry", | ||
"Description": "Mutable state support for server-side retries and history size", | ||
"SchemaUpdateCqlFiles": [ | ||
"workflow_retry.cql" | ||
"workflow_retry.cql", | ||
"history_size.cql" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.