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: populate algorithm of Upstream for Kong >= 1.3.0 #480

Merged
merged 1 commit into from
Dec 6, 2019

Conversation

hbagdi
Copy link
Member

@hbagdi hbagdi commented Dec 6, 2019

The algorithm in the upstream entity defaults to round-robin.
This field was introduced in Kong 1.3.0.

If this field is not set, decK finds a diff between the current state
and target state and issues a PUT request to Kong, updating the upstream
in Kong's database.

This leads to a cache invalidation and rebuilt of upstreams in Kong,
causing performance degradation.

The code now injects the algorithm based on the version of Kong (or Kong
Enterprise). Kong Enterprise 1.3.0.0 will also pick this change
correctly.

The `algorithm` in the `upstream` entity defaults to `round-robin`.
This field was introduced in Kong 1.3.0.

If this field is not set, decK finds a diff between the current state
and target state and issues a PUT request to Kong, updating the upstream
in Kong's database.

This leads to a cache invalidation and rebuilt of upstreams in Kong,
causing performance degradation.

The code now injects the algorithm based on the version of Kong (or Kong
Enterprise). Kong Enterprise 1.3.0.0 will also pick this change
correctly.
@hbagdi hbagdi merged commit 4aa24bc into master Dec 6, 2019
@hbagdi hbagdi deleted the fix/upstream-algorithm-default branch December 6, 2019 21:50
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.

1 participant