[英]Too many WAL archive file created in postgres
I have configured file base - log shipping replication in postgreSql 9.4. 我已经配置了文件库-PostgreSQL 9.4中的日志传送复制。 I have default checkpint after every 5min and WAL size of 16mb.
每隔5分钟和16 MB的WAL大小,我将使用默认的checkpint。 However, postgreSql send 16mb of file after every 1sec.
但是,postgreSql每1秒发送一次16mb的文件。 Is this normal?
这正常吗? I feel it's too much of network traffic.
我觉得网络流量太多了。 Is there a way to improve this apart from zipping logs?
除了压缩日志外,还有什么方法可以改善此问题? How could I control log shipping frequency ?
如何控制原木的运输频率? Thanks in advance !
提前致谢 !
sent 16779372 bytes received 31 bytes 11186268.67 bytes/sec
total size is 16777216 speedup is 1.00
sending incremental file list
000000010000002D00000065
sent 16779372 bytes received 31 bytes 11186268.67 bytes/sec
total size is 16777216 speedup is 1.00
sending incremental file list
000000010000002D00000066
I realized that archive_timeout was set to 10 sec. 我意识到将archive_timeout设置为10秒。 Hence it was creating too many WAL file copies.
因此,它创建了太多的WAL文件副本。 I just updated it to archive_timeout = 60 to make sure that it would archive WAL segment only after 1 min.
我刚刚将其更新为archive_timeout = 60,以确保仅在1分钟后才将WAL段存档。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.