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

ws-manager: Replace initializerMapLock with sync.Map #12215

Merged
merged 2 commits into from
Aug 22, 2022
Merged

Conversation

utam0k
Copy link
Contributor

@utam0k utam0k commented Aug 19, 2022

Description

There were several workspaces content-initializer was taking a very long time to start. 1
As a result, it seemed that stop requests sometimes came before the content-initializer.2
If content-initializer runs on ws-daemon after the workspace pod has disappeared, it should not work well because there should be no workspace directory. The lock on the initializerMap was common in ws-manager. This could cause longer locks and slower content-initializer startup. This has been improved.

Related Issue(s)

Fixes #11852

How to test

Do you know good way?

Release Notes

NONE

Documentation

Werft options:

  • /werft with-preview

Footnotes

  1. internal log1

  2. internal log2

@werft-gitpod-dev-com
Copy link

started the job as gitpod-build-to-syncmap.1 because the annotations in the pull request description changed
(with .werft/ from main)

@utam0k utam0k marked this pull request as ready for review August 19, 2022 06:40
@utam0k utam0k requested a review from a team August 19, 2022 06:40
@github-actions github-actions bot added the team: workspace Issue belongs to the Workspace team label Aug 19, 2022
@sagor999
Copy link
Contributor

sagor999 commented Aug 22, 2022

/werft run

👍 started the job as gitpod-build-to-syncmap.3
(with .werft/ from main)

@roboquat roboquat merged commit 5bf7449 into main Aug 22, 2022
@roboquat roboquat deleted the to/syncmap branch August 22, 2022 19:23
@roboquat roboquat added deployed: workspace Workspace team change is running in production deployed Change is completely running in production labels Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: workspace Workspace team change is running in production deployed Change is completely running in production release-note-none size/M team: workspace Issue belongs to the Workspace team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unexpected error loading prebuild
4 participants