Domas Mituzas
3488efe876
allow bypassing lag checks
2006-01-23 15:27:44 +00:00
Domas Mituzas
44ab92339b
miliseconds...
...
* Do not check master lag
* check just thread counts on SHOW STATUS, less bits on wire, less rows to handle for php
2006-01-10 10:59:09 +00:00
Ævar Arnfjörð Bjarmason
a26d5a49d7
* s~\t+$~~
2006-01-07 13:31:29 +00:00
Ævar Arnfjörð Bjarmason
d8e90514ab
* Documentation: @private => @access private
2006-01-07 12:48:44 +00:00
Antoine Musso
2ca68a256d
Clean up unused globals!
2005-12-04 18:27:59 +00:00
Tim Starling
af47b8260c
Ability to set the blobs table name for any server in an external cluster. This would allow, for example, the merging of all external storage for a large wikipedia dump into a single database, with "clusters" distinguished by table name.
2005-10-29 01:41:36 +00:00
Tim Starling
5ef53bb049
Give informative connection errors more often
2005-10-28 01:08:49 +00:00
Tim Starling
396a109504
Meaningful error message when all servers are busy
2005-10-24 20:38:46 +00:00
Brion Vibber
219094eb01
Committing various live hacks from Wikimedia servers
2005-10-22 20:52:30 +00:00
Tim Starling
0d8eb4c996
Tweaked polling time
2005-09-20 13:37:29 +00:00
Tim Starling
fb784e6cdf
Sleep time is highly variable, removing it from the profiling section name
2005-08-23 16:55:54 +00:00
Brion Vibber
f0cd9a8d0e
* Add ability to break off certain debug topics into additional log files;
...
use $wgDebugLogGroups to configure and wfDebugLog() to log.
2005-08-17 20:07:33 +00:00
Tim Starling
34331f8e2a
fixed connection error handling
2005-08-14 04:42:55 +00:00
River Tarnell
b817c0c15f
merge ORACLE_WORK. sorry, this may break some parts of MySQL, i did not test extensively.
2005-08-02 13:35:19 +00:00
Tim Starling
5c21483236
fixed repeated balancing bug
2005-06-25 13:48:02 +00:00
Tim Starling
0503c59bdf
various load balancing tweaks
2005-06-19 02:39:43 +00:00
Brion Vibber
3376d45088
* (bug 2368) Avoid fatally breaking PHP 4.1.2 in a debug line
2005-06-10 01:32:05 +00:00
Tim Starling
a12ce8f747
new load balancing algorithm
2005-06-01 06:18:49 +00:00
Tim Starling
c911354512
bug fix
2005-05-06 03:48:15 +00:00
Tim Starling
6c1ccfd02e
Made updateSpecialPages.php more robust to database problems
2005-04-24 08:31:12 +00:00
Tim Starling
073ac49c1b
Implemented query group feature, needed for slow queries esp. in 1.4. Hopefully fixed lagged slave mode. Added a simple method to simulate lagged slaves.
2005-04-23 11:49:33 +00:00
Tim Starling
ef3b9225fd
Fixed bug causing transactions to not be started all the time
2005-03-27 18:06:44 +00:00
Tim Starling
9969e8ee48
Minor load balancing improvements
2005-01-15 10:13:36 +00:00
Brion Vibber
b464cb7b97
* Fix for load balancing mode, notify if using old settings format
2004-12-06 01:14:53 +00:00
Antoine Musso
ba2afcd9fa
Split files and classes in different packages for phpdocumentor. I probably changed some double quotes to single and used function foo () { shema
2004-09-03 23:00:01 +00:00
Antoine Musso
90155b8a97
Changing comments layout preparing for generated documentation with Phpdocumentor
2004-09-02 23:28:24 +00:00
Antoine Musso
3d60242fb5
massive double to single quotes conversion. I have not noticed any bug after a lot of testing
2004-08-22 17:24:50 +00:00
Brion Vibber
1494cd61de
Report the database connection failure error message when no server can
...
be contacted instead of silently ignoring it and dying when unable to use
'false' as an array index.
2004-08-08 01:07:56 +00:00
Tim Starling
d326750130
Fixed bug causing infinite recursion on failure to contact a slave. Some other general rearrangements, extra debug info
2004-08-07 03:53:19 +00:00
Tim Starling
0255658424
improvements to error handling
2004-07-24 08:33:37 +00:00
Tim Starling
1773cd1e76
* Introducing bit field for database parameters
...
** Database constructor calling sequence, and Database::newFromParams()
** Including flags in the server initialisation structs
** Support for setting appropriate flags from legacy globals in Setup.php
** Moved some defines to Define.php so that they can be used in LocalSettings.php, most importantly the bit field constants
* Changes related to post-parse link colouring
** Turn the link cache back on when using it for updating the links table
** No longer need to call preFill() on page view
* Better synchronisation of slave servers
** Rearranged getConnection()
** System for beginning and committing transactions when multiple connections are open
** wfAbruptExit() commits transactions, wfErrorExit() does not. Various functions changed to use wfErrorAbort()
* Allowed reporting of database errors during deferred updates by moving them above output()
2004-07-24 07:24:04 +00:00
Tim Starling
3dc5684673
debug output, and proper handling of NULL return from masterPosWait(), which occurs if replication is stopped with SLAVE STOP
2004-07-23 12:37:55 +00:00
Tim Starling
ac549401d4
* Support for table name prefixes throughout the code. No support yet for converting static SQL, which also means no installation. But it has been tested by creating the tables in the ordinary way and then renaming them
...
* DB_WRITE now called DB_MASTER, DB_READ now called DB_SLAVE
* Converted to use SQL wrapper functions instead of direct SQL in various places
* Experimental method for preserving the chronological order of events when slave servers are used. Untested.
* Fixes to the new post-parse existence test feature
* Some.. other stuff
2004-07-18 08:48:43 +00:00
Tim Starling
b96b707efa
OOP calling convention for database functions. DBMS abstraction implemented by means of functions instead of global variables, PostgreSQL object converted to a subclass instead of a drop-in replacement. Also the beginnings of a flexible table name feature.
2004-07-10 03:09:26 +00:00
Tim Starling
2ba9d12c88
Load balancer bug fixes
2004-06-22 08:54:26 +00:00
Tim Starling
28bb28f0cc
bug fix
2004-06-21 07:49:19 +00:00
Tim Starling
5412316925
fixed error handling (at least partially)
2004-06-18 14:02:43 +00:00
Tim Starling
b5ef8d221b
Bringing the load balancer to the main branch. Still doesn't do much. I needed a DB connection cache for my Article.php alterations, which LoadBalancer provides.
2004-06-15 15:00:54 +00:00
Brion Vibber
0332f4c598
Fix for compatibility with short_open_tag = Off
2004-02-18 02:15:00 +00:00
Tim Starling
1231546be7
new object - basic DB load balancer
2004-01-25 13:27:53 +00:00