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

perf(kubernetes): Remove cluster relationship from pod kind #3758

Merged
merged 3 commits into from
Jun 6, 2019
Merged

perf(kubernetes): Remove cluster relationship from pod kind #3758

merged 3 commits into from
Jun 6, 2019

Conversation

ezimanyi
Copy link
Contributor

@ezimanyi ezimanyi commented Jun 6, 2019

Pods are currently set as having a cluster relationship; this means that we create a cluster (and associated relationship to the pod) for every pod in a kubernetes deployment.

This is not necessary, and doesn't match the definition of cluster used by other providers. These clusters and relationships are also not used when we construct the server group model for
a Kubernetes application; we end up ignoring any cluster that does not map to a server group (which pods do not).

This change will significantly improve the efficiency of both the caching logic, and the logic to return server groups for kubernetes (which now will not need to process each pod individually).

Pods are currently set as having a cluster relationship; this
means that we create a cluster (and associated relationship to
the pod) for every pod in a kubernetes deployment.

This is not necessary, and doesn't match the definition of cluster
used by other providers.  These clusters and relationships are
also not used when we construct the server group model for
a Kubernetes application; we end up ignoring any cluster that
does not map to a server group (which pods do not).

This change will significantly improve the efficiency of both
the caching logic, and the logic to return server groups for
kubernetes (which now will not need to process each pod individually).
Copy link
Contributor

@maggieneterval maggieneterval left a comment

Choose a reason for hiding this comment

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

couldn't come up with a good emoji but...

A7xt (1)

@maggieneterval
Copy link
Contributor

oh wait you haven't seen star wars! tl;dr is baby darth vader competes in a "pod" racing competition in order to buy his freedom and escape from his mum / the planet of tatooine (aka his "cluster relationships")

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.

3 participants