ic
ic copied to clipboard
feat: [CON-1567] add some load metrics to `CanisterMetrics` in the `ReplicatedState`
These metrics could be later used to determine how to split a subnet, if necessary.
Metrics tracked per canister
- Number of ingress messages executed (8 bytes)
- Number of xnet requests/responses executed (8 bytes)
- Number of intranet requests/responses executed (8 bytes)
- Number of http outcalls executed (8 bytes)
- Total number of instructions executed (8 bytes)
Note: In total they increase the size of the replicated state by 40 bytes per canister.
Next steps
In a subsequent PR (https://github.com/dfinity/ic/pull/8082) we will be adding tools to read these metrics