FluidFramework icon indicating copy to clipboard operation
FluidFramework copied to clipboard

Log when Data store has too many DDSs

Open vladsud opened this issue 4 years ago • 2 comments

We got a 70Mb doc that has a lot of nodes:

union Office_Fluid_FluidRuntime_* | where Data_docId == "aMtUNIYUVCTh9pnXng3MeXBc4k11eKpqrj4xeLK8S3A%3D" | where Data_eventName contains "GarbageCollection" | summarize count() by Data_eventName, Data_deletedNodes, Data_totalNodes, Data_deletedDataStores, Data_totalDataStores

Data_eventName Data_deletedNodes Data_totalNodes Data_deletedDataStores Data_totalDataStores count_
fluid:telemetry:Summarizer:Running:GarbageCollection_end 599 76,566 162 1,302 7

It looks to be an outlier (Data_totalNodes / Data_totalDataStores is at 99.995th percentile) and suggests that there is leakage of DDSs. Given that in the past we saw Stlyle map DDS leaked (and recreated) in Scriptor on multiple occasions, I think it's worth adding telemetry here.

For example, we can log an event, number of DDSs and stack when Data store has over 20 DDSs and creates one more. Number of cases like that should be low, and thus number of hits in telemetry will be low, but stack might be enough to identify the problem. I'd also log DDS type info as well.

vladsud avatar Mar 10 '22 20:03 vladsud

@vladsud would you propose a guideline for telemetry on too many DDSs from the component/dataobject level as well?

(For 1P, there is one automation guideline in place, which is to implement a test to ensure that no ops are generated simply by loading the doc, which is a major source of DDS spam.)

KRyan avatar Mar 11 '22 23:03 KRyan

Any number above average will do it. I'd start with 10.

vladsud avatar Mar 14 '22 16:03 vladsud