yugabyte/yugabyte-db

[YSQL] Clarify active queries endpoint

Open

#20,896 建立於 2024年2月1日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)C (1,003 fork)batch import
area/ysqlgood first issuekind/enhancementpriority/mediumstatus/awaiting-triage

倉庫指標

Star
 (8,229 star)
PR 合併指標
 (平均合併 17天 21小時) (30 天內合併 92 個 PR)

描述

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.

貢獻者指南