Hi, erverybody<br> I use pgcluster-1.5.0rc21 to build master-master DB. After started pgreplications and clusters, I found <br>"<a href="http://192.168.0.3:33794">192.168.0.3:33794</a> <a href="http://218.83.175.154:8001">218.83.175.154:8001</a>" used "netstat -ant".<br>
there is not anything else need to connect the ip except the pgcluster.<br><br>Where should I modify or config to avoid that ? <br><br>replication1 <--------> replication2<br> | |<br>
===================================<br> | |<br> | |<br>cluster1 cluster2<br>
<br>cluster1 and relication1 : <a href="http://192.168.0.2">192.168.0.2</a><br>cluster2 and replication2 : <a href="http://192.168.0.3">192.168.0.3</a><br><br>my configure file:<br><br>on <a href="http://192.168.0.2">192.168.0.2</a><br>
#============================================================<br># Cluster DB Server configuration file<br>#------------------------------------------------------------<br># file: cluster.conf<br>#------------------------------------------------------------<br>
# This file controls:<br># o which hosts & port are replication server<br># o which port use for replication request to replication server<br># o which command use for recovery function<br>#============================================================<br>
<Replicate_Server_Info><br> <Host_Name> rep_l </Host_Name><br> <Port> 8001 </Port><br> <Recovery_Port> 8101 </Recovery_Port><br>
</Replicate_Server_Info><br><Replicate_Server_Info><br> <Host_Name> rep_2 </Host_Name><br> <Port> 8001 </Port><br>
<Recovery_Port> 8101 </Recovery_Port><br></Replicate_Server_Info><br>#-------------------------------------------------------------<br># set Cluster DB Server information<br>
#-------------------------------------------------------------<br><Host_Name> cluster_1 </Host_Name><br><Recovery_Port> 7001 </Recovery_Port><br>
<Rsync_Path> /usr/bin/rsync </Rsync_Path><br><Rsync_Option> ssh -1 </Rsync_Option><br><Rsync_Compress> yes </Rsync_Compress><br>
<Rsync_Timeout> 10min </Rsync_Timeout><br><Rsync_Bwlimit> 0KB </Rsync_Bwlimit><br><Pg_Dump_Path> /opt/mookr/pgcluster/bin/pg_dump </Pg_Dump_Path><br>
<Ping_Path> /bin/ping </Ping_Path><br><When_Stand_Alone> read_only </When_Stand_Alone><br><Replication_Timeout> 1min </Replication_Timeout><br>
<LifeCheck_Timeout> 3s </LifeCheck_Timeout><br><LifeCheck_Interval> 11s </LifeCheck_Interval><br>##-------------------------------------------------------------<br>
## set partitional replicate control information<br>## set DB name and Table name to stop reprication<br>## o DB_Name : DB name<br>## o Table_Name : Table name<br>##-------------------------------------------------------------<br>
#<Not_Replicate_Info><br># <DB_Name> test_db </DB_Name><br># <Table_Name> log_table </Table_Name><br>#</Not_Replicate_Info><br><br><br>
#-------------------------------------------------------------<br># file: pgreplicate.conf<br>#-------------------------------------------------------------<br># A setup of Cluster DB(s)<br>#-------------------------------------------------------------<br>
<Cluster_Server_Info><br> <Host_Name> cluster_1 </Host_Name><br> <Port> 5432 </Port><br> <Recovery_Port> 7001 </Recovery_Port><br>
</Cluster_Server_Info><br><Cluster_Server_Info><br> <Host_Name> cluster_2 </Host_Name><br> <Port> 5432 </Port><br>
<Recovery_Port> 7001 </Recovery_Port><br></Cluster_Server_Info><br><br>#-------------------------------------------------------------<br># A setup of Load Balance Server<br>
#-------------------------------------------------------------<br>#<LoadBalance_Server_Info><br># <Host_Name> master </Host_Name><br># <Recovery_Port> 6001 </Recovery_Port><br>
#</LoadBalance_Server_Info><br>#<LoadBalance_Server_Info><br># <Host_Name> slave01 </Host_Name><br># <Recovery_Port> 6001 </Recovery_Port><br>
#</LoadBalance_Server_Info><br><br>#-------------------------------------------------------------<br># A setup of a replication server<br>#-------------------------------------------------------------<br><Host_Name> rep_1 </Host_Name><br>
<Replication_Port> 8001 </Replication_Port><br><Recovery_Port> 8101 </Recovery_Port><br><RLOG_Port> 8301 </RLOG_Port><br>
<Response_Mode> normal </Response_Mode><br><Use_Replication_Log> no </Use_Replication_Log><br><Replication_Timeout> 1min </Replication_Timeout><br>
<LifeCheck_Timeout> 3s </LifeCheck_Timeout><br><LifeCheck_Interval> 15s </LifeCheck_Interval><br><br>#-------------------------------------------------------------<br>
# A setup of a log files<br>#-------------------------------------------------------------<br><Log_File_Info><br> <File_Name> /var/log/postgresql/pgreplicate.log </File_Name><br> <File_Size> 1M </File_Size><br>
<Rotate> 3 </Rotate><br></Log_File_Info><br><br><br>on <a href="http://192.168.0.3">192.168.0.3</a><br>
#============================================================<br>
# Cluster DB Server configuration file<br>
#------------------------------------------------------------<br>
# file: cluster.conf<br>
#------------------------------------------------------------<br>
# This file controls:<br>
# o which hosts & port are replication server<br>
# o which port use for replication request to replication server<br>
# o which command use for recovery function<br>
#============================================================<br>
<Replicate_Server_Info><br>
<Host_Name> rep_l </Host_Name><br>
<Port> 8001 </Port><br>
<Recovery_Port> 8101 </Recovery_Port><br>
</Replicate_Server_Info><br>
<Replicate_Server_Info><br>
<Host_Name> rep_2 </Host_Name><br>
<Port> 8001 </Port><br>
<Recovery_Port> 8101 </Recovery_Port><br>
</Replicate_Server_Info><br>
#-------------------------------------------------------------<br>
# set Cluster DB Server information<br>
#-------------------------------------------------------------<br>
<Host_Name> cluster_2 </Host_Name><br>
<Recovery_Port> 7001 </Recovery_Port><br>
<Rsync_Path> /usr/bin/rsync </Rsync_Path><br>
<Rsync_Option> ssh -1 </Rsync_Option><br>
<Rsync_Compress> yes </Rsync_Compress><br>
<Rsync_Timeout> 10min </Rsync_Timeout><br>
<Rsync_Bwlimit> 0KB </Rsync_Bwlimit><br>
<Pg_Dump_Path> /opt/mookr/pgcluster/bin/pg_dump </Pg_Dump_Path><br>
<Ping_Path> /bin/ping </Ping_Path><br>
<When_Stand_Alone> read_only </When_Stand_Alone><br>
<Replication_Timeout> 1min </Replication_Timeout><br>
<LifeCheck_Timeout> 3s </LifeCheck_Timeout><br>
<LifeCheck_Interval> 11s </LifeCheck_Interval><br>
##-------------------------------------------------------------<br>
## set partitional replicate control information<br>
## set DB name and Table name to stop reprication<br>
## o DB_Name : DB name<br>
## o Table_Name : Table name<br>
##-------------------------------------------------------------<br>
#<Not_Replicate_Info><br>
# <DB_Name> test_db </DB_Name><br>
# <Table_Name> log_table </Table_Name><br>
#</Not_Replicate_Info><br>
<br>
<br>
#-------------------------------------------------------------<br>
# file: pgreplicate.conf<br>
#-------------------------------------------------------------<br>
# A setup of Cluster DB(s)<br>
#-------------------------------------------------------------<br>
<Cluster_Server_Info><br>
<Host_Name> cluster_1 </Host_Name><br>
<Port> 5432 </Port><br>
<Recovery_Port> 7001 </Recovery_Port><br>
</Cluster_Server_Info><br>
<Cluster_Server_Info><br>
<Host_Name> cluster_2 </Host_Name><br>
<Port> 5432 </Port><br>
<Recovery_Port> 7001 </Recovery_Port><br>
</Cluster_Server_Info><br>
<br>
#-------------------------------------------------------------<br>
# A setup of Load Balance Server<br>
#-------------------------------------------------------------<br>
#<LoadBalance_Server_Info><br>
# <Host_Name> master </Host_Name><br>
# <Recovery_Port> 6001 </Recovery_Port><br>
#</LoadBalance_Server_Info><br>
#<LoadBalance_Server_Info><br>
# <Host_Name> slave01 </Host_Name><br>
# <Recovery_Port> 6001 </Recovery_Port><br>
#</LoadBalance_Server_Info><br>
<br>
#-------------------------------------------------------------<br>
# A setup of a replication server<br>
#-------------------------------------------------------------<br>
<Host_Name> rep_2 </Host_Name><br>
<Replication_Port> 8001 </Replication_Port><br>
<Recovery_Port> 8101 </Recovery_Port><br>
<RLOG_Port> 8301 </RLOG_Port><br>
<Response_Mode> normal </Response_Mode><br>
<Use_Replication_Log> no </Use_Replication_Log><br>
<Replication_Timeout> 1min </Replication_Timeout><br>
<LifeCheck_Timeout> 3s </LifeCheck_Timeout><br>
<LifeCheck_Interval> 15s </LifeCheck_Interval><br>
<br>
#-------------------------------------------------------------<br>
# A setup of a log files<br>
#-------------------------------------------------------------<br>
<Log_File_Info><br>
<File_Name> /var/log/postgresql/pgreplicate.log </File_Name><br>
<File_Size> 1M </File_Size><br>
<Rotate> 3 </Rotate><br>
</Log_File_Info><br>
<br clear="all"><br>-- <br>Don't tell me how many the enemies,but where they are!<br>(ADV:Perl -- It's like Java, only it lets you deliver on time and under budget.)