Skip to content

Files

Latest commit

Dec 15, 2023
f400df2 · Dec 15, 2023

History

History
59 lines (29 loc) · 2.21 KB

20221208_01.md

File metadata and controls

59 lines (29 loc) · 2.21 KB

PostgreSQL 性能基准对比分析产品: pg_profile

作者

digoal

日期

2022-12-08

标签

PostgreSQL , PolarDB , 性能基准 , pg_profile


背景

之前吐槽过PG的性能诊断较弱, 原因是好用的工具太少:

https://github.com/zubkov-andrei/pg_profile

pg_profile性能诊断工具的使用:

  • 采样
  • 定义基准(保存某些采样作为基准, 例如数据库正常期采样、高峰期采样等.)
  • 选择“基准”对比与“某指定采样”之间的差异, 发现问题. (例如同样是高峰时间段, 昨天正常, 今天不正常, 对比两个采样, 观察差异在哪里, 发现问题.)

依赖:

  • pg_stat_statements
  • pg_stat_kcache
  • cron

pg_profile依旧有很多提升的地方, 不过有类似产品出来, 说明市场空间很大啊, 大大提升排查问题的效率.

digoal's wechat