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

chore(kuma-cp) change default number of insights subscriptions #2266

Merged
merged 1 commit into from
Jul 2, 2021

Conversation

jakubdyszkiewicz
Copy link
Contributor

Summary

I think we overestimated the usefulness of DataplaneInsights subscriptions history.
Most of the time we check the current subscription for online/offline status, but not the previous ones.
Currently, there is a limit of 10 subscriptions in Insight. This can result in fairly big insight objects. Especially when we have many dataplanes and we are syncing Insights over KDS to global.
I think it's better to change the default subscriptions to 2. One for the current one and one before that.

For ZoneInsight I think we can leave 10, because we usually have only a few zones, maybe tens, not thousands like dataplanes. Also, we don't sync this over KDS.

Documentation

  • No docs, change in Kuma CP config.

Testing

  • Unit tests
  • E2E tests
  • Manual testing on Universal
  • Manual testing on Kubernetes

Signed-off-by: Jakub Dyszkiewicz <jakub.dyszkiewicz@gmail.com>
@jakubdyszkiewicz jakubdyszkiewicz requested a review from a team as a code owner July 1, 2021 11:10
Copy link
Contributor

@bartsmykla bartsmykla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jakubdyszkiewicz jakubdyszkiewicz merged commit a0c9735 into master Jul 2, 2021
@jakubdyszkiewicz jakubdyszkiewicz deleted the sub-config branch July 2, 2021 09:29
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