Postgres AWS RDS 数据库在随机时刻出现高负载

问题描述 投票:0回答:1

我的 Postgres 数据库在每天的随机时刻都有很高的负载,当我重新启动时,它会恢复正常。

下面的性能洞察显示了查询,我可以看到的问题在 DataFileRead e WALWriteLock 中。

问题在于,相同的查询全天运行都没有问题,但在随机时刻它会出现峰值。

enter image description here

上周图表下方:

enter image description here

database postgresql amazon-web-services amazon-rds
1个回答
0
投票

可能是由于

VACUUM
操作所致。

VACUUM 会产生大量 I/O 流量,这可能会导致其他活动会话的性能不佳。

https://www.postgresql.org/docs/current/routine-vacuuming.html

© www.soinside.com 2019 - 2024. All rights reserved.