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

[branch/v9] Clean up remoteSites with no active tunnels (#11435) #11707

Merged
merged 4 commits into from
Apr 5, 2022

Conversation

rosstimothy
Copy link
Contributor

Backport

This will backport the following commits from master to branch/v9:

Questions ?

Please refer to the Backport tool documentation

Not closing a remoteSite causes a continuous retry to init the cache
on the remote auth client. Not only does this cause log spam but is
a waste of resources.

We now stop tracking and close a remoteSite when its heartBeat fails
and no active tunnels are established for the site.

Fixes #11197

(cherry picked from commit 3d5928f)

# Conflicts:
#	lib/reversetunnel/fake.go
#	lib/srv/db/access_test.go
@github-actions github-actions bot added the database-access Database access related issues and PRs label Apr 4, 2022
@github-actions github-actions bot requested review from lxea and timothyb89 April 4, 2022 16:46
@rosstimothy rosstimothy enabled auto-merge (squash) April 5, 2022 12:56
@rosstimothy rosstimothy merged commit 91cb676 into branch/v9 Apr 5, 2022
@rosstimothy rosstimothy deleted the backport/branch/v9/pr-11435 branch April 5, 2022 18:06
@webvictim webvictim mentioned this pull request Apr 19, 2022
@webvictim webvictim mentioned this pull request Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport database-access Database access related issues and PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants