postgreSQL troubleshooting 故障分析
1: 產品介紹
來自於
完全開源,兩板斧就可以安裝入庫
幫助DBA提供分析問題的手段,然後定位問題解決問題
Postgres provides various activity statistics that include detailed information about its behaviour:
connections, statements, database operations, replication, resources usage and more.
General purpose of the statistics is to help DBAs to monitor and troubleshoot Postgres.
However, these statistics provided in textual form retrieved from SQL functions and views,
and Postgres doesn't provide any tools for working with them.
pgCenter's main goal is to help Postgres DBA manage statistics that theу have in their databases
and see all the necessary data in convenient format based on builtin stats views and functions.
2:特色
Top-like interface that allows you to monitor stats changes as you go.
When troubleshooting Postgres it's always important to keep an eye not only on Postgres metrics,
but also system metrics,
since Postgres utilizes system resources, such as cpu, memory, storage and network when working.
pgCenter allows you to see both kinds of statistics related to Postgres and your system.
3:統計了哪些內容
pgCenter supports majority of statistics views available in Postgres,
and at the same time, uses additional SQL functions applied to statistics to show these in a more convenient way.
The following stats are available:
current summary activity - a compilation/selection of metrics from different sources - postgres uptime, version, recovery status, number of clients grouped by their states, number of (auto)vacuums, statements per second, age of the longest transaction and the longest vacuum;
pg_stat_activity - information related to the current activity of connected clients and Postgres background processes.
pg_stat_database - database-wide statistics, such as number of commits/rollbacks, handled tuples, deadlocks, temporary files, etc.
pg_stat_replication - statistics on replication, connected standby hosts and their activity.
pg_stat_user_tables, pg_statio_user_tables - statistics on accesses (including IO) to tables.
pg_stat_user_indexes, pg_statio_user_indexes - statistics on accesses (including IO) to indexes.
pg_stat_user_functions - statistics on execution of functions.
pg_stat_statements - statistics on SQL statements executed including time and resources usage.
statistics on tables sizes based on pg_relation_size() and pg_total_relation_size() functions;
pg_stat_progress_vacuum - information about (auto)vacuums status.
System statistics
pgcenter top also provides system usage information based on statistics from procfs filesystem:
load average and CPU usage time (user, system, nice, idle, iowait, software and hardware interrupts, steal);
memory and swap usage, amount of cached and dirty memory, writeback activity;
storage devices statistics: iops, throughput, latencies, average queue and requests size, devices utilization;
network interfaces statistics: throughput in bytes and packets, different kind of errors, saturation and utilization.
In case of connecting to remote Postgres there is possibility to use additional SQL functions used for
retrieving /proc statistics from remote host.
4:其他類似產品,沒有用過,大家可以驗證一下,歡迎分享經驗
pg_top
99:多練習,多實踐,就可以找到各種問題,尤其效能故障,總可以找到蛛絲馬跡,只要你夠仔細認真。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29497382/viewspace-2287035/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【Spark篇】---Spark故障解決(troubleshooting)Spark
- 故障分析 | Kubernetes 故障診斷流程
- 故障分析 | Greenplum Segment 故障處理
- Systematic Latch Contention Troubleshooting in OracleOracle
- 故障分析 | MySQL死鎖案例分析MySql
- postgreSQL 恢復至故障點 精準恢復SQL
- 故障分析 | MySQL 從機故障重啟後主從同步報錯案例分析MySql主從同步
- PostgreSQL中利用驅動程式實現故障轉移SQL
- 個人用_kubernetes_troubleshooting_reference
- 故障分析 | Redis AOF 重寫原始碼分析Redis原始碼
- Linux Troubleshooting 超實用系列 - Disk AnalysisLinux
- PostgreSQL+PostGIS時態分析SQL
- 故障分析 | MySQL鎖等待超時一例分析MySql
- VMware vSphere:Troubleshooting V4.x培訓
- ORA-8103 Troubleshooting, Diagnostic and Solution (文件 ID 8103.1)
- 資料庫監聽夯故障分析資料庫
- cursor:pin S wait on X故障診分析AI
- remote_listener引發的故障分析REM
- PostgreSQL pg_rewind 報錯分析SQL
- 工業交換機軟體故障分析
- LRAT-2000-KIT特殊故障的分析方法
- 記一次NAS故障分析(ZFS NFS)NFS
- 故障分析 | 是誰偷走了我的 IO
- 故障分析 | Redis 主從複製風暴Redis
- 故障分析 | show processlist 引起的效能問題
- MySQL資料庫故障分析-鎖等待(一)MySql資料庫
- 基於TRIZ的引風機故障分析
- Oracle 修改預設監聽埠故障分析Oracle
- PostgreSQL pg_ctl start超時分析SQL
- WebRTC 通話質量調優:Troubleshooting 小工具Web
- 安裝S_S相關報錯的troubleshooting
- 故障分析 | MySQL 耗盡主機記憶體一例分析MySql記憶體
- 輕鬆定位硬體故障方法-日誌分析
- 3節點RAC資料庫夯故障分析資料庫
- Oracle RAC常見啟動失敗故障分析Oracle
- 效能測試之JVM的故障分析工具VisualVMJVMLVM
- EMC儲存Raid故障資料分析報告AI
- 故障分析 | MySQL : slave_compressed_protocol 導致 crashMySqlProtocol