Skip to content
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

Backport performance improvements #19442

Merged
merged 6 commits into from Apr 8, 2019
Merged

Conversation

cjellick
Copy link

@cjellick cjellick commented Apr 8, 2019

This PR backports several API performance improvements from master to
v2.2. It also pulls in a commit that causes us to run go test as part
of CI builds.

#19443

rmweir and others added 6 commits April 8, 2019 05:20
Increased size of parent cache to 100k from 1k. Prior, when retrieving
a large number of resources (over 1k) items would shift out of the cache
before being called again. This caused misses on most requests. Now,
size of cache has increased 10x and misses have been largely reduced. Using
non-expiration lru cache, as the data is static and does not need to be
discarded after a set time.
Test script now runs go tests. Disabled existing test setup in e2e
package, as the the necessary dependencies for it appear to be
missing.

This reverts commit 3bb7a2778d186daaf61fc1ec8f28959ad8616dad.
Manual backport of commit f2b601c
from master.

Norman now has a recognized option for opting out of pagination.
Prior, passing a limit of -1 would set the pagination limit to
the default, 1000. The backend would serve a paginated response
that the UI automatically aggregates. This led multiple api calls,
each of which taking as long to return as a single non-paginated
result. Now, one non-paginated response will be returned when
limit is -1.
Backport of d040b64 from master

Norman now tracks and assigns project namespaces
which are necessary to filter project requests.
Now, identifies and supplies namespaces to namespace filter for requests
associated with given project. Prior, the backend listed items belonging
to all namespaces in all projects no matter what, and then filtered. This
led to longer request times for projects that contained a fraction of
total resources. Now, request times are improved and largely dependent on
resource amount for the given project.
Added tests for logic in project setter store.
@cjellick cjellick merged commit a86df2a into rancher:release/v2.2 Apr 8, 2019
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.

None yet

2 participants