http://www.mediawiki.org/wiki/Special:Code/MediaWiki/90664

Revision: 90664
Author:   asher
Date:     2011-06-23 16:56:53 +0000 (Thu, 23 Jun 2011)
Log Message:
-----------
more logging around LB max threads backoff

Modified Paths:
--------------
    branches/wmf/1.17wmf1/includes/db/LoadMonitor.php

Modified: branches/wmf/1.17wmf1/includes/db/LoadMonitor.php
===================================================================
--- branches/wmf/1.17wmf1/includes/db/LoadMonitor.php   2011-06-23 16:53:39 UTC 
(rev 90663)
+++ branches/wmf/1.17wmf1/includes/db/LoadMonitor.php   2011-06-23 16:56:53 UTC 
(rev 90664)
@@ -123,6 +123,8 @@
                }
                $status = $conn->getStatus("Thread%");
                if ( $status['Threads_running'] > $threshold ) {
+                       $server = $conn->getProperty( 'mServer' );              
                                                                                
                                                                                
                                                                                
                                
+                       wfLogDBError( "LB backoff from $server - 
Threads_running = {$status['Threads_running']}\n" );  
                        return $status['Threads_connected'];
                } else {
                        return 0;


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to