Article delegate-en/3809 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[Reference:<_A3808@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: Logging of load balancer pings
23 Aug 2007 01:28:51 GMT feedback@delegate.org (Yutaka Sato)
The DeleGate Project


Hi,

In message <_A3808@delegate-en.ML_> on 08/23/07(04:13:14)
you "Scott Lambdin" <p3yhabdyi-jfjnzgnbqznr.ml@ml.delegate.org> wrote:
 |Thanks - that cut it back to just two lines being logged for each
 |connection.  The delegate servers are a clustered pair and the load balancer
 |is what decides which server to send each particular connection.  The load
 |balancer keeps making connections to delegated to make sure that box is
 |working and should continue to get jobs.
 |
 |Must accepts and disconnects always be logged?

At least when I introduced the conditional parameter with "(condition)"
prefix in DeleGate/8.2.0, it might have been useful for debugging to see
how it is working.  But it is not necessary now and is not expected behavior
anyway, so I'll fix it as the enclosed patch.

Cheers,
Yutaka
--
  9 9   Yutaka Sato <y.sato@delegate.org> http://delegate.org/y.sato/
 ( ~ )  National Institute of Advanced Industrial Science and Technology
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller


diff -c ../delegate9.6.3/src/delegated.c ./delegated.c
*** ../delegate9.6.3/src/delegated.c	Wed Aug  8 11:53:15 2007
--- ./delegated.c	Thu Aug 23 10:22:54 2007
***************
*** 3807,3812 ****
--- 3807,3813 ----
  
  extern int NO_EXPSOCKBUF;
  extern int HW_RAMSIZE;
+ void scan_condargs(Connection *Conn);
  static int setClientInfo(Connection *Conn,Efd *clSock,PVStr(addr),PVStr(clntinfo))
  {	int port;
  	CStr(host,MaxHostNameLen);
***************
*** 3846,3851 ****
--- 3847,3853 ----
  			TeleportHost,TeleportPort);
  
  	setRidentInfo(Conn,clSock);
+ 	scan_condargs(Conn);
  
  	daemonlog("E","(%d) accepted [%d] %s (%5.3fs)(%d)\n",
  		NUM_PEERS+NUM_CHILDREN,
***************
*** 3867,3873 ****
  int have_publiclog();
  static int ExecGeneralist(Connection *Conn,int fromC,int toC);
  void beginGeneralist(Connection *Conn,int clsock);
- void scan_condargs(Connection *Conn);
  int RIDENT_recv(int clsock,PVStr(sockname),PVStr(peername));
  void close_filterctls(Connection *Conn);
  int aliveServ(Connection *Conn);
--- 3869,3874 ----
***************
*** 3935,3946 ****
  		}else	ExecGeneralist(Conn,clsock,clsock);
  		count = ClientCountDown();
  	}else	count = -1;
- mem_pops(SB_CONN);
- DGLEV = SB_PROC;
- 
  	daemonlog("E","disconnected [%d] %s (%5.3fs)(%d)\n",
  		clsock,clntinfo, Time()-ACCEPT_TIME,count);
  
  	if( aliveServ(Conn) <= 0 )
  	if( 0 <= ServerSock && file_isSOCKET(ServerSock) ){
  		/* 9.6.3 socket to the server of a dead FSV=sslway thread or
--- 3936,3947 ----
  		}else	ExecGeneralist(Conn,clsock,clsock);
  		count = ClientCountDown();
  	}else	count = -1;
  	daemonlog("E","disconnected [%d] %s (%5.3fs)(%d)\n",
  		clsock,clntinfo, Time()-ACCEPT_TIME,count);
  
+ mem_pops(SB_CONN);
+ DGLEV = SB_PROC;
+ 
  	if( aliveServ(Conn) <= 0 )
  	if( 0 <= ServerSock && file_isSOCKET(ServerSock) ){
  		/* 9.6.3 socket to the server of a dead FSV=sslway thread or
diff -c ../delegate9.6.3/src/log.c ./log.c
*** ../delegate9.6.3/src/log.c	Fri Aug  3 14:44:42 2007
--- ./log.c	Thu Aug 23 10:23:20 2007
***************
*** 1361,1367 ****
--- 1361,1370 ----
  	)
  	{
  		static int nlog;
+ 		/*
  		if( nlog++ == 0 ){
+ 		*/
+ 		if( isWindows() && nlog++ == 0 ){
  			/* to initialize something for Win32 */
  		}else
  		goto VERBABORT;

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V