Skip to content
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

Replication stability & performance #1803

Open
raineorshine opened this issue Feb 8, 2024 · 0 comments
Open

Replication stability & performance #1803

raineorshine opened this issue Feb 8, 2024 · 0 comments
Labels
bug Something isn't working performance Improve performance

Comments

@raineorshine
Copy link
Contributor

raineorshine commented Feb 8, 2024

This issue captures the variety of stability and performance issues that are observed when replicating a large, real-world thoughtspace on staging2.

Observations

  • Server crashes regularly
  • Replication gets stuck on "Replicating..." for a long time or indefinitely.
  • Replication gets stuck at 99% for a long time or indefinitely.
  • IndexedDB updates collection grows as slow as one record per minute during replication
    • Perhaps at the same rate as db queries?

Questions

  • Are there crash logs?
  • How do crash logs align with metrics?
  • Does upgrading the droplet mitigate the issue?
  • How many doclog blocks are loaded into memory?
  • Are db query performance issues observed in samples of 10k or 100k thoughts?
    • If all updates are stored in a single collection, then I would expect db query performance to be degraded in a new thoughtspace as well.

Solutions

  • Can Hocuspocus sync differences only to conserve memory?
    • Does Hocuspocus use state vectors?
    • How would it sync different clients?
    • Each client triggers its own onDocumentLoad
@raineorshine raineorshine added bug Something isn't working performance Improve performance labels Feb 8, 2024
@raineorshine raineorshine added this to the ⚖️ Data Integrity milestone Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working performance Improve performance
Projects
None yet
Development

No branches or pull requests

1 participant