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

fix download counter #118

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mreid-tt
Copy link
Contributor

@mreid-tt mreid-tt commented Mar 3, 2024

Description

This PR implements the download counter function and includes:

  • rewrite catalog download links using md5 hashes for id
  • allow downloads of noarch builds to pass arch checks
  • rewrite nas tests for new url structure

fixes #22

Notes

While this implementation is functional, it lacks efficiency as it generates a database entry for every download request from a client. As mentioned in #112 (comment), the platform currently manages approximately 3.5 million requests per day with a 97% hit ratio on Fastly as CDN. Implementing this would lead to a significant surge in server traffic, potentially causing platform outages for users due to approximately a 33x increase in load.

Given the above, help is requested to find a more efficient implementation of this function.

- rewrite catalog download links using md5 hashes for id
- allow downloads of noarch builds to pass arch checks
- rewrite nas tests for new url structure
@mreid-tt mreid-tt self-assigned this Mar 3, 2024
@mreid-tt mreid-tt marked this pull request as draft March 3, 2024 11:11
@hgy59
Copy link
Contributor

hgy59 commented Mar 23, 2024

@mreid-tt If you find a solution for the download counters, it would be nice to display the counters somewhere in the admin UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for "Download count" in DSM 6.2
2 participants