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

load: Add "weight" load variant #695

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Oct 4, 2022

  1. load: Add "weight" load variant

    Adds a `weight` load variant, which weights an inner load. This is
    useful in circumstances where it is desireable to artificially inflate
    or deflate load. One such example is canary deployments, where it might
    be preferable for a canary to accept less load than its non-canary
    counterparts.
    
    This change is adapted from the weight implementation that used to
    exist within tower but was removed (see
    tower-rs/tower@a496fbf) and an
    associated unmerged PR (tower-rs#282).
    samvrlewis committed Oct 4, 2022
    Configuration menu
    Copy the full SHA
    f857465 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    29e4de8 View commit details
    Browse the repository at this point in the history