fix(worker): 拆分准入事务并收敛验收失败状态
将批量准入改为每任务独立事务,避免 P24 压测时 48 条任务共享长事务造成 transactionid 锁潮与 Worker 槽位空转。失败验收在保持 validation 的同时清理未提交任务,并记录精确压力门禁原因。统一生产 0+2 Worker 拓扑、运行时 ConfigMap 与发布配置,补充镜像预检诊断和回归测试。\n\n验证:Go 全量测试、go vet、真实 PostgreSQL 48 任务集成测试、迁移安全检查、发布脚本测试、bash -n、ShellCheck、Compose 配置均通过。
This commit is contained in:
@@ -33,10 +33,9 @@ const (
|
||||
asyncWorkerCapacityScopeKey = "global"
|
||||
asyncWorkerQueueLimit = 10000
|
||||
asyncWorkerMaxWaitSeconds = 24 * 60 * 60
|
||||
// One transaction must be able to fill the certified 2 x P32 global
|
||||
// capacity. Smaller windows let multiple Worker dispatchers repeatedly race
|
||||
// on the same FIFO head and can turn a batch size into an accidental cluster
|
||||
// concurrency ceiling.
|
||||
// The dispatcher scans enough FIFO entries to fill the certified 2 x P32
|
||||
// capacity. Store admission commits each item independently so this scan
|
||||
// size is never also a multi-task transaction size.
|
||||
asyncAdmissionBatchMax = 64
|
||||
acceptanceQueueLimit = 10000
|
||||
acceptanceQueueMaxWait = 15 * 60
|
||||
|
||||
Reference in New Issue
Block a user