orleans
orleans copied to clipboard
Performance Counter alternatives in 2.0.0
In current Orleans we are using Performance counters for multiple things:
- Expose Orleans system metrics as Performance counters
- Read CPU utilization for the load shedding streaming feature
- Collect Thread context switch statistics
- Make it possible to register performance counters for grain by grain type, so grain count per type can be monitored
As Orleans 2.0 will support multiple OS platforms, Performance Counters are not a viable way ahead, so we're looking for alternate solutions:
- Keep the performance counter feature, but separate it into a Windows only package
- Move away from performance counters at all and implement a similar functionality on top of System.Diagnostics.Tracing.EventSource and associated classes, since they're part of .Net Standard 2.0
- Since reading the processor utilization without elevated privileges through ETW is not possible, it's probable, that load shedding will be abstracted out from the system and be a Windows only feature in Orleans 2.0
Building on top of the Tracing infrastructure it enables us to provide richer statistics and insights - with the support of event payloads - into a running system which can be consumed with standard ETW (Event Tracing for Windows) tools, when running under Windows, like perfview.
I thought performance counters is back in netstandard, according to @jdom 's notes. Is this not true?
btw just linking related issue so we can tackle them together. #2609