User Details
- User Since
- Oct 20 2014, 5:25 PM (533 w, 6 d)
- Availability
- Available
- IRC Nick
- AaronSchulz
- LDAP User
- Aaron Schulz
- MediaWiki User
- Aaron Schulz [ Global Accounts ]
Thu, Jan 9
Wed, Jan 8
Wed, Dec 18
Mon, Dec 16
Dec 10 2024
I still have this probably locally and have for years. There is probably some bad assumption that some postgres sort/collation default will have a certain value.
Dec 6 2024
Dec 5 2024
Nov 22 2024
Nov 21 2024
Nov 14 2024
Nov 13 2024
Nov 7 2024
Oct 28 2024
Oct 25 2024
Oct 24 2024
Oct 22 2024
One question is whether I should just add an autoincrement ID. It would make the DELETE queries for expiration simpler. Originally, I wanted to keep the schema support both regular and circular replication. Given the operational fun involved with the later, we could probably just bake in the non-circular replication assumption in exchange for simple IN() clause deletion instead of using factorConds().
Oct 10 2024
Oct 9 2024
Oct 7 2024
Oct 1 2024
Closing, since the log spam is gone. The remaining patch falls under the "possible general improvements" category.
I haven't seen this error in logstash lately. I know that an error like this used to occur and was fixed in 65aa3c0a3e3. Presumably, someone changed the load weights in etcd while the script was running. This error shouldn't happen, though the script can be restarted if it does still occur.
Sep 30 2024
Sep 25 2024
Sep 24 2024
Sep 23 2024
Sep 20 2024
Sep 19 2024
Actually, it looks like wmfApplyEtcdDBConfig() already hard codes 0 load when using remote servers for the writer index. This explains the low log rate. So the only thing left to do here is just disable the primary fallback logic for the 'is static' case in ExternalStoreDB.
Sep 18 2024
Sep 13 2024
Even without the fallback logic, the setup seems odd. Since the es5 cluster config has 100 weight for the writer index, DB_REPLICA servers are likely to result in writer index handles. That fine except that $wmgRemoteMasterDbConfig will be used in codfw to point the writer index to the remote servers. Maybe etcd.php should ignore $crossDCLoads if $lbFactoryConf['templateOverridesByCluster'][$mwLoadName]['is static'] is set.
Sep 12 2024
The logging code should check hasStreamingReplicaServers(), though it will then incidentally ignore cross-DC queries to static clones servers.
Isn't the fallback useless in this case, since there won't be anything on the primary that is not on the replica? Also, why is some non-existing blob being referenced so much? From etcd.php in mediawiki-config, it looks like DB_PRIMARY will still use a server in the primary datacenter, even for 'static' clusters, meaning that it's still a cross-DC query sometimes. This makes it seem like the warning is legitimate.
Sep 11 2024
Aug 29 2024
Looks like ApiEditStash still wasn't done, just PageEditStash.
Aug 27 2024
Aug 21 2024
Aug 20 2024
Aug 19 2024
Aug 9 2024
This might interfere with any use case that involves all of:
a) Batched reads from a DB_REPLICA transaction with a point-in-time view snapshot.
b) An assumption that DB_REPLICA will only get a replica server (e.g. there 1+ replicas and the primary has 0 load balancer weight)
c) Batched writes (involving replication waits). commitAndWaitForReplication() would keep flushing the DB_REPLICA view snapshot.