Skip to content

[Feature][Zeta] Add a dedicated backpressure diagnostics view for running jobs #11352

Open

Description

@davidzollo

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

Related work

Activity

  1. jl3panadero-source commented on Jul 5, 2026

    @jl3panadero-source

    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:

    • Identificar a aresta mais crítica que está causando a pressão de retorno
    • Exibir a taxa de bloqueio e a taxa de preenchimento da fila para cada aresta
    • Fornecer uma visão geral da saúde do pipeline e identificar áreas de melhoria

    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.

  2. jl3panadero-source commented on Jul 5, 2026

    @jl3panadero-source

    🔧 AgentWork — Solución

    Revisión de código y propuesta de mejoras

    Hallazgos de calidad, rendimiento y seguridad

    1. La propuesta de agregar una vista de diagnóstico de presión de retroceso para trabajos en ejecución es una excelente idea, ya que proporciona una forma más efectiva de identificar y solucionar problemas de rendimiento en la aplicación.
    2. La sugerencia de incluir una lista de los bordes más bloqueados y los vértices de cuello de botella en un solo lugar es útil para facilitar la identificación de los problemas de rendimiento.
    3. La inclusión de métricas como el tamaño de la cola, la capacidad de la cola, la relación de llenado, la relación de bloqueo y la duración de bloqueo es esencial para proporcionar una visión completa del rendimiento del sistema.
    4. La distinción entre la presión crónica y los picos cortos es importante para evitar falsos positivos y enfocarse en los problemas reales.
    5. La propuesta de proporcionar un camino directo desde el panel de presión de retroceso a los detalles y registros relacionados es útil para facilitar la solución de problemas.

    Mejoras sugeridas

    1. Incluir una sección de "Resumen" que proporcione una visión general de la situación actual del rendimiento del sistema, incluyendo la cantidad de bordes bloqueados, la cantidad de vértices de cuello de botella y la relación de llenado promedio.
    2. Agregar una función de "Filtro" que permita a los usuarios filtrar los bordes y vértices por diferentes criterios, como el nombre del borde, el tipo de vértice, la relación de llenado, etc.
    3. Incluir una sección de "Historial" que proporcione una visión de la evolución del rendimiento del sistema a lo largo del tiempo, incluyendo gráficos y estadísticas.
    4. Proporcionar una función de "Alertas" que permita a los usuarios configurar alertas personalizadas para cuando se detecten problemas de rendimiento en el sistema.
    5. Incluir una sección de "Documentación" que proporcione información detallada sobre la configuración y el funcionamiento del panel de presión de retroceso.

    Código de ejemplo

    import dash
    import dash_core_components as dcc
    import dash_html_components as html
    from dash.dependencies import Input, Output
    import plotly.graph_objs as go
    
    app = dash.Dash(__name__)
    
    app.layout = html.Div([
        html.H1('Panel de presión de retroceso'),
        html.Div([
            html.H2('Resumen'),
            html.P('Cantidad de bordes bloqueados: {}'.format(len(bloqueados))),
            html.P('Cantidad de vértices de cuello de botella: {}'.format(len(cuellos_de_botella))),
            html.P('Relación de llenado promedio: {:.2f}%'.format(promedio_llenado))
        ]),
        html.Div([
            html.H2('Filtro'),
            dcc.Dropdown(
                id='filtro',
                options=[
                    {'label': 'Nombre del borde', 'value': 'nombre_borde'},
                    {'label': 'Tipo de vértice', 'value': 'tipo_vertice'},
                    {'label': 'Relación de llenado', 'value': 'relacion_llenado'}
                ],
                value='nombre_borde'
            )
        ]),
        html.Div([
            html.H2('Historial'),
            dcc.Graph(id='historial')
        ]),
        html.Div([
            html.H2('Alertas'),
            dcc.Checklist(
                id='alertas',
                options=[
                    {'label': 'Alerta cuando se detecte un problema de rendimiento', 'value': 'alerta_rendimiento'}
                ],
                value=[]
            )
        ])
    ])
    
    @app.callback(
        Output('historial', 'figure'),
        [Input('filtro', 'value')]
    )
    def actualizar_historial(filtro):
        # Código para actualizar el gráfico de historial según el filtro seleccionado
        pass
    
    if __name__ == '__main__':
        app.run_server(debug=True)

    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

  3. DanielLeens commented on Jul 6, 2026

    @DanielLeens
    Contributor

    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:

    1. what time window the blocked/queue signals represent
    2. how ranking should work when multiple edges are simultaneously pressured
    3. how this page reuses the existing runtime metrics model instead of inventing a separate one
    4. what the fallback is for larger DAGs where too much live detail becomes noisy

    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.

  4. zhang-arvin commented on Aug 20, 2026

    @zhang-arvin
    Contributor

    I would like to work on this issue.

  5. zhang-arvin commented on Aug 24, 2026

    @zhang-arvin
    Contributor

    @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.

  6. DanielLeens commented on Aug 24, 2026

    @DanielLeens
    Contributor

    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:

    1. what time window the blocked/queue signals represent;
    2. how the page ranks multiple simultaneously pressured edges or vertices;
    3. how it reuses the existing runtime metrics model and endpoints instead of inventing a separate data path;
    4. what the fallback is for larger DAGs where too much live detail becomes noisy.

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions