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

Merge hotfix branch into main #200

Merged
merged 35 commits into from
Jul 12, 2023
Merged

Merge hotfix branch into main #200

merged 35 commits into from
Jul 12, 2023

Conversation

kegsay
Copy link
Member

@kegsay kegsay commented Jul 12, 2023

Contains:

  • Additional metrics and logging
  • Bug fixes
  • Performance improvements

David Robertson and others added 30 commits June 22, 2023 17:40
in particular load() and setupConnection()
Track the time before processing a request
The db writes are still instant, but the notifications are now delayed
by up to 1 second, in order to not swamp the pubsub channels.
- Allowing unlimited concurrency on OnE2EEData causes huge spikes in DB conns
  when device lists change.
- Using a high, bounded amount of concurrency ensure we don't breach DB conn limits.

With unit tests.
…q params

Because the proxy services changes to req params preferentially to live
data, if the client constantly changes the window (e.g due to spidering)
then it can accidentally stop the delivery of live events to the client
until the spidering process is complete. To help address this, we now
process live updates _even if_ we have some data to send to the client.
This is bounded in size to prevent the inverse happening: constantly
seeing new live events which starves changes to req params. This should
hopefully strike the right balance.

With regression test.
otherwise we only see the error message if we're using sentry.
David Robertson and others added 2 commits July 10, 2023 16:51
@kegsay kegsay requested a review from DMRobertson July 12, 2023 10:34
DMRobertson pushed a commit that referenced this pull request Jul 12, 2023
.github/workflows/tests.yml Outdated Show resolved Hide resolved
sync2/handler2/handler.go Show resolved Hide resolved
sync2/handler2/handler.go Show resolved Hide resolved
sync2/handler2/handler.go Show resolved Hide resolved
sync3/handler/connstate.go Show resolved Hide resolved
sync3/handler/connstate.go Outdated Show resolved Hide resolved
DMRobertson pushed a commit that referenced this pull request Jul 12, 2023
@kegsay kegsay merged commit ad7c264 into main Jul 12, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants