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 initial weight configuration #742

Merged
merged 1 commit into from
Feb 27, 2021
Merged

Conversation

jcmoraisjr
Copy link
Owner

Weights can be used to distribute distinct load to distinct servers in the same backend. An initial value greater the default 1 (one) can be configured so agents that changes server weight can properly work and adjust the weight in lower granularity.

The initial weight configuration isn't properly working when declared in the ingress resource because its usage occurs before the value is actually read from the ingress annotation. It works however when declared in the service - service has priority and is read in the same block the backend is created and configured with initial weight and other defaults. Moving down the reading just before starting the endpoint configuration fixes this.

Weights can be used to distribute distinct load to distinct servers in
the same backend. An initial value greater the default 1 (one) can be
configured so agents that changes server weight can properly work and
adjust the weight in lower granularity.

The initial weight configuration isn't properly working when declared in
the ingress resource because its usage occurs before the value is
actually read from the ingress annotation. It works however when
declared in the service - service has priority and is read in the same
block the backend is created and configured with initial weight and
other defaults. Moving down the reading just before starting the
endpoint configuration fixes this.
@jcmoraisjr
Copy link
Owner Author

#741

@jcmoraisjr jcmoraisjr merged commit 442f1b1 into master Feb 27, 2021
@jcmoraisjr jcmoraisjr deleted the jm-fix-initial-weight branch February 27, 2021 18:23
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.

1 participant