昨天,我一直在添加的“用于PostgreSQL服务器的Azure数据库”数据库突然突然增加了增长率并耗尽了所有存储,并且该脚本报告错误,因为该连接变为只读。
对磁盘上的数据库大小的查询总和不超过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