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

[v10] Periodically resync proxies to agents #18152

Merged
merged 2 commits into from
Nov 7, 2022

Conversation

rosstimothy
Copy link
Contributor

Backports #18050 to branch/v10

Prior to #14262, resource watchers would periodically close their watcher,
create a new one and refetch the current set of resources. It turns out
that the reverse tunnel subsystem relied on this behavior to periodically
broadcast the list of proxies to agents during steady state. Now that
watchers are persistent and no longer perform a refetch, agents that are
unable to connect to a proxy expire them after a period of time, and
since they never receive the periodic refresh, they never attempt to
connect to said proxy again.

To remedy this, a new ticker is added to the `localsite` that grabs
the current set of proxies from its proxy watcher and sends a discovery
request to the agent. The frequency of the ticker is set to fire
prior to the tracker would expire the proxy so that if a proxy exists
in the cluster, then the agent will continually try to connect to it.
@rosstimothy rosstimothy force-pushed the tross/backport-18050/v10 branch from 39b6a9d to 472271c Compare November 4, 2022 14:37
@rosstimothy rosstimothy marked this pull request as ready for review November 4, 2022 15:07
@rosstimothy rosstimothy enabled auto-merge (squash) November 7, 2022 18:08
@rosstimothy rosstimothy merged commit c8f5578 into branch/v10 Nov 7, 2022
@rosstimothy rosstimothy deleted the tross/backport-18050/v10 branch January 5, 2023 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants