-
Notifications
You must be signed in to change notification settings - Fork 63
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
API Chunking Support #312
API Chunking Support #312
Conversation
09b1bac
to
10ba18c
Compare
This pull request has been automatically closed because it has not been updated for at least 6 months. Feel free to reopen this pull request if these changes are still valid. Thank you for all your contributions! |
@agrare How much work do you think it would take to revive this? cc @oourfali Motivation:In https://bugzilla.redhat.com/1722808, users were seeing timeouts on openshift side for manageiq's large refresh requests. I suspect in that particular setup it could be relieved on openshift side (https://bugzilla.redhat.com/1729461), and I'm not aware of any concrete bug in manageiq contributing to that, aside from the fact manageiq makes huge requests. |
Hey @cben the biggest issue for me was not being able to re-record the VCRs for specs |
10ba18c
to
fe339d4
Compare
spec/models/manageiq/providers/kubernetes/container_manager/refresh_mixin_spec.rb
Show resolved
Hide resolved
VCR recording is quite automated with https://github.com/ManageIQ/guides/blob/master/providers/openshift.md#automated-script-to-record-new-vcr You need a clean empty openshift running, easiest is with minishift as documented in that doc. We never bothered with separate recording of a kubernetes cluster; instead we just copy the updated VCRs over here to providers-kubernetes repo.
The assertions are split between the tests in the 2 repos, here we test the upstream k8s objects.
|
Thanks @cben ! I got the kubernetes and openshift specs passing. I had the original |
spec/models/manageiq/providers/kubernetes/container_manager/refresher_spec.rb
Show resolved
Hide resolved
Checked commits agrare/manageiq-providers-kubernetes@97ddecf~...2b2a7e4 with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awesome 👏
API Chunking Support (cherry picked from commit bea27dd) https://bugzilla.redhat.com/show_bug.cgi?id=1754071
Hammer backport details:
|
API Chunking Support (cherry picked from commit bea27dd) https://bugzilla.redhat.com/show_bug.cgi?id=1767834
Ivanchuk backport details:
|
Pass a limit to each get_ call to prevent massive numbers of objects being returned and have them returned in multiple pages instead.
This reduces memory usage of the collector and also reduces load on the kubernetes API server.
https://bugzilla.redhat.com/show_bug.cgi?id=1722808