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

Optimize cache warmup on startup #276

Conversation

markusthoemmes
Copy link
Contributor

This makes cache warmup at startup simpler (and most likely faster too):
Instead of relying on the global resync to do its thing (which can be very slow, especially because of our two-lane queues), this runs all the ingresses through the reconciler without queueing them and before launching the config server. Having this seeded config is necessary to start it anyway, so we might as well block startup on it completely.

@google-cla google-cla bot added the cla: yes Indicates the PR's author has signed the CLA. label Oct 29, 2020
@knative-prow-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: markusthoemmes

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Oct 29, 2020
@codecov
Copy link

codecov bot commented Oct 29, 2020

Codecov Report

Merging #276 into master will decrease coverage by 0.92%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #276      +/-   ##
==========================================
- Coverage   65.99%   65.06%   -0.93%     
==========================================
  Files          17       17              
  Lines         641      624      -17     
==========================================
- Hits          423      406      -17     
  Misses        191      191              
  Partials       27       27              
Impacted Files Coverage Δ
pkg/generator/caches.go 79.04% <100.00%> (-2.92%) ⬇️
pkg/generator/ingress_translator.go 66.36% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6647338...9ac1af7. Read the comment docs.

@markusthoemmes markusthoemmes force-pushed the optimize-cache-warmup branch 2 times, most recently from 1b96b1e to abacbe6 Compare October 29, 2020 14:58
@knative-prow-robot knative-prow-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 29, 2020
@knative-prow-robot knative-prow-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 30, 2020
@davidor
Copy link
Contributor

davidor commented Oct 30, 2020

It'd be good to rebase this PR to pick #282 and run the e2e tests.

@markusthoemmes
Copy link
Contributor Author

Done!

@markusthoemmes markusthoemmes force-pushed the optimize-cache-warmup branch 2 times, most recently from 02b8d23 to 956d964 Compare October 30, 2020 13:49
@markusthoemmes markusthoemmes force-pushed the optimize-cache-warmup branch 3 times, most recently from 0c92bf2 to 6a89c78 Compare October 30, 2020 15:05
@knative-prow-robot knative-prow-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 1, 2020
@knative-prow-robot knative-prow-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 2, 2020
@knative-metrics-robot
Copy link

The following is the coverage report on the affected files.
Say /test pull-knative-sandbox-net-kourier-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/generator/caches.go 84.5% 81.9% -2.6

@jmprusi
Copy link
Contributor

jmprusi commented Nov 2, 2020

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 2, 2020
@knative-prow-robot knative-prow-robot merged commit 6956b27 into knative-extensions:master Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants