Follow-up from T239874: MediaWiki: "host db1062 is unreachable" (Connection refused).
Specifically, questions to CPT/Perf from DBAs:
- Does MediaWiki as used by WMF (wikimedia/rdbms, LBFactoryMulti) support giving the master db non-zero weight in terms of read queries intended for replicas? If so, what would a configuration for that look like?
- Is it meant to be valid to have a pooled replica with weight:0. If so, what is its current behaviour in MediaWiki?
- Are zero-weight replicas waited upon by waitForReplication?
- If another replicas have too much replication lag and MW is considering to enforce read-only mode, will it consider a zero-weight replica first?
- If another replica is unavailable / failed to connect and we pick a random different one, does this sometimes pick the zero-weight replica?
- Are there other cases, aside from waitFor and "regular" queries, where MW will connect to zero-weight replicas to maybe gather certain state information or meta data etc.?
And to DBAs (after the above):
- Should we consider changing any of this?