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

Missing Data Stored #428

Open
jneterer opened this issue Jul 25, 2023 · 2 comments
Open

Missing Data Stored #428

jneterer opened this issue Jul 25, 2023 · 2 comments

Comments

@jneterer
Copy link
Contributor

See the attached image below, it looks like data stored hasn't been updated since July 8th, at least for me. Maybe others? Happy to help troubleshoot in any way I can.

Screenshot 2023-07-24 at 8 27 03 PM
@j-berman
Copy link
Collaborator

ACK, reviewing

@j-berman
Copy link
Collaborator

j-berman commented Jul 29, 2023

Context

The meter that tallies up data stored per user/app/admin runs in a nightly cron job. Userbase now has a number of admins who have lots of apps/users/data stored. The nightly meter job was doing a large uncapped number of concurrent DynamoDB reads and writes at a time to tally up data stored for each.

Of note, we (the Userbase service) use the meter to see which admins have stored more data than their subscription plan allows. If an admin exceeds their respective plan's storage limit, their apps continue to function normally but we ask that they upgrade their storage plan.

The issue

In the nightly meter job, the uncapped concurrent DDB reads were hitting up against DDB provisioned limits causing the meter job to fail sporadically.

The solution

The meter process is now smoother and better controlled (source). The cron job now runs to completion. The "data stored" in the admin panel should now properly update in ~24 hour intervals.

Will close this in a week if it runs smoothly as expected every night.

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

2 participants