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

fix(proxy) delay startup to allow cache population #2255

Merged
merged 3 commits into from
Feb 10, 2022
Merged

Conversation

rainest
Copy link
Contributor

@rainest rainest commented Feb 9, 2022

What this PR does / why we need it:
Insert a 5-second delay in the proxy start function. This allows time
for the controllers to populate the proxy cache before the first sync,
as a temporary mitigation for #2249.

Special notes for your reviewer:
E2E (which has the leadership election behavior test) at https://github.com/Kong/kubernetes-ingress-controller/runs/5129347551?check_suite_focus=true

Remembered afterwards that E2E can't get controller/proxy logs yet, and wouldn't do debug anyway, so
secondary.txt is the secondary's controller logs showing it gain leadership and not delete stuff.

PR Readiness Checklist:

Complete these before marking the PR as ready to review:

  • the CHANGELOG.md release notes have been updated to reflect any significant (and particularly user-facing) changes introduced by this PR

@rainest rainest temporarily deployed to Configure ci February 9, 2022 18:12 Inactive
@rainest rainest temporarily deployed to Configure ci February 9, 2022 18:19 Inactive
Insert a 5-second delay in the proxy start function. This allows time
for the controllers to populate the proxy cache before the first sync,
as a temporary mitigation for #2249.

Add unreleased 2.2.1 changelog entry.

Add missing 2.2.0 changelog TOC entry.
@rainest rainest temporarily deployed to Configure ci February 9, 2022 18:22 Inactive
@rainest rainest temporarily deployed to Configure ci February 9, 2022 18:38 Inactive
@rainest rainest marked this pull request as ready for review February 9, 2022 18:47
@rainest rainest requested a review from a team as a code owner February 9, 2022 18:47
CHANGELOG.md Outdated Show resolved Hide resolved
internal/dataplane/proxy/clientgo_cached_proxy_resolver.go Outdated Show resolved Hide resolved
@rainest rainest temporarily deployed to Configure ci February 10, 2022 20:35 Inactive
@rainest rainest temporarily deployed to Configure ci February 10, 2022 20:35 Inactive
@rainest rainest enabled auto-merge (squash) February 10, 2022 20:35
@rainest rainest enabled auto-merge (squash) February 10, 2022 20:36
@rainest rainest temporarily deployed to Configure ci February 10, 2022 20:50 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants