Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: acquire lock for individual workspace transition#15883

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
stirby merged 1 commit intorelease/2.18frompatch-2.18-mem
Dec 16, 2024

Conversation

stirby
Copy link
Collaborator

When Coder is ran in High Availability mode, each Coder instance has a lifecycle executor. These lifecycle executors are all trying to do the same work, and whilst transactions saves us from this causing an issue, we are still doing extra work that could be prevented.

This PR adds aTryAcquireLock call for each attempted workspace transition, meaning two Coder instances shouldn't duplicate effort.

(cherry picked from commit50ff06c)

When Coder is ran in High Availability mode, each Coder instance has alifecycle executor. These lifecycle executors are all trying to do thesame work, and whilst transactions saves us from this causing an issue,we are still doing extra work that could be prevented.This PR adds a `TryAcquireLock` call for each attempted workspacetransition, meaning two Coder instances shouldn't duplicate effort.(cherry picked from commit50ff06c)
@stirbystirby changed the titlechore: acquire lock for individual workspace transition (#15859)chore: acquire lock for individual workspace transition (cherry pick #15859)Dec 16, 2024
@stirbystirby changed the titlechore: acquire lock for individual workspace transition (cherry pick #15859)chore: acquire lock for individual workspace transition in 2.18Dec 16, 2024
@stirbystirby changed the titlechore: acquire lock for individual workspace transition in 2.18chore: acquire lock for individual workspace transitionDec 16, 2024
@stirbystirby merged commitc5e8769 intorelease/2.18Dec 16, 2024
37 checks passed
@stirbystirby deleted the patch-2.18-mem branchDecember 16, 2024 18:01
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@matifalimatifalimatifali approved these changes

@DanielleMaywoodDanielleMaywoodAwaiting requested review from DanielleMaywood

Assignees

@stirbystirby

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@stirby@matifali@DanielleMaywood

[8]ページ先頭

©2009-2025 Movatter.jp