FluidFramework icon indicating copy to clipboard operation
FluidFramework copied to clipboard

Data_timeSinceLastSummary either too high or does not make sense

Open vladsud opened this issue 7 years ago • 5 comments

Data is based on last 5 days.

If these numbers resemble actual perf, why are they so large? If not, can we fix it? I assume they are incorrect due to reporting bogus data for first summary. Can we either not report it, or add a summary counter property (to know it's first summary in this session)?

percentile | time (ms) 50 | 41,349 90 | 148,421 95 | 355,758 98 | 687,469 99 | 862,177 99.5 | 1,008,407 max | 1,750,118

vladsud avatar Nov 07 '19 00:11 vladsud

There is already a summary counter property since at least version 0.10.15850: "Data_summarizeCount".

The first summary would typically report less time currently, because it counts time since it started up rather than since the last summary sent.

arinwt avatar Nov 07 '19 19:11 arinwt

Another thing to consider is that the timeSinceLastSummary here includes the time it takes to actually generate the summary. That may not be the root cause of these, but in some cases where generating summary is slow, then timeSinceLastSummary will also appear high.

I already changed this in PR #460, so the timeSinceLastSummary and timeSinceLastAttempt will be the time until right before the summary is generated.

arinwt avatar Nov 08 '19 00:11 arinwt

We will need to wait until we get more data, but numbers make the most sense with versions after 0.10.15313, especially when subtracting duration. They max out right around 600,000 (10 min) which is the summary ack wait timeout - this makes sense.

type pkg Count min 25pct 50pct 90pct 95pct 98pct 99pct 99_5pct max
raw 0.10.15993 159 15907 18622 36108 108537 310020 406331 536422 600237 600237
raw 0.10.15850 2 16333 16333 16333 36575 36575 36575 36575 36575 36575
raw 0.10.15313 5178 2115 19274.5 41570.48 150952.7 352545.6 693074.1 865869.5 1077764 1750118
raw 0.10.15062 6 6417 7242 12940 127430 127430 127430 127430 127430 127430
raw   4 6028 6028 10928 25009 25009 25009 25009 25009 25009
minusDuration 0.10.15993 159 15001 16882 34051 107113 308464 404325 535296 597719 597719
minusDuration 0.10.15850 2 15018 15018 15018 34648 34648 34648 34648 34648 34648
minusDuration 0.10.15313 5178 33 16529.64 39215.13 147597.2 351962.3 690069.9 864062 1072574 1747512
minusDuration 0.10.15062 6 5003 5051 5132 113850 113850 113850 113850 113850 113850
minusDuration   4 5001 5001 5002 17309 17309 17309 17309 17309 17309

arinwt avatar Nov 08 '19 00:11 arinwt

Follow-up: this is still occurring in later versions; am trying to find a cause.

arinwt avatar Nov 22 '19 00:11 arinwt

This can be caused because timeSinceLastAttempt is measuring time since last submitted op attempt, rather than last attempt. So it is not great for verifying the heuristics are behaving as intended. This is because lastAttempt doesn't get set if an error occurs during summarization.

arinwt avatar Jun 23 '20 21:06 arinwt