Skip to content

Conversation

@hbagdi
Copy link
Contributor

@hbagdi hbagdi commented Dec 10, 2019

No description provided.

Doing a sync to Kong in DB or in-memory mode, both are expensive
operations and should be avoided if there is no change happening.

In a k8s cluster, pods, services change quite often and lead to a lot of
events to this controller, which lead to frequent unnecessary reloads.

This patch deterministically sorts the final configuration and then
caches the hash, which is then compared in the next iteration to avoid a
sync if possible.

This change piggybacks on the previous commit which consolidates the DB
and DB-less mode into one data-structure.
@hbagdi hbagdi merged commit 31e175f into master Dec 16, 2019
@hbagdi hbagdi deleted the perf-improvements branch December 16, 2019 16:57
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