Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Configuration weight RR (1/4) #900

Closed
wants to merge 1 commit into from
Closed

Configuration weight RR (1/4) #900

wants to merge 1 commit into from

Conversation

kuritka
Copy link
Collaborator

@kuritka kuritka commented Jun 7, 2022

Related to #50
The weight (optional field) configuration goes into the GSLB strategy. This PR only aims
to load and validate the weight configuration, which is specified in percentages.

  strategy:
    type: roundRobin # Use a round robin load balancing strategy, when deciding which downstream clusters to route clients too
    weight: 20%

gslb.spec.strategy.weight is not allowed for failover and geoip strategies. If it is not specified in roundRobin,
then it is not a weight RoundRobin but classic one.

Signed-off-by: kuritka kuritka@gmail.com

move RoundRobinStrategy, FailoverStrategy, GeoStrategy constants into depresolver package

Related to #50
The weight (optional field) configuration goes into the GSLB strategy. This PR only aims
to load and validate the weight configuration, which is specified in percentages.

```yaml
  strategy:
    type: roundRobin # Use a round robin load balancing strategy, when deciding which downstream clusters to route clients too
    weight: 20%
```
gslb.spec.strategy.weight is not allowed for failover and geoip strategies. If it is not specified in roundRobin,
then it is not a weight RoundRobin but classic one.

Signed-off-by: kuritka <kuritka@gmail.com>

move RoundRobinStrategy, FailoverStrategy, GeoStrategy constants into depresolver package
@kuritka kuritka changed the title Configuration weight (1/4) Configuration weight RR (1/4) Jun 8, 2022
kuritka added a commit that referenced this pull request Jun 8, 2022
After #900 is merged. Strategies are not validated. I am adding validation to the strategy type.

Signed-off-by: kuritka <kuritka@gmail.com>
@kuritka kuritka closed this Jun 14, 2022
@ytsarev ytsarev deleted the wrr-1-ep branch April 19, 2023 20:36
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant