Summaries should contain at least 50 ops
Looking at last night ops in last readout file, locally downloaded here
Start: "sequenceNumber": 26211, "timestamp": 1569730717555, End: "sequenceNumber": 27245, "timestamp": 1569770505938,
There are 1035 ops 45 summaries
That's 23 ops / summary. This is bad, we are generating too many summaries when there is very little activity in the file. Over time, opened files like that will add to server COGS.
This will be partially addressed by issue #197 and #200 - most ops are join/leave/propose/reject as well as ops on scheduler tracking leadership change. But we should have lower bound limit on number of ops before we start new summary. It should be in the range or 50-100.
@GaryWilber - FYI, I'm not sure if we need to add additional config or this is just hardcoded in runtime.
Do we want this to build off of the interval draft that already exists? i.e. specifying an interval with no timeout will not summarize within that interval? Or do we want this separate?
What are the time gaps between summaries?
Summaries are always the best way to load. And provide something that storage can index. I think putting a lower limit on the number of ops actually can have negative consequences.
If the users all quiesce this seems like a good time to summarize since it's the end of activity. Who knows how much data is within those 50 ops...
I'd prefer to tweak the idle times - or allow the server to rate limit - than to impose an arbitrary lower bound.
Sure, op size alone may be misleading - same for time. The argument can be easily made in reverse - even a single op may result in summary of all the text that can take a bunch of CPU & network from client. I think we need a balance here - currently (according to telemetry) we summarize any payload, even 0 ops showed up on the wire (not sure if it's a typo or real thing). We need some reasonable spot that satisfies both client & server, we can make it more complex as we learn more (we just added tracking for time between summaries, ops summarized, payload size, reuse of blobs, time to summarize, etc.). We will tweak knobs based on what we learn.
- @ram-ramasubramanian, given you comment on unrelated thread:
Also keep in mind that summaries are generated so often (we see summaries keeping close to the ops generated) that ...
I think it might be a good idea to start with implementing a more flexible configuration (intervals), and then we could adjust it until we determine next steps. With the originally discussed interval config, <50 ops wouldn't generate a summary until 1 minute of idle time at the document level or 5 minutes of active usage. I think that would be a good starting point anyway, and even if we reduce flexibility later, at least we have data to back it up.
This issue has been automatically marked as stale because it has had no activity for 180 days. It will be closed if no further activity occurs within 8 days of this comment. Thank you for your contributions to Fluid Framework!
I think it's fine to close. I'd love to see more efficient files (and smaller server COGS, less bandwidth for users), but right now too much (including search and compliance) depends on faster summarization, that is likely not good idea to attack it any time soon.