yugabyte/yugabyte-db

[YSQL] Clarify active queries endpoint

Open

#20.896 aberto em 1 de fev. de 2024

Ver no GitHub
 (1 comment) (0 reactions) (0 assignees)C (1.003 forks)batch import
area/ysqlgood first issuekind/enhancementpriority/mediumstatus/awaiting-triage

Métricas do repositório

Stars
 (8.229 stars)
Métricas de merge de PR
 (Mesclagem média 17d 21h) (92 fundiu PRs em 30d)

Description

Jira Link: DB-9881

Description

The output at :13000/rpcz is called Live Ops in the :9000/utilz page. This can be misleading because the output includes all live backends, whether or not they are currently running.

e.g.

{
    "connections": [
        {
            "db_oid": 13248,
            "db_name": "yugabyte",
            "query": "select pg_size_pretty(pg_table_size('t'::regclass));",
            "process_start_time": "2024-02-01 11:36:46.388855-08",
            "query_start_time": "2024-02-01 11:37:01.953452-08",
            "application_name": "ysqlsh",
            "backend_type": "client backend",
            "backend_status": "idle",
            "host": "127.0.0.1",
            "port": "60681"
        },
        {
            "process_start_time": "2024-01-31 13:42:49.356584-08",
            "application_name": "",
            "backend_type": "checkpointer",
            "backend_status": ""
        }
    ]
}

Shows an idle backend and its last run query. At first glance it might look like this query is still running.

Issue Type

kind/enhancement

Warning: Please confirm that this issue does not contain any sensitive information

  • I confirm this issue does not contain any sensitive information.

Guia do colaborador