Skip to content

修复滚动发布时的请求排空 - #66

Merged
jhl-hk merged 3 commits into
mainfrom
fix/36-graceful-rollout
Nov 12, 2026
Merged

jhl-hk merged 3 commits into
mainfrom
fix/36-graceful-rollout

Conversation

@jhl-hk

@jhl-hk jhl-hk commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

变更

  • 显式设置滚动策略:maxUnavailable 0、maxSurge 1。
  • 退出前等待 10 秒摘流,SIGTERM/SIGINT 后最多排空 15 秒,Pod 宽限为 30 秒。
  • 启动入口处理优雅退出,清理响应完成后的空闲 keep-alive 连接。

验证

  • 5 项真实 Node 进程回归测试通过。
  • Node 22.23.4 实际 Astro 入口验证:在途响应完整返回,新连接被拒绝,重复信号安全,正常退出。
  • 类型检查、Kubernetes 清单 client dry-run 通过。

Closes #36

同类修复同时提交至 can-exam。

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 AI review: 2 inline finding(s) on 38e7c2b. Summary in the AI Code Review comment.

Comment thread deploy/k8s.yaml Resolved
Comment thread deploy/k8s.yaml Resolved
@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

🤖 AI Code Review

No reviewable changes since 2b2dbe0.

Model: expen · generated automatically. Use judgment — it can be wrong.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 AI review: 1 inline finding(s) on 2b2dbe0. Summary in the AI Code Review comment.

Comment thread deploy/k8s.yaml Resolved
@jhl-hk
jhl-hk merged commit 38945c2 into main Nov 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[P2] Rollout lacks maxUnavailable: 0 and a preStop sleep

1 participant