Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Splits ContainerMetrics and ContainerInfo into two separate structs #15

Merged
merged 1 commit into from Oct 6, 2015

Conversation

jvshahid
Copy link
Contributor

@jvshahid jvshahid commented Oct 6, 2015

Previously GetInfo returned both the container info as well as the metrics.
metrics turned out to be expensive, this change is separating them. It also
removes some unused ContainerInfo fields, e.g. HostIpAddress. Some of those
fields required looping through the network interfaces and figuring out
the ip address. although we could possibly cache the information it seems
unecessary to do the effort given that the containerizer doesn't use them.

[#105015120]

Signed-off-by: Micah Young myoung@pivotal.io

Previously GetInfo returned both the container info as well as the metrics.
metrics turned out to be expensive, this change is separating them. It also
removes some unused ContainerInfo fields, e.g. HostIpAddress. Some of those
fields required looping through the network interfaces and figuring out
the ip address. although we could possibly cache the information it seems
unecessary to do the effort given that the containerizer doesn't use them.

[#105015120]

Signed-off-by: Micah Young <myoung@pivotal.io>
@jvshahid
Copy link
Contributor Author

jvshahid commented Oct 6, 2015

@brannon what do you think ?

@jvshahid
Copy link
Contributor Author

jvshahid commented Oct 6, 2015

There have been some other major changes that we would like your input on when you have chance, 33c6803.
Thanks!

jvshahid added a commit that referenced this pull request Oct 6, 2015
…rics

Splits ContainerMetrics and ContainerInfo into two separate structs
@jvshahid jvshahid merged commit 3b677f3 into master Oct 6, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant