サーバーノード
|
コンフィギュレーションアイテム
|
コンフィギュレーション値
|
ノード
|
---|---|---|---|
1
|
listen_address
|
*
|
セキュリティの要件に応じて、これを特定の IP アドレスに修正できます。
|
2
|
port
|
5432
|
|
3
|
pcp_listen_addresses
|
*
|
セキュリティの要件に応じて、これを特定の IP アドレスに修正できます。
|
4
|
pcp_port
|
9898
|
|
5
|
backend_hostname0
|
'10.91.9.200'
|
|
6
|
backend_port0
|
5432
|
|
7
|
backend_weight0
|
1
|
|
8
|
backend_data_directory0
|
'/db/postgres'
|
|
9
|
backend_flag0
|
ALLOWTOFAILOVER
|
|
10
|
backend_hostname1
|
'10.91.9.24'
|
|
11
|
backend_port1
|
5432
|
|
12
|
backend_weight1
|
1
|
|
13
|
backend_data_directory1
|
'/db/postgres'
|
|
14
|
backend_flag1
|
'ALLOWTOFAILOVER'
|
|
15
|
backend_hostname2
|
'10.91.9.41'
|
|
16
|
backend_port2
|
5432
|
|
17
|
backend_weight2
|
1
|
|
18
|
backend_data_directory2
|
'/db/postgres'
|
|
19
|
enable_pool_hba
|
on
|
|
20
|
master_slave_mode
|
on
|
|
21
|
master_slave_sub_mode
|
'stream'
|
|
22
|
sr_check_period
|
10
|
|
23
|
sr_check_user
|
'replicator'
|
|
24
|
sr_check_password
|
'replicator'
|
|
25
|
sr_check_database
|
'postgres'
|
|
26
|
health_check_user
|
'postgres'
|
|
27
|
health_check_password
|
'postgres'
|
|
28
|
health_check_database
|
'postgres'
|
|
29
|
failover_command
|
'/etc/pgpool-II/failover.sh %d %h %D %m %H %R %M %P'
|
|
ウォッチドッグコンフィギュレーションのパラメータはまだこの例には含まれていません。
|