feat: restart a workload in place, health-gated and audited
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
- 30/100
Direção de pesquisa
Start from the existing ob deploy path, which keeps replicas when images are unchanged (runtime_unchanged), and from the deploy lock/fence, the rolling/converge path, and the journal and ob audit code the issue names. The payload names no specific files or tests, so locate these by searching the repository. Done means ob restart shows a plan, asks for confirmation, restarts replicas one at a time with health gating, records a journal and audit entry, and leaves the release and ob status unchanged.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
The problem
An operator sometimes needs to restart a running workload without releasing anything new. A typical case: a singleton worker misses an upstream event, and only its startup catch-up recovers it. The image and configuration have not changed; the process just needs to start again.
Onebox has no command for this. ob deploy with unchanged images retains the workload (runtime_unchanged), and neither the top-level commands nor ob service offer a restart.
Proposed change
ob restart <workload> [--reason TEXT], using the same guarantees as a deploy, without changing the release:
- Shows what will restart and asks for confirmation (
-yto skip). Takes the deploy lock/fence, so it cannot race a concurrent deploy or resume. - Restarts multi-replica workloads one replica at a time, health-gated, using the existing rolling/converge path. A replica that fails its health check stops the restart and reports it.
- Restarts a single-replica workload, waits for it to become healthy, and reports the outcome.
- Records a journal entry and an
ob auditentry: who, when, which workload, the release it belongs to, the reason and the result. - Does not change images, configuration or the recorded release.
ob statusstays consistent.
The same could later cover supporting services (ob service restart <name>), where a restart may affect the data plane and should say so in the plan.
Current workaround
ssh <host> docker restart <container>. It works because the container, image and configuration stay the same, but it bypasses Onebox:
- no confirmation and no deploy-lock fencing;
- no health gate, so a failed start shows up only in
ob statusor in logs; - no rolling for multi-replica workloads;
- nothing in the journal or
ob audit, so the restart is invisible in the deployment history.
Scope and safety
It stays inside the one-application, one-host scope. It acts on a running production system only on an explicit operator command, after showing a plan and getting confirmation, and it changes no release state.
- Linguagem predominante
- Go
- Estrelas
- 4
- Forks
- 0
- Merge médio
- 36min
- PRs com merge (30d)
- 13
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um 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 labstack/onebox
-
bug
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 80/100
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 85/100
Mantenedores costumam responder em até 1 dia
-
enhancement
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 55/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 55/100
labstack/onebox#226 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 65/100
Mantenedores costumam responder em até 1 dia
Todas as issues de labstack/onebox
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
-
--info inline-right:PREFIX leaves the first character of the prefix when the info gets shorterAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 73/100
-
[BUG] EphemeralJob matches every pod in the namespace when spec.selector is emptyTalvez já em andamento @vishnums2k5 assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
openkruise/kruise#2656 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Support kubevirt CRDsAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
rancher/rancher-ai-mcp#206 ·
Mantenedores costumam responder em até 1 dia
-
test: make command and stdio startup tests portableTalvez já em andamento @dajiaohuang assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 73/100
mark3labs/mcp-go#1220 · 1 comentário ·
Mantenedores costumam responder em até 1 dia