CoderWorkspacePool: a dashboard page view marks an unclaimed member Used
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 45/100
Direção de pesquisa
Check the coder-k8s Go controller that maps workspace last_used_at to pool member Used. Trace Coder's workspace agent stats to find a use signal excluding coderd's own connections (e.g. via GET /api/v2/workspaceagents/<id>/containers). Run the pool on Kind with Coder v2.37.2 and verify a dashboard visit no longer marks an unclaimed member Used.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Problem
An admin who opens an unclaimed pool member's workspace page in the Coder dashboard marks that member Used=True. The pool then releases the member and builds a replacement. The released workspace keeps running outside the pool until a person deletes the member.
Measured on Kind with Coder v2.37.2 while building #153 plan PR 13 (risk R1 in the plan):
- A dashboard visit to
/@<owner>/kwp-...movedlast_used_atat the next usage flush, and the member becameUsedabout 15 s later. - A member that nobody visited kept its create value for 2.5 minutes. The filtered workspaces list page did not move it.
- Without a browser, one
GET /api/v2/workspaceagents/<id>/containerswith the operator token movedlast_used_atof a fresh member at the next flush.
Likely mechanism (not verified in Coder source): coderd connects to the agent to list containers, the agent reports that connection in its stats, and the legacy stats path counts any connection as use.
Impact
No data loss. Each false Used costs one running workspace until an admin deletes the member. CI is not affected.
Options
- Find a Coder use signal that ignores agent connections made by coderd itself (for example connection type or source in workspace agent stats), and use it for
Used. - Ask upstream for such a signal if none exists.
PR 13 documents the behavior in the pool how-to. Refs #153.
Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high
- Linguagem predominante
- Go
- Estrelas
- 5
- Forks
- 3
- Merge médio
- 1h 50min
- PRs com merge (30d)
- 160
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de coder/coder-k8s
-
CoderWorkspacePool: count bound and used members only when their owner matches the pool's ownerAberta
Dificuldade 3/5 Meio dia Facilidade para iniciantes 62/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 3/5 Meio dia Facilidade para iniciantes 45/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 30/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 8/100
Mantenedores costumam responder em até 1 dia
Todas as issues de coder/coder-k8s
Issues semelhantes
-
bug raised-by:desk
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
medici-finance/assay#6102 ·
Mantenedores costumam responder em até 1 dia
-
hive size:simple
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
akleizor/ccmorph#456 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
radius-project/radius#13744 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 86/100
mvanhorn/printing-press-library#2460 ·
Mantenedores costumam responder em até 1 dia