[Pgcluster-general] Problem with pglb

Adam Crews abc at pioneer-pra.com
Tue Oct 16 16:24:06 UTC 2007


Hello,

I am trying to get pglb running, and it keeps dying with the below 
error.  Can someone help me to figure out what is wrong and get pglb 
running?

[postgres at db1 etc]$ /usr/local/pgsql/bin/pglb -D /usr/local/pgsql/etc -n -v
2007-10-16 08:16:15 [9072] ERROR:init_pglb():Max_DB_Server is wrong 
value. /usr/local/pgsql/etc/pglb.conf file should be broken
[postgres at db1 etc]$

Here is my pglb.conf:

<host_name>              db.pioneer-pra.com  </host_name>
<backend_socket_dir>     /tmp           </backend_socket_dir>
<receive_port>           5433           </receive_port>
<recovery_port>          6001           </recovery_port>
<max_cluster_num>        128            </max_cluster_num>
<use_connection_pooling> no             </use_connection_pooling>
<LifeCheck_Timeout>      3s             </LifeCheck_Timeout>
<LifeCheck_Interval>     15s            </LifeCheck_Interval>

<Log_File_Info>
  <File_Name>           /var/log/postgres/pglb.log </File_Name>
  <File_Size>           10M             </File_Size>
  <Rotate>              52              </Rotate>
</Log_File_Info>

<cluster_server_info>
  <host_name>db1.pioneer-pra.com</host_name>
  <port>5432</port>
  <max_connect>32</max_connect>
</cluster_server_info>

<cluster_server_info>
  <host_name>db2.pioneer-pra.com</host_name>
  <port>5432</port>
  <max_connect>32</max_connect>
</cluster_server_info>



 From what I can tell from the source, the Max_DB_Server is set via the 
'max_cluster_num' option, so I'm not sure why I'm seeing this error.   I 
compiled the source from the pgcluster-1.7.0rc7 tarball that included 
the postgres source.  My system is a CentOS 5 x86_64 machine.

Thanks
-Adam


More information about the Pgcluster-general mailing list