roo*_*e09 2 postgresql replication
我各有一个 PostgreSQL 9.6 主服务器和备用服务器。这两行在他们各自的postgresql.conf:
max_connections = 100
Run Code Online (Sandbox Code Playgroud)
备用的recovery.conf外观如下(统计数据host,user以及cluster隐藏的):
standby_mode = on
recovery_target_timeline = latest
primary_conninfo = 'host=<host> port=5433 user=<user>'
Run Code Online (Sandbox Code Playgroud)
当我pg_ctlcluster 9.6 <cluster> start报告以下错误时:
FATAL: hot standby is not possible because max_connections = 100
is a lower setting than on the master server (its value was 2000)
Run Code Online (Sandbox Code Playgroud)
我想知道:价值2000从何而来。两个集群都应该看到100,即相等的值。并且确实SHOW max_connections对高手产生了影响100。
这是怎么回事,我怎样才能使待机成功启动?
| 归档时间: |
|
| 查看次数: |
3808 次 |
| 最近记录: |