[Pgpool-general] Problem with load balancing + automatic failover

Yoshiyuki Asaba y-asaba at sraoss.co.jp
Wed May 7 04:10:20 UTC 2008


Hi,

From: "Michael SALOMON" <michaelsalomon78 at gmail.com>
Subject: Re: [Pgpool-general] Problem with load balancing + automatic failover
Date: Mon, 5 May 2008 10:54:23 +0200

> Here are the log outputs I could get :

Thanks. Could you apply the attached patch?

Regards,
--
Yoshiyuki Asaba
y-asaba at sraoss.co.jp
-------------- next part --------------
Index: child.c
===================================================================
RCS file: /cvsroot/pgpool/pgpool-II/child.c,v
retrieving revision 1.21
diff -c -r1.21 child.c
*** child.c	27 Mar 2008 16:06:08 -0000	1.21
--- child.c	7 May 2008 04:08:42 -0000
***************
*** 1757,1763 ****
  	int i;
  
  	/* choose a backend in random manner with weight */
! 	selected_slot = 0;
  	total_weight = 0.0;
  
  	for (i=0;i<NUM_BACKENDS;i++)
--- 1757,1763 ----
  	int i;
  
  	/* choose a backend in random manner with weight */
! 	selected_slot = MASTER_NODE_ID;
  	total_weight = 0.0;
  
  	for (i=0;i<NUM_BACKENDS;i++)


More information about the Pgpool-general mailing list