Improve lag/flag behavior and docs in LoadBalancer
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 20 Sep 2016 19:57:50 +0000 (12:57 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 20 Sep 2016 23:51:34 +0000 (23:51 +0000)
commit7b0bcd5c3f26497b906874d8988ba7c0dd5a514e
treef37e1de31f0f051f16d09a68e480bb8a03dc4c12
parent174b3aacd250cd7a0ae9f35283586e352c47807a
Improve lag/flag behavior and docs in LoadBalancer

* Set DBO_DEFAULT if "flags" is not set. MediaWiki config bootstrapping
  does this, but for outside users, it should still be the default too.
* Make "is static" do more than no-oping DatabaseMysqlBase::masterPosWait().
  It now also treats servers with this flag as having 0 lag at all times.
  This makes it far more useful, as the point of the flag is to mark DBs
  that are archival clones of each other and may not even replicate.
* Add more ILoadBalancer usage documentation.

Change-Id: Ib0b44e42e9f4c57a292d6a6ea17beb454db464bc
includes/libs/rdbms/loadbalancer/ILoadBalancer.php
includes/libs/rdbms/loadbalancer/LoadBalancer.php