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
get pods list API for large datasets, pagination in plans? #2349
Comments
We've been discussing it in a few places. Etcd 0.6 has proposed a pageable internal data structure which would potentially allow us to that efficiently. It's probably a ways out. |
Discussion in the store proposal: etcd-io/etcd#1634 (comment) ----- Original Message -----
|
We should try to use the same approach for paging for metrics, logs, events, lists, etc. |
I'd prefer to go down the (prefix for start, next page token, limit) route On Tue, Nov 17, 2015 at 1:21 PM, Brian Grant notifications@github.com
|
@smarterclayton I agree. Best practice for Google APIs is to allow list request to specify a max size and page token (empty for first page), with each page returning an opaque next page token. To ensure opacity, page tokens are typically base64 encoded, and often contain structured data. |
Yes, I think the internal rules around this are good and we should use them. |
@bgrant0607 @smarterclayton I am getting a bit worried that someone is going to run a huge cluster and this will turn into an emergency overnight, but it's a fair amount of work, so I think we want to have it in before it becomes an emergency. Does it make sense to target this for 1.3? @krousey is interested in adding this to API server. |
I wanted to wait for etcd3, because I suspect with protobuf + etcd we will On Tue, Feb 2, 2016 at 1:29 PM, Daniel Smith notifications@github.com
|
@smarterclayton How much work is there left to do on protobuf? |
A few weeks of effort altogether and the necessary soak time On Tue, Feb 2, 2016 at 11:58 PM, Brian Grant notifications@github.com
|
Automatic merge from submit-queue Design for consistent API chunking in Kubernetes In order to reduce the memory allocation impact of very large LIST operations against the Kubernetes apiserver, it should be possible to receive a single large resource list as many individual page requests to the server. Part of kubernetes/enhancements#365. Taken from kubernetes/kubernetes#49338. Original discussion in kubernetes/kubernetes#2349
Chunking is now supported via the api |
Are there plans to add Pagination to those api endpoint results that can end up possibly being large, like listing all of the pods.
The text was updated successfully, but these errors were encountered: