Hi community,

I would like to start a discussion about STIP-37: adding native autoscaling 
support for SeaTunnel Zeta Engine worker capacity.


Proposal: https://github.com/apache/seatunnel/issues/12087


First implementation (Slice 1): https://github.com/apache/seatunnel/pull/12169


Current State


- Zeta provides worker heartbeat reporting, slot-aware scheduling, pending-job 
visibility, and metrics exposure, but lacks a native control loop to translate 
these signals into scaling recommendations.
- Kubernetes users must rely on external HPA or custom controllers unaware of 
Zeta scheduling pressure; non-Kubernetes deployments have no standard 
autoscaling mechanism.
- Worker removal is unsafe today because it is treated as a worker failure and 
may restart affected pipelines.


Proposed Design


- Phase 1 introduces an advisory-only control loop on the active master. It 
evaluates a hierarchical multi-signal policy — scheduler blocking signals 
first, worker CPU/memory saturation second, slot utilization only as auxiliary 
in Fixed Slot mode — and publishes structured scaling recommendations. It does 
not mutate worker count, invoke actuators, or rescale running jobs.
- Phase 2 connects scale-out recommendations to external capacity management 
(e.g., Kubernetes operators).
- Phase 3 introduces safe scale-in through controlled worker drain and recovery.


Breaking Changes


- None intended. Autoscaling is disabled by default and does not change current 
scheduling behavior unless explicitly enabled.


Scope and Validation


- Running-job parallelism rescaling, execution graph reconstruction, and live 
task migration are outside scope.
- Validation covers fencing and idempotency, Fixed vs Dynamic Slot semantics, 
stale worker samples, signal-conflict resolution, and active-master handover 
recovery.


Looking forward to your feedback, particularly on the hierarchical signal 
priority model and the Phase 1 advisory-only boundary.


Best regards,
JeremyXin

Reply via email to