Server dashboard for Linux connections

Đang mở
#3,657 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
clickhouse, mariadb, mysql, postgresql, swift
Lĩnh vực
database, desktop

Hướng nghiên cứu

Read linux/ROADMAP.md and the macOS reference features/server-dashboard.mdx first. The issue leaves the roadmap decision open; if the feature is accepted, inspect how Linux network connections and database-specific catalog queries are handled. Done means PostgreSQL shows running queries and blocker relationships, and can cancel a query after confirmation.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement platform-linux
Problem

The Linux app shows nothing about what the server is doing: no sessions, no running queries, no locks. linux/ROADMAP.md, Backlog, Ideas lists "server monitoring (sessions, locks, slow queries)" as not committed. The macOS app has a server dashboard (features/server-dashboard.mdx).

When a query hangs or a table is locked, the user has to know each engine's catalog and type the query: pg_stat_activity on PostgreSQL, SHOW PROCESSLIST on MySQL and MariaDB, sys.dm_exec_requests on SQL Server, system.processes on ClickHouse.

Proposed solution
  • Decide whether it moves from Ideas into the backlog, and record it in linux/ROADMAP.md.
  • If yes, a Server tab per network connection, refreshed every few seconds while it is in front and paused otherwise:
    • sessions, with user, client address, database and state;
    • running queries, with their text and how long they have run, longest first;
    • locks and which session blocks which, where the engine reports it;
    • server version and uptime.
  • Cancel Query and End Session on a row, each asking first and refused on a read-only connection.
  • A panel the login cannot read says so instead of showing an empty list, for example pg_stat_activity without pg_read_all_stats showing only the user's own sessions.
  • Not offered for SQLite, which has no server.

Done means: on PostgreSQL, the tab lists the running queries, shows a blocked session and its blocker, and cancels one query after asking.

Alternatives considered

Query the engine's own catalog views from the editor.

Platform

Linux

Related database type

N/A / General

Ngôn ngữ chính
Swift
Star
6.2k
Fork
412
Merge trung bình
3 giờ 56 phút
Pull request đã merge (30 ngày)
669

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của TableProApp/TablePro

Tất cả issue của TableProApp/TablePro

Issue tương tự

Thêm issue về Swift

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.