Merged
Conversation
Codecov Report
Continue to review full report at Codecov.
|
rabbah
approved these changes
Dec 4, 2018
Member
Author
|
Opened apache/openwhisk-cli#390 to fix the wsk poll logic to change |
BillZong
pushed a commit
to BillZong/openwhisk
that referenced
this pull request
Nov 18, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Make limits related to list operation against entities configurable.
Description
Currently the queries related to collections (used while doing list operation) make use of hard coded limits.
Impact due to wsk activation poll
For example if
limit=0in list operation then it uses 200 has the default value. This is used inwsk activation pollwhich by default generates a GET request likeCurrently the poll command once started "probably" sticks to start time and we have seen user leaving such poll running for days (often left in one of the numerous tabs!) which causes the system to pull similar 200 records over and over.
CosmosDB and higher resource usage
Further in our case (using CosmosDB) which does client side merging of query results a sorted query gets executed like below
In such a case at times we have seen for listing 200 records SDK fetch ~ 900 records causing higher resource usage on db side
To reduce impact for such cases I would like to have these limits configurable
Related issue and scope
My changes affect the following components
Types of changes
Checklist: