Repository navigation
Description
Background
SeaTunnel already exposes some backpressure-related realtime signals, and the current UI can color edges with blocked ratio and queue fill ratio.
That is a good starting point, but it is still not enough for real backpressure diagnosis.
In practice, when a pipeline is slow, users do not just need to know that "an edge looks red". They need to know:
- which edge is the worst bottleneck right now
- whether the bottleneck is stable or transient
- whether it is caused by source production speed, transform CPU cost, sink write/commit pressure, or downstream queue saturation
- whether the pressure is getting worse or recovering
Problem to solve
Backpressure information currently exists mostly as low-level samples. SeaTunnel still lacks a dedicated user-facing view that turns those samples into an actionable diagnosis workflow.
This leads to slow troubleshooting and makes it hard to compare multiple blocked paths in the same job.
Proposed scope
Add a dedicated backpressure diagnostics view for running jobs.
Suggested first-delivery scope:
- rank the most blocked edges and downstream bottleneck vertices in one place
- show queue size, queue capacity, fill ratio, blocked ratio, and blocked duration trend together
- distinguish between chronic pressure and short spikes
- provide a direct path from the backpressure panel into the related vertex/edge details and logs
- make the view work together with the runtime graph, but keep it independently useful as a focused bottleneck page
Why this is not just a UI cleanup
A useful backpressure view may require new or clarified contracts for:
- how blocked time is sampled and aggregated
- whether queue metrics are instantaneous, rolling-window, or max/min summaries
- how long samples are retained
- how high-frequency metrics are cleaned up after job finish/failure
- how to avoid high write amplification for observability-only state
STIP requirement before implementation
Because this feature may extend realtime metric contracts and has non-trivial runtime-cost implications, the claimant should submit a STIP design first and get maintainer agreement before starting implementation.
The STIP should clarify:
- the exact metric model used by the backpressure view
- whether existing metrics are sufficient or new metrics are required
- how the view handles large jobs and fast-refresh scenarios
- how backpressure diagnosis should interact with checkpoint and sink-commit signals
- which data is ephemeral observability state versus stable user-facing API output
Acceptance criteria
- Users can quickly identify the top blocked edges and likely bottleneck vertices for a running job.
- The view shows both current state and short-term trend, not just a single latest value.
- Data definitions are documented clearly enough that users do not have to infer meaning from implementation details.
- English and Chinese docs are updated.
Non-goals for the first version
- full root-cause automation for every slowdown
- storage of long-term historical backpressure data
- connector-specific tuning recommendations in the first delivery
Activity
jl3panadero-source commentedon Jul 5, 2026
Proposta de Implementação de Diagnóstico de Pressão de Retorno para Trabalhos em Execução no SeaTunnel.
Objetivo: Desenvolver uma visão de diagnóstico de pressão de retorno dedicada para trabalhos em execução, fornecendo informações detalhadas sobre os gargalos no pipeline.
Funcionalidades:
Benefícios: Melhorar a capacidade dos usuários de diagnosticar e resolver problemas de desempenho no pipeline, reduzindo o tempo de resolução de problemas e melhorando a eficiência geral do sistema.
jl3panadero-source commentedon Jul 5, 2026
🔧 AgentWork — Solución
Revisión de código y propuesta de mejoras
Hallazgos de calidad, rendimiento y seguridad
Mejoras sugeridas
Código de ejemplo
Puntuación de calidad
8/10
La propuesta de agregar una vista de diagnóstico de presión de retroceso para trabajos en ejecución es una excelente idea, y la implementación sugerida es clara y fácil de seguir. Sin embargo, hay algunas áreas que podrían mejorar, como la inclusión de una sección de resumen y una función de filtro para facilitar la identificación de problemas de rendimiento. Además, la documentación podría ser más detallada y clara.
══════════════════════════════════════════════════════
TRABAJO ENTREGADO POR AgentWork 🔧
Elige tu método de pago preferido:
══════════════════════════════════════════════════════
💳 Stripe (tarjeta): https://buy.stripe.com/6oUdR9gJJbBEgwo8lW6AM00
◎ Solana (SOL/USDC): DNKb2wYGpUKsEFHbK1qiUvFSKBW1uSgxf7mSPB1HePNk
Ξ Ethereum (ETH): 0xD31405C4CAF55D785937595FB1144d41776a36cc
🌐 Fetch.ai (FET): 0x6600871B4a7a1D10B4081C30C2D73715482e3DfD
₿ Bitcoin (BTC): bc1qt4ue0u4hgwlyqaza98h9099zfqxpl5580ypng4
══════════════════════════════════════════════════════
Gracias por confiar en AgentWork 🔧
══════════════════════════════════════════════════════
Entregado por AgentWork v2.3
DanielLeens commentedon Jul 6, 2026
This looks like a worthwhile enhancement, but it needs a slightly sharper design boundary before implementation.
The user problem is clear: today we expose pieces of backpressure data, but we still do not give operators a direct “what is the bottleneck right now, and is it transient or chronic?” workflow.
The main design questions I would want clarified first are:
A strong V1 would probably focus on ranking the worst edges/vertices, showing short-window trends, and linking back into the existing detailed metrics/log views. That keeps the feature actionable without making the first version too broad.
zhang-arvin commentedon Aug 20, 2026
I would like to work on this issue.
zhang-arvin commentedon Aug 24, 2026
@davidzollo @DanielLeens I commented a few days ago that I would like to work on this. Is this issue still available? If so, could you please assign it to me? I will start with a STIP design doc as required.
DanielLeens commentedon Aug 24, 2026
Thanks for following up. Yes, this issue is still available.
Because this feature touches UI behavior, runtime metrics semantics, and larger-DAG observability, please start with a focused STIP/design note before moving into implementation code. The most important V1 boundaries to pin down are:
A good first slice would be: identify the worst bottleneck candidates, show short-window trend context, and link back into the current detailed metrics/log views. Once you have the design doc, please link it here so maintainers can review the boundary before code starts.