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

Add support for load balancing weighted random pools #925

Merged

Conversation

roopa-13
Copy link
Contributor

@roopa-13 roopa-13 commented Jun 8, 2022

Description

random_steering is used to configure pool weights for random steering. When the steering policy is random, a random pool is selected with probability proportional to the pool weights. The default_weight field has a default value of 1 unless specified/set.

Has your change been tested?

Added new fields to load balancing tests which verifies the input struct matches the returning JSON/struct.

Screenshots (if appropriate):

Types of changes

What sort of change does your code introduce/modify?

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • This change is using publicly documented (api.cloudflare.com or developers.cloudflare.com) and stable APIs.

@roopa-13 roopa-13 force-pushed the roopa/add-weighted-random-steering branch from 08cf229 to 6163b6e Compare June 8, 2022 22:49
@roopa-13 roopa-13 force-pushed the roopa/add-weighted-random-steering branch from 6163b6e to bc1704c Compare June 8, 2022 23:06
@jacobbednarz
Copy link
Member

LGTM

@jacobbednarz jacobbednarz merged commit 6d43834 into cloudflare:master Jun 8, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants