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

Spread out UploadCompleter load #11590

Merged
merged 3 commits into from
Apr 1, 2022
Merged

Conversation

rosstimothy
Copy link
Contributor

Replaces the use of a Ticker with an Interval to reduce the
chance of auth servers UploadCompleter from synchronizing run
loops. Without this auth servers are essentially racing against
each other to upload any unfinished uploads. This was causing
an increase in network utilization every 10 mins.

This also prevents any missing parts of an upload from prematurely
ending the unfinished upload process. Doing so only causes a back
log of uploads that will never be completed during any of the
subsequent calls to CheckUploads in the future.

@github-actions github-actions bot added the audit-log Issues related to Teleports Audit Log label Mar 30, 2022
@github-actions github-actions bot requested review from greedy52 and smallinsky March 30, 2022 20:26
Replaces the use of a `Ticker` with an `Interval` to reduce the
chance of auth servers `UploadCompleter` from synchronizing `run`
loops. Without this auth servers are essentially racing against
each other to upload any unfinished uploads. This was causing
an increase in network utilization every 10 mins.

This also prevents any missing parts of an upload from prematurely
ending the unfinished upload process. Doing so only causes a back
log of uploads that will never be completed during any of the
subsequent calls to `CheckUploads` in the future.
@rosstimothy rosstimothy force-pushed the tross/upload_completed_fixes branch from 04c6c72 to 23bc102 Compare April 1, 2022 17:42
@rosstimothy rosstimothy enabled auto-merge (squash) April 1, 2022 17:46
@rosstimothy rosstimothy merged commit d3de6c4 into master Apr 1, 2022
@rosstimothy rosstimothy deleted the tross/upload_completed_fixes branch April 1, 2022 18:21
rosstimothy added a commit that referenced this pull request Apr 4, 2022
* Spread out UploadCompleter load

Replaces the use of a `Ticker` with an `Interval` to reduce the
chance of auth servers `UploadCompleter` from synchronizing `run`
loops. Without this auth servers are essentially racing against
each other to upload any unfinished uploads. This was causing
an increase in network utilization every 10 mins.

This also prevents any missing parts of an upload from prematurely
ending the unfinished upload process. Doing so only causes a back
log of uploads that will never be completed during any of the
subsequent calls to `CheckUploads` in the future.

(cherry picked from commit d3de6c4)

# Conflicts:
#	lib/events/complete.go
rosstimothy added a commit that referenced this pull request Apr 4, 2022
* Spread out UploadCompleter load

Replaces the use of a `Ticker` with an `Interval` to reduce the
chance of auth servers `UploadCompleter` from synchronizing `run`
loops. Without this auth servers are essentially racing against
each other to upload any unfinished uploads. This was causing
an increase in network utilization every 10 mins.

This also prevents any missing parts of an upload from prematurely
ending the unfinished upload process. Doing so only causes a back
log of uploads that will never be completed during any of the
subsequent calls to `CheckUploads` in the future.

(cherry picked from commit d3de6c4)

# Conflicts:
#	lib/events/complete.go
rosstimothy added a commit that referenced this pull request Apr 4, 2022
* Spread out UploadCompleter load

Replaces the use of a `Ticker` with an `Interval` to reduce the
chance of auth servers `UploadCompleter` from synchronizing `run`
loops. Without this auth servers are essentially racing against
each other to upload any unfinished uploads. This was causing
an increase in network utilization every 10 mins.

This also prevents any missing parts of an upload from prematurely
ending the unfinished upload process. Doing so only causes a back
log of uploads that will never be completed during any of the
subsequent calls to `CheckUploads` in the future.

(cherry picked from commit d3de6c4)
@rosstimothy
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
branch/v7
branch/v8
branch/v9

Questions ?

Please refer to the Backport tool documentation

rosstimothy added a commit that referenced this pull request Apr 5, 2022
* Spread out UploadCompleter load

Replaces the use of a `Ticker` with an `Interval` to reduce the
chance of auth servers `UploadCompleter` from synchronizing `run`
loops. Without this auth servers are essentially racing against
each other to upload any unfinished uploads. This was causing
an increase in network utilization every 10 mins.

This also prevents any missing parts of an upload from prematurely
ending the unfinished upload process. Doing so only causes a back
log of uploads that will never be completed during any of the
subsequent calls to `CheckUploads` in the future.

(cherry picked from commit d3de6c4)
rosstimothy added a commit that referenced this pull request Apr 5, 2022
* Spread out UploadCompleter load

Replaces the use of a `Ticker` with an `Interval` to reduce the
chance of auth servers `UploadCompleter` from synchronizing `run`
loops. Without this auth servers are essentially racing against
each other to upload any unfinished uploads. This was causing
an increase in network utilization every 10 mins.

This also prevents any missing parts of an upload from prematurely
ending the unfinished upload process. Doing so only causes a back
log of uploads that will never be completed during any of the
subsequent calls to `CheckUploads` in the future.

(cherry picked from commit d3de6c4)
rosstimothy added a commit that referenced this pull request Apr 5, 2022
* Spread out UploadCompleter load

Replaces the use of a `Ticker` with an `Interval` to reduce the
chance of auth servers `UploadCompleter` from synchronizing `run`
loops. Without this auth servers are essentially racing against
each other to upload any unfinished uploads. This was causing
an increase in network utilization every 10 mins.

This also prevents any missing parts of an upload from prematurely
ending the unfinished upload process. Doing so only causes a back
log of uploads that will never be completed during any of the
subsequent calls to `CheckUploads` in the future.

(cherry picked from commit d3de6c4)
@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
audit-log Issues related to Teleports Audit Log
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants