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

Randomize hourly update #9

Open
slominskir opened this issue Oct 16, 2023 · 0 comments
Open

Randomize hourly update #9

slominskir opened this issue Oct 16, 2023 · 0 comments

Comments

@slominskir
Copy link
Member

Currently the hourly update occurs 1 minute after the hour; but that means all instances of the app open around site (in each counting house) will issue a DB request at roughly the exact same time. If multiple instances are open per counting house we can run into a concurrent DB request limit (currently configured such that requests are queued for 5 seconds before timeout - and 3 are allowed concurrently). We could add a random number between 0 and 10 seconds for example to the refresh to spread the hourly refresh spike out. The current limits are fine for probably 10 concurrent users (due to queuing), but it appears users sometimes leave many more instances than that open in virtual desktops.

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

No branches or pull requests

1 participant