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

New data-oriented task distribution strategy. #116

Merged
merged 9 commits into from
Mar 17, 2022
Merged

New data-oriented task distribution strategy. #116

merged 9 commits into from
Mar 17, 2022

Commits on Mar 15, 2022

  1. New Data-Oriented Task distribution strategy.

    In this change, I divide up the download requets to workers in a data-driven way. Namely, after fanning out the partitions, I group by both the license and number of requests. Then, I've restructured the fetch step to execute each group of configs in order.
    
    This way, we can guarantee that all licenses are being utilized to their max capacity and within rate limits. This is a much better fix for #98, as it also obviates the needs to limit the max number of workers (this is actually autoscale friendly!)
    
    Thanks to [email protected] for the idea and an example for how to implement this.
    alxmrs committed Mar 15, 2022
    Configuration menu
    Copy the full SHA
    4960074 View commit details
    Browse the repository at this point in the history
  2. Removed configure workers method.

    Now that we have a data-oriented strategy for evenly distributing tasks, we don't need to fight autoscaling anymore. Thus, we can get rid of the code that sets the max number of workers.
    alxmrs committed Mar 15, 2022
    Configuration menu
    Copy the full SHA
    ef3d9e0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8fd63d4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b45c0b6 View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2022

  1. Nit: Better counter key.

    alxmrs committed Mar 16, 2022
    Configuration menu
    Copy the full SHA
    2ff2d1f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    adfa4cd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3f54cd8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3a36241 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2f6beef View commit details
    Browse the repository at this point in the history