-
Notifications
You must be signed in to change notification settings - Fork 535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Summarize one more time before closing #643
Comments
One drawback to this is the potential up-front perf cost. For example, in the app currently switching from one document to another would trigger this new final summarize on the old document, but at the same time it is trying to load a new document, which is already a critical perf point. |
After thinking some more: change #1722 do not close on nack + summarize one last time after main client closes + delay spawn summarizer, when all 3 are combined, seems to mean that the main client needs to try to spawn a summarizer even if it is disconnected. Without the change in #1722, do not retry on nack:
With this PR change, step (1) will not repeat, so the main client won't be connected after 5 sec delay, so it may not spawn a summarizer. The change in #1722 seems useful on its own, so I was thinking about ways to still have all 3 changes.
I am currently doing the second idea, but I'm wondering your thoughts; I don't see a way to achieve the first idea- is it possible to know how far behind we are when calling |
As I was reading through options, I also stopped on #2 as most viable.
|
Closed with PR #1729 Went with option (2) above. Changed to allow the spawned summarizer container to try to summarize one last time before closing after the main container disconnects. (if >50 ops since last successful summary). |
# Improve `@fluidframework/test-client-utils` API docs The intention behind this PR is to improve API documentation on the consumer-facing APIs of the `@fluidframework/test-client-utils` package. It also includes some changes in transitively exposed APIs from packages upon which it depends. See here for the public-facing, generated docs: https://fluidframework.com/docs/apis/test-client-utils/ [ADO #643](https://dev.azure.com/fluidframework/internal/_workitems/edit/643)
If parent container closes/disconnects, currently the summarizer container stops immediately.
It might be nice if the summarizer container instead sort of "queues" a stop, and tries to generate one last summary before stopping/closing.
This can be a perf improvement in the case that the last user of a document disconnects their main client (i.e. switching active documents without closing the browser tab), because it gives them a chance to summarize trailing ops.
It also opens up the possibility to summarize while troubleshooting/having connection issues because of server rejection. Currently the server will reject all ops incoming for a document that hasn't summarized for too long. It will disconnect the client trying to send these ops, so it will disconnect the main client without their summarizer a chance to run. This change will allow the summarizer to at least try to send 1 summary before closing. In troubleshooting scenarios, this summary might fix whatever issues were there.
The text was updated successfully, but these errors were encountered: