You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@yunikorn.apache.org by "Craig Condit (Jira)" <ji...@apache.org> on 2023/12/08 16:50:00 UTC
[jira] [Comment Edited] (YUNIKORN-2061) [Umbrella] Add Pagination to APIs which may have lot of items in response
[ https://issues.apache.org/jira/browse/YUNIKORN-2061?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17794802#comment-17794802 ]
Craig Condit edited comment on YUNIKORN-2061 at 12/8/23 4:49 PM:
-----------------------------------------------------------------
It looks like you are unconditionally compressing the response in your demo - please be sure that the Accept-Encoding header is honored (i.e. you should not send compressed data unless the client requests it). See [https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Encoding] for details.
Something like this will probably work: https://gist.github.com/the42/1956518
was (Author: ccondit):
It looks like you are unconditionally compressing the response in your demo - please be sure that the Accept-Encoding header is honored (i.e. you should not send compressed data unless the client requests it). See [https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Encoding] for details.
> [Umbrella] Add Pagination to APIs which may have lot of items in response
> -------------------------------------------------------------------------
>
> Key: YUNIKORN-2061
> URL: https://issues.apache.org/jira/browse/YUNIKORN-2061
> Project: Apache YuniKorn
> Issue Type: Improvement
> Components: core - common, webapp
> Reporter: PoAn Yang
> Assignee: JiaChi Wang
> Priority: Major
> Attachments: Screenshot 2023-10-21 at 8.01.26 PM.png, Screenshot 2023-10-21 at 8.03.15 PM.png, getQueueApplication_after_compress.png, getQueueApplication_before_compress.png
>
>
> The following API may have lot of items in one response. It's good to add pagination design to them.
> * Queue applications (/ws/v1/partition/\{partitionName}/queue/\{queueName}/applications)
> * Application history (/ws/v1/history/apps)
> * Container history (/ws/v1/history/containers)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: issues-help@yunikorn.apache.org