Skip to content

Some performance optimization when there are lots of containers to list#2566

Closed
lifubang wants to merge 2 commits intocontainerd:masterfrom
lifubang:containerinfo
Closed

Some performance optimization when there are lots of containers to list#2566
lifubang wants to merge 2 commits intocontainerd:masterfrom
lifubang:containerinfo

Conversation

@lifubang
Copy link
Copy Markdown
Contributor

When use 'ctr c info ':
The result of api named Get contains all container info, we don't need to call Get API again.

When use 'ctr c ls':
The result of api named List contains all container's info, we don't need to call Get API for each container.

This is useful when there are lots of containers to list.

Please check it, thanks.

@crosbymichael
Copy link
Copy Markdown
Member

I think this is a good idea, thinking more on how we want to handle this with the client methods

crosbymichael added a commit to crosbymichael/containerd that referenced this pull request May 10, 2019
Closes containerd#2566

This provides faster lookups and lists for ctr commands.

Signed-off-by: Michael Crosby <[email protected]>
@estesp estesp closed this in #3271 May 10, 2019
tussennet pushed a commit to tussennet/containerd that referenced this pull request Sep 11, 2020
Closes containerd#2566

This provides faster lookups and lists for ctr commands.

Signed-off-by: Michael Crosby <[email protected]>
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.

2 participants