gpt4 book ai didi

postgresql - Azure PostgreSQL 突然使用所有存储

转载 作者:行者123 更新时间:2023-12-03 04:17:03 27 4
gpt4 key购买 nike

昨天,我一直追加的“Azure Database for PostgreSQL 服务器”数据库的增长率突然增加并耗尽了所有存储空间,并且当连接变为只读时,脚本报告了错误。 plot of azure storage %

对磁盘上数据库大小的查询加起来不会达到 18GB 之类的值

    select pg_size_pretty(pg_database_size('database_alpha')) => '80 MB'
select pg_size_pretty(pg_database_size('database_beta')) => '458 MB'
select pg_size_pretty(pg_database_size('postgres')) => '8645 kB'

如果不是我的数据库,什么可能正在使用存储以及如何防止将来发生这种情况?

查看日志,下午 5 点左右开始出现很多类似以下内容的条目:

2018-08-26 15:52:39 UTC-5b819a84.45490-WARNING:  archiving write-ahead log file "000000010000004E000000DA" failed too many times, will try again later
2018-08-26 15:52:49 UTC-5b819a84.45490-WARNING: archiving write-ahead log file "000000010000004E000000DA" failed too many times, will try again later
2018-08-26 15:52:56 UTC-5b819a84.45490-WARNING: archiving write-ahead log file "000000010000004E000000DA" failed too many times, will try again later
2018-08-26 15:53:00 UTC-5b819a84.45490-WARNING: archiving write-ahead log file "000000010000004E000000DA" failed too many times, will try again later
2018-08-26 15:53:04 UTC-5b819a84.45490-WARNING: archiving write-ahead log file "000000010000004E000000DA" failed too many times, will try again later
2018-08-26 15:53:08 UTC-5b819a84.45490-WARNING: archiving write-ahead log file "000000010000004E000000DA" failed too many times, will try again later
2018-08-26 15:53:11 UTC-5b819a84.45490-WARNING: archiving write-ahead log file "000000010000004E000000DA" failed too many times, will try again later

最佳答案

我猜测硬件故障阻止了它写入 WAL,并且占用了空间,现在似乎已经恢复了:

enter image description here

关于postgresql - Azure PostgreSQL 突然使用所有存储,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52036174/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com