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

Implement simple logs processing loop that is suitable for processing large amounts of usage stats #11

Open
scheibo opened this issue Aug 27, 2024 · 0 comments
Labels
logs Issue related to @pkmn/logs

Comments

@scheibo
Copy link
Contributor

scheibo commented Aug 27, 2024

Produce a MVP multi-(threaded|process) solution which can process logs efficiently. Minimum requirements:

  • bound on number of open file descriptions
  • bound of memory usage
  • save progress on a days worth of logs as compressed checkpoints

Other features which would be nice to have:

  • logging to diagnose errors
  • sending out an email on errors so that the processing can be set up with a nightly cron job without worry about missing information
    • alternatively, posting a webhook to a discord channel might be preferable?

Speed requirements are not super important, should be able to process a day's worth of logs onn Smogon faster than smogon/usage-stats:

Stretch feature: compress files after each run so that at the end of the month archiving is just a matter of the final tar cvf $OUTPUT * step

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
logs Issue related to @pkmn/logs
Development

No branches or pull requests

1 participant