You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Heroku Postgres自动更新后表缓存率骤降引发延迟飙升求助

Heroku Postgres自动更新后表缓存率骤降引发延迟峰值求助

我的standard-0级Postgres数据库昨日完成自动更新后,表缓存率从100%降至约78%,大量请求需从磁盘读取,引发严重延迟峰值。此期间未部署任何代码变更,不清楚问题根源。

近期Heroku Postgres日志

sample#current_transaction=429551949 sample#db_size=11524477599bytes sample#tables=59 sample#active-connections=22 sample#waiting-connections=0 sample#index-cache-hit-rate=0.98709 sample#table-cache-hit-rate=0.8726 sample#load-avg-1m=1.785 sample#load-avg-5m=1.165 sample#load-avg-15m=0.715 sample#read-iops=951.94 sample#write-iops=27.614 sample#tmp-disk-used=543600640 sample#tmp-disk-available=72435191808 sample#memory-total=8036332kB sample#memory-free=66712kB sample#memory-cached=7508352kB sample#memory-postgres=89876kB sample#wal-percentage-used=0.06650554816207192

已尝试的解决方案

  • 使用pg:diagnose优化索引,仅将缓存率提升至80%
  • 升级至standard-2级后,仅10分钟缓存率就降至91%
  • 执行VACUUM ANALYZE FULL
  • 缓存耗时查询结果

以上方法均未找到问题根源,恳请有类似经验者分享解决方案。

内容的提问来源于stack exchange,提问作者RJewell

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.25 06:02:11