aaron (Aaron Schulz)
User

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Friday

  • Clear sailing ahead.

User Details

User Since
Oct 20 2014, 5:25 PM (153 w, 1 d)
Availability
Available
IRC Nick
AaronSchulz
LDAP User
Aaron Schulz
MediaWiki User
Aaron Schulz

Recent Activity

Yesterday

aaron added a comment to T175672: Make client certs available for apache/maintenance hosts for TLS connections to mariadb.

Looking at http://php.net/manual/en/mysqli.ssl-set.php, I would think you'd only need to set capath=/etc/ssl/certs, while setting all other parameters to NULL (except maybe cipher, as I have no idea what is the actual default cipherlist for mysqli on HHVM).

Tue, Sep 26, 3:29 PM · Performance-Team (Radar), Availability (Multiple-active-datacenters), DBA, Operations

Wed, Sep 20

aaron moved T166199: Add metrics for master queries on HTTP GET/HEAD from Next-up to Doing on the Performance-Team board.
Wed, Sep 20, 7:21 PM · Patch-For-Review, MW-1.30-release-notes, Performance-Team, Availability (Multiple-active-datacenters)
aaron added a comment to T173696: Cache constraint check results.

Interesting idea! It feels a bit weird to implement logic like this on top of the cache (I thought that’s the cache’s job?), but you’re the expert :) it sounds like it makes a lot of sense, at least, since the set of regexes is mostly static and the set of values is highly dynamic, with some very commonly used values.

I think I’ll remove the “don’t bother” microtime check, though, since it seems that even for an extremely simple query like SELECT (1 AS ?x) {}, the query service rarely responds in less than 0.04 seconds, and never in less than 0.02 seconds (tested from a Cloud VPS system within the Eqiad cluster).

Wed, Sep 20, 10:30 AM · Patch-For-Review, Wikidata-Sprint, Wikibase-Quality-Constraints, Wikibase-Quality, Wikidata
aaron added a comment to T173696: Cache constraint check results.

If want to avoid flooding cache with rarely used long-tail combinations, maybe something like this could be done:

Wed, Sep 20, 3:24 AM · Patch-For-Review, Wikidata-Sprint, Wikibase-Quality-Constraints, Wikibase-Quality, Wikidata

Tue, Sep 19

aaron added a comment to T176101: Cannot delete File:MKC,S.jpg on zhwiki due to DBQueryError.

Problem seems to be:

if ( $this->stage <= MIGRATION_WRITE_BOTH ) {
	$fields[$this->key] = $this->lang->truncate( $comment->text, 255 );
}

...LocalFile already used addQuotes(), and this can remove the ending quote character.

That's not the real problem. The problem is that the different behavior of IDatabase->insertSelect()'s $varMap versus ->insert()'s $a wasn't noticed, so the code was incorrectly quoting the value passed to CommentStore->insert() (from the original pre-CommentStore code) rather than quoting the returned literal fields for passing into IDatabase->insertSelect().

Tue, Sep 19, 3:07 AM · Patch-For-Review, Vuln-Inject, Wikimedia-log-errors, Chinese-Sites, MediaWiki-Page-deletion

Mon, Sep 18

aaron removed a project from T176101: Cannot delete File:MKC,S.jpg on zhwiki due to DBQueryError: Security.

Problem seems to be:

if ( $this->stage <= MIGRATION_WRITE_BOTH ) {
	$fields[$this->key] = $this->lang->truncate( $comment->text, 255 );
}
Mon, Sep 18, 9:24 AM · Patch-For-Review, Vuln-Inject, Wikimedia-log-errors, Chinese-Sites, MediaWiki-Page-deletion
aaron triaged T176101: Cannot delete File:MKC,S.jpg on zhwiki due to DBQueryError as Unbreak Now! priority.
Mon, Sep 18, 9:23 AM · Patch-For-Review, Vuln-Inject, Wikimedia-log-errors, Chinese-Sites, MediaWiki-Page-deletion
aaron added a project to T176101: Cannot delete File:MKC,S.jpg on zhwiki due to DBQueryError: Security.
Mon, Sep 18, 9:10 AM · Patch-For-Review, Vuln-Inject, Wikimedia-log-errors, Chinese-Sites, MediaWiki-Page-deletion

Sat, Sep 16

aaron added a comment to T175834: TranslatablePageMoveJob commit while in atomic sections.

Probably the onMoveTranslationUnits handler should be a closure sent to DeferredUpdates. Anything that needs to COMMIT/BEGIN within it's scope needs full transaction control, which is not usually guaranteed when some hook triggers.

Sat, Sep 16, 9:43 PM · MediaWiki-extensions-Translate, Wikimedia-log-errors

Fri, Sep 15

aaron added a comment to T173477: wmf.14 Blocker - Post Mortem - Cannot flush pre-lock snapshot because writes are pending.
  • PROBLEM: in LinksUpdate, runForTitle() starting off with acquirePageLock(), then calling doUpdate() for the secondary update list, and returning without committing. This meant that any caller using this method inside a loop had to call commitMasterChanges() itself somehow, otherwise, the acquirePageLock() call would fail. The multi-title case of RefreshLinksJob had a for-loop that did not do this. Note that acquirePageLock() uses getScopedLockAndFlush() which is intended for "critical sections" (https://en.wikipedia.org/wiki/Critical_section) involving read/writing to the database. Since it makes to sense to acquire a lock and then read a stale snapshot (from REPEATABLE-READ) from *before* lock acquisition, Database demands that any transaction be cleared. It will do so automatically if there are no writes, but otherwise it fails since committing prematurely may break atomicity.
  • INTRODUCTION: This was broken since 63a3911a67507731695bad3188f486219a563b7d but nothing used multi-title refreshlinks jobs. 0df49eeaf49dcd84cee5afc678de43ebd6c984c5 introduced a use case for this and made the bug manifest itself.
  • AVOIDANCE: since this would seem to happen for any multi-tutle job run, I'm not sure how this got past testing unless there were (a) no links updated and the test jobs were triggered by null or non-link changed edits or (b) the edited test entities only had one backlink. Future backlink change propagation testing should cover these cases.
Fri, Sep 15, 9:39 AM · RelEng-Archive-FY201718-Q1
aaron added a comment to T174993: Vandalism in "In the news" articles persisting in the app' ?.

I'd leave it open. The above change avoids the jobqueue and thus fast tail jobs piling due to slow wikidata jobs in the head of the queue. It should help, I'd assume.

Fri, Sep 15, 6:26 AM · Reading-Infrastructure-Team-Backlog, Services (watching), Mobile, Wikipedia-iOS-App-Backlog, Wikipedia-Android-App-Backlog, iOS-app-Bugs, Android-app-Bugs

Thu, Sep 14

aaron added a comment to T174993: Vandalism in "In the news" articles persisting in the app' ?.

I think LinksUpdate for the page directly edited can probably be moved (back) to doing the actual work post-send.

The 'enqueue' parameter can be removed from MediaWiki::restInPeace() since, unlike in the PRESEND run, the user is not waiting on it to run. If a caller really wants to enqueue a job post-send, it can always use lazyPush() instead of adding an EnqueueableDataUpdate to the POSTSEND deferred update list.

Thu, Sep 14, 8:25 AM · Reading-Infrastructure-Team-Backlog, Services (watching), Mobile, Wikipedia-iOS-App-Backlog, Wikipedia-Android-App-Backlog, iOS-app-Bugs, Android-app-Bugs
aaron added a comment to T174993: Vandalism in "In the news" articles persisting in the app' ?.

I think LinksUpdate for the page directly edited can probably be moved (back) to doing the actual work post-send.

Thu, Sep 14, 8:02 AM · Reading-Infrastructure-Team-Backlog, Services (watching), Mobile, Wikipedia-iOS-App-Backlog, Wikipedia-Android-App-Backlog, iOS-app-Bugs, Android-app-Bugs
aaron added a comment to T174993: Vandalism in "In the news" articles persisting in the app' ?.

As far as I can tell, the page image(s) are handled as part of deferred linksUpdate processing. This means that the updates would be executed after the main web request, but on the same PHP thread that handled the original edit request.

Thu, Sep 14, 7:56 AM · Reading-Infrastructure-Team-Backlog, Services (watching), Mobile, Wikipedia-iOS-App-Backlog, Wikipedia-Android-App-Backlog, iOS-app-Bugs, Android-app-Bugs

Wed, Sep 13

aaron added a comment to T102899: Implement or find a generic leaderboard web interface.

For catching slow queries, we can use logging to logstash when the runtime passes a certain threshold (to avoid spamming the service). A leaderboard could be added to Kibana for the top occurrences of normalized messages.

Wed, Sep 13, 1:22 PM · Performance-Team
aaron renamed T99060: Create a dashboard of key user-centric performance metrics from Performance key metrics dashboard(s) to Create a dashboard of key user-centric performance metrics.
Wed, Sep 13, 12:25 PM · Performance-Team

Tue, Sep 12

aaron moved T95501: Fix causes of slave lag and get it to under 5 seconds at peak from Next-up to Blocked on the Performance-Team board.
Tue, Sep 12, 10:08 AM · Goal, Performance-Team, Availability
aaron moved T161749: Introduce InterruptMutexManager from Next-up to Backlog on the Performance-Team board.
Tue, Sep 12, 10:08 AM · TechCom-RfC, User-Daniel, Performance-Team, MediaWiki-General-or-Unknown
aaron moved T121440: Dedicated post-edit cache busting cookie to prevent stale reads (session consistency) from Potential goals to Backlog on the Performance-Team board.
Tue, Sep 12, 10:08 AM · Performance-Team
aaron moved T121440: Dedicated post-edit cache busting cookie to prevent stale reads (session consistency) from Next-up to Potential goals on the Performance-Team board.
Tue, Sep 12, 10:07 AM · Performance-Team
aaron moved T171071: Perform testing for TLS effect on connection rate from Doing to Blocked on the Performance-Team board.
Tue, Sep 12, 10:01 AM · Availability (Multiple-active-datacenters), DBA, Operations, Performance-Team
aaron updated the task description for T175672: Make client certs available for apache/maintenance hosts for TLS connections to mariadb.
Tue, Sep 12, 8:44 AM · Performance-Team (Radar), Availability (Multiple-active-datacenters), DBA, Operations
aaron created T175672: Make client certs available for apache/maintenance hosts for TLS connections to mariadb.
Tue, Sep 12, 8:43 AM · Performance-Team (Radar), Availability (Multiple-active-datacenters), DBA, Operations

Sat, Sep 9

aaron updated the task description for T175437: Improve [rollback] logic when it encounters null edits.
Sat, Sep 9, 1:08 AM · MediaWiki-Recent-changes, MediaWiki-History-or-Diffs
aaron updated the task description for T175437: Improve [rollback] logic when it encounters null edits.
Sat, Sep 9, 12:54 AM · MediaWiki-Recent-changes, MediaWiki-History-or-Diffs
aaron created T175439: SQL error with postgres during 1.30 update.php run.
Sat, Sep 9, 12:29 AM · MW-1.28-release-notes, MW-1.27-release-notes, MW-1.29-release-notes, Patch-For-Review, PostgreSQL, MediaWiki-Database

Fri, Sep 8

aaron created T175437: Improve [rollback] logic when it encounters null edits.
Fri, Sep 8, 11:48 PM · MediaWiki-Recent-changes, MediaWiki-History-or-Diffs
aaron created T175418: Create new instances memc05 and memc06 running memcached.
Fri, Sep 8, 8:26 PM · Release-Engineering-Team (Watching / External), Availability (Multiple-active-datacenters), Beta-Cluster-Infrastructure
aaron added a comment to T171071: Perform testing for TLS effect on connection rate.

Hey,

I would be nice to do a test with MariaDB 10.0 and 10.1 if possible, to see if there are any regressions.
For that matters, on codfw you can pretty much use any slave for 10.0 (they all have pretty much the same HW), so for the sake of picking one from s1:
db2048

If you want to do the same test with MariaDB 10.1, you could use db2062. db2062 is being used lately to reclone some hosts, so you might want to give us a heads up before using it, to make sure it doesn't have mysql down for one of those maintenances.

Fri, Sep 8, 7:04 PM · Availability (Multiple-active-datacenters), DBA, Operations, Performance-Team

Tue, Sep 5

aaron added a comment to T173710: Job queue is increasing non-stop.

Those refreshLInks jobs (from wikibase) are the only ones that use multiple titles per job, so they will be a lot slower (seems to be 50 pages/job) than the regular ones from MediaWiki core. That is a bit on the slow side for a run time of a non-rare job type (e.g. TMH or GWT).

Tue, Sep 5, 8:12 PM · Patch-For-Review, Services (watching), Performance-Team (Radar), Discovery-Search, Discovery, CirrusSearch, Wikidata-Sprint, Wikidata, Operations, MediaWiki-JobQueue

Sat, Sep 2

aaron closed T173520: Fatal error: Stack overflow in [files] for wmf.14 as Resolved.
Sat, Sep 2, 7:10 PM · MW-1.30-release-notes (WMF-deploy-2017-09-05 (1.30.0-wmf.17)), Patch-For-Review, ProofreadPage, Wikimedia-log-errors
aaron closed T173520: Fatal error: Stack overflow in [files] for wmf.14, a subtask of T170632: 1.30.0-wmf.14 deployment blockers, as Resolved.
Sat, Sep 2, 7:10 PM · RelEng-Archive-FY201718-Q1, Train Deployments, Release
aaron closed T173520: Fatal error: Stack overflow in [files] for wmf.14, a subtask of T170634: 1.30.0-wmf.16 deployment blockers, as Resolved.
Sat, Sep 2, 7:10 PM · RelEng-Archive-FY201718-Q1, Train Deployments, Release

Thu, Aug 31

aaron added a comment to T173710: Job queue is increasing non-stop.

Could we always bump page_touched, but only send the purges to varnish if the timestamp is within the past four days? Would that let us run the older jobs faster since if I understand correctly the throttling is to avoid overloading varnish with purges?

Unfortunately the throttling still happens regardless of page touched. Throttling isn't based on actual purges performed but on the number of work items in a job. Work items are a simple count of pages in the job, rather than how many pages will actually be purged. Changing this behavior would basically increase the number of purges we send to varnish.

Thu, Aug 31, 9:05 PM · Patch-For-Review, Services (watching), Performance-Team (Radar), Discovery-Search, Discovery, CirrusSearch, Wikidata-Sprint, Wikidata, Operations, MediaWiki-JobQueue
aaron added a comment to T173710: Job queue is increasing non-stop.

Correcting myself after a discussion with @ema: since we have up to 4 cache layers (at most), we should process any job with a root timestamp newer than 4 times the cache TTL cap. So anything older than 4 days should be safely discardable.

This would account for about 1% of jobs according to Gwicke's sampling, but I suspect that under large pressure the distribution could get significantly worse.

Thu, Aug 31, 6:15 PM · Patch-For-Review, Services (watching), Performance-Team (Radar), Discovery-Search, Discovery, CirrusSearch, Wikidata-Sprint, Wikidata, Operations, MediaWiki-JobQueue
aaron added a comment to T173710: Job queue is increasing non-stop.

As far as retries go, the attempts hash for wikidatawiki:htmlCacheUpdate has few entries with run counts no greater than 3. The onl incrementing code is doPop() in MediaWiki, the same code that made them go up to 3 to begin with. If the same job ran many times, I'd expect there to be very high values there.

Thu, Aug 31, 12:21 AM · Patch-For-Review, Services (watching), Performance-Team (Radar), Discovery-Search, Discovery, CirrusSearch, Wikidata-Sprint, Wikidata, Operations, MediaWiki-JobQueue

Wed, Aug 30

aaron moved T157210: Gadget dependencies sometimes don't update from Next-up to Backlog on the Performance-Team board.
Wed, Aug 30, 6:54 PM · MW-1.30-release-notes (WMF-deploy-2017-09-05 (1.30.0-wmf.17)), Performance-Team, MediaWiki-Cache, Gadgets
aaron added a project to T157210: Gadget dependencies sometimes don't update: Performance-Team.
Wed, Aug 30, 6:54 PM · MW-1.30-release-notes (WMF-deploy-2017-09-05 (1.30.0-wmf.17)), Performance-Team, MediaWiki-Cache, Gadgets
aaron moved T173949: ext.math.styles is sometimes loaded when not needed - causing CSS size in production to fluctuate from Inbox to Radar on the Performance-Team board.
Wed, Aug 30, 6:48 PM · Performance-Team (Radar), MediaWiki-Parser, Readers-Web-Backlog (Tracking), Math, Performance
aaron added a comment to T174422: Make dbBatchSize in WikiPageUpdater configurable.

@Ladsgroup @aaron Would $wgUpdateRowsPerQuery be appropiate here, too? Or is it important for this particular query to use a different batch size?

Wed, Aug 30, 5:53 PM · Patch-For-Review, Performance-Team (Radar), Wikidata-Sprint, Wikidata, User-Ladsgroup

Aug 25 2017

aaron renamed T172357: ChronologyProtector redirect optimization depends on inappropriate $wgLocalVirtualHosts setting from $wgLocalVirtualHosts should include login.wikimedia.org, wikidata.org and others? to ChronologyProtector redirect optimization depends on inappropriate $wgLocalVirtualHosts setting.
Aug 25 2017, 11:24 PM · MW-1.30-release-notes, Performance-Team, Deployments, MediaWiki-extensions-CentralAuth
aaron added a comment to T173710: Job queue is increasing non-stop.

Though this bit is problematic:

Aug 25 2017, 10:37 PM · Patch-For-Review, Services (watching), Performance-Team (Radar), Discovery-Search, Discovery, CirrusSearch, Wikidata-Sprint, Wikidata, Operations, MediaWiki-JobQueue
aaron added a comment to T173710: Job queue is increasing non-stop.

Ignored purges still count as work items, yes.

Aug 25 2017, 9:09 PM · Patch-For-Review, Services (watching), Performance-Team (Radar), Discovery-Search, Discovery, CirrusSearch, Wikidata-Sprint, Wikidata, Operations, MediaWiki-JobQueue
aaron closed T172559: Ensure getLagTimes.php is working properly as Resolved.
Aug 25 2017, 8:03 PM · MW-1.30-release-notes, Operations, monitoring, Performance-Team
aaron added a comment to T173710: Job queue is increasing non-stop.

Note that for de-duplication, as long as the job has rootJobTimestamp set, it will ignore rows already touched (page_touched) to a higher/equal value, and likewise not send purges to the corresponding pages. So the CDN aspects *should* already have lots of de-duplication, the job spam notwithstanding.

Aug 25 2017, 8:03 PM · Patch-For-Review, Services (watching), Performance-Team (Radar), Discovery-Search, Discovery, CirrusSearch, Wikidata-Sprint, Wikidata, Operations, MediaWiki-JobQueue

Aug 24 2017

aaron added a comment to T173710: Job queue is increasing non-stop.

Secondary purges where for dealing with replication lag scenarios, not lost purges. That was one extra purge (2X).

One easy change I can see to not use CdnCacheUpdate from HtmlCacheUpdateJob (but still for the pages directly being edited). There is already processing delay anyway (and if there is none, there less likely to be replag, though not guaranteed), so there is less "de facto" use in a secondary purge for backlinks.

Aug 24 2017, 10:17 PM · Patch-For-Review, Services (watching), Performance-Team (Radar), Discovery-Search, Discovery, CirrusSearch, Wikidata-Sprint, Wikidata, Operations, MediaWiki-JobQueue
aaron added a comment to T173710: Job queue is increasing non-stop.

Secondary purges where for dealing with replication lag scenarios, not lost purges. That was one extra purge (2X).

Aug 24 2017, 10:03 PM · Patch-For-Review, Services (watching), Performance-Team (Radar), Discovery-Search, Discovery, CirrusSearch, Wikidata-Sprint, Wikidata, Operations, MediaWiki-JobQueue
aaron added a comment to T173710: Job queue is increasing non-stop.

In other words, base jobs for entities that will divide up and purge all backlinks to the given entity. Note that each job has two entries.

Wait - each job has two entries? You mean, there are duplicates inserted, and not pruned?...

Aug 24 2017, 7:07 PM · Patch-For-Review, Services (watching), Performance-Team (Radar), Discovery-Search, Discovery, CirrusSearch, Wikidata-Sprint, Wikidata, Operations, MediaWiki-JobQueue
aaron added a comment to T173710: Job queue is increasing non-stop.

From

mwscript maintenance/runJobs.php wikidatawiki --type htmlCacheUpdate --nothrottle --maxjobs 100 | grep "IsSelf=1"
Aug 24 2017, 1:28 AM · Patch-For-Review, Services (watching), Performance-Team (Radar), Discovery-Search, Discovery, CirrusSearch, Wikidata-Sprint, Wikidata, Operations, MediaWiki-JobQueue

Aug 23 2017

aaron committed rELGN810fe34c0822: Use global stash instance instead of local cluster instance (authored by Bawolff).
Use global stash instance instead of local cluster instance
Aug 23 2017, 9:59 PM
aaron placed T156924: Allow integration of data from etcd into the MediaWiki configuration up for grabs.
Aug 23 2017, 7:13 PM · Patch-For-Review, Performance-Team (Radar), Availability (Multiple-active-datacenters), MediaWiki-Platform-Team, Services (watching), discovery-system, User-Joe, User-mobrovac, Operations
aaron added a comment to T166199: Add metrics for master queries on HTTP GET/HEAD.

CommonSettings.php will still need updating.

Aug 23 2017, 7:11 PM · Patch-For-Review, MW-1.30-release-notes, Performance-Team, Availability (Multiple-active-datacenters)
aaron moved T171071: Perform testing for TLS effect on connection rate from Next-up to Doing on the Performance-Team board.
Aug 23 2017, 7:09 PM · Availability (Multiple-active-datacenters), DBA, Operations, Performance-Team
aaron moved T172357: ChronologyProtector redirect optimization depends on inappropriate $wgLocalVirtualHosts setting from Next-up to Blocked on the Performance-Team board.
Aug 23 2017, 7:09 PM · MW-1.30-release-notes, Performance-Team, Deployments, MediaWiki-extensions-CentralAuth
aaron moved T172941: Track duplicate parses on page save from Doing to Next-up on the Performance-Team board.
Aug 23 2017, 7:09 PM · Performance-Team
aaron triaged T173786: Convert Wikimedia production HHVM instances to have hhvm.php7.all set true as Low priority.
Aug 23 2017, 6:54 PM · MediaWiki-Platform-Team, Performance-Team, Operations, HHVM
aaron moved T173786: Convert Wikimedia production HHVM instances to have hhvm.php7.all set true from Inbox to Blocked on the Performance-Team board.
Aug 23 2017, 6:53 PM · MediaWiki-Platform-Team, Performance-Team, Operations, HHVM
aaron moved T173710: Job queue is increasing non-stop from Inbox to Radar on the Performance-Team board.
Aug 23 2017, 6:49 PM · Patch-For-Review, Services (watching), Performance-Team (Radar), Discovery-Search, Discovery, CirrusSearch, Wikidata-Sprint, Wikidata, Operations, MediaWiki-JobQueue
aaron moved T173796: Performance review of ArticleCreationWorkflow extension from Inbox to Next-up on the Performance-Team board.
Aug 23 2017, 6:47 PM · Community-Tech, MediaWiki-extensions-ArticleCreationWorkflow, Performance-Team
aaron assigned T173796: Performance review of ArticleCreationWorkflow extension to Krinkle.
Aug 23 2017, 6:47 PM · Community-Tech, MediaWiki-extensions-ArticleCreationWorkflow, Performance-Team

Aug 22 2017

aaron added a comment to T172357: ChronologyProtector redirect optimization depends on inappropriate $wgLocalVirtualHosts setting.

Looks like using WikiMap is the best choice IMO.

Aug 22 2017, 7:30 PM · MW-1.30-release-notes, Performance-Team, Deployments, MediaWiki-extensions-CentralAuth
aaron added a comment to T173710: Job queue is increasing non-stop.

Mostly htmlCacheUpdate jobs on wikidatawiki:

Aug 22 2017, 7:28 PM · Patch-For-Review, Services (watching), Performance-Team (Radar), Discovery-Search, Discovery, CirrusSearch, Wikidata-Sprint, Wikidata, Operations, MediaWiki-JobQueue
aaron placed T150506: Run lazyImportLocalNames() on creation and run script to backfill them up for grabs.
Aug 22 2017, 7:23 PM · Availability (Multiple-active-datacenters), MediaWiki-extensions-CentralAuth, Performance-Team
jcrespo awarded T172559: Ensure getLagTimes.php is working properly a Pterodactyl token.
Aug 22 2017, 4:56 PM · MW-1.30-release-notes, Operations, monitoring, Performance-Team

Aug 17 2017

aaron added a comment to T154424: TransactionProfiler should not apply to SqlBagOStuff.

In config, with $wgTrxProfilerLimits you can do:

Aug 17 2017, 11:05 PM · MW-1.29-release-notes, MediaWiki-Cache, MediaWiki-Database

Aug 16 2017

aaron added a comment to T172357: ChronologyProtector redirect optimization depends on inappropriate $wgLocalVirtualHosts setting.

Another option is to have the MediaWiki.php code use InterWikiLookup::getAllPrefixes() and the 'iw_url' field for each item.

Aug 16 2017, 7:21 PM · MW-1.30-release-notes, Performance-Team, Deployments, MediaWiki-extensions-CentralAuth
aaron moved T173450: Setup grafana alert for job error rate from Inbox to Next-up on the Performance-Team board.
Aug 16 2017, 7:14 PM · Performance-Team
aaron triaged T173450: Setup grafana alert for job error rate as Low priority.
Aug 16 2017, 7:14 PM · Performance-Team
aaron created T173450: Setup grafana alert for job error rate.
Aug 16 2017, 7:08 PM · Performance-Team
aaron moved T172941: Track duplicate parses on page save from Inbox to Doing on the Performance-Team board.
Aug 16 2017, 6:54 PM · Performance-Team
aaron triaged T172941: Track duplicate parses on page save as Normal priority.
Aug 16 2017, 6:53 PM · Performance-Team

Aug 14 2017

aaron closed T171371: Investigate 30x increase in Jobrunner errors as Resolved.

Closing. The two logging-related improvement action item left have their own tasks.

Aug 14 2017, 8:49 PM · MW-1.30-release-notes, Patch-For-Review, Release-Engineering-Team (Watching / External), Regression, Performance-Team, JobRunner-Service
aaron updated the task description for T171371: Investigate 30x increase in Jobrunner errors.
Aug 14 2017, 8:49 PM · MW-1.30-release-notes, Patch-For-Review, Release-Engineering-Team (Watching / External), Regression, Performance-Team, JobRunner-Service
aaron updated the task description for T171371: Investigate 30x increase in Jobrunner errors.
Aug 14 2017, 8:48 PM · MW-1.30-release-notes, Patch-For-Review, Release-Engineering-Team (Watching / External), Regression, Performance-Team, JobRunner-Service
aaron added a comment to T171371: Investigate 30x increase in Jobrunner errors.

Error rate went from 500-1000/s to 50-80/s.

Aug 14 2017, 8:24 PM · MW-1.30-release-notes, Patch-For-Review, Release-Engineering-Team (Watching / External), Regression, Performance-Team, JobRunner-Service
aaron added a comment to T171371: Investigate 30x increase in Jobrunner errors.

Mentioned in SAL (#wikimedia-operations) [2017-08-12T20:00:52Z] <krinkle@tin> Synchronized php-1.30.0-wmf.13/includes/jobqueue/JobQueueGroup.php: T171371 - Log job pushes to bogus wikis (duration: 00m 53s)

Aug 14 2017, 8:06 PM · MW-1.30-release-notes, Patch-For-Review, Release-Engineering-Team (Watching / External), Regression, Performance-Team, JobRunner-Service
aaron added a comment to T172479: Collect error logs from jobchron/jobrunner services in Logstash.

Yeah that list should be updated. I happen to investigate things there often (for now), though it's not really in my team domain.

Aug 14 2017, 6:21 PM · Performance-Team (Radar), MediaWiki-Platform-Team, Release-Engineering-Team (Watching / External), Operations, monitoring, JobRunner-Service, Wikimedia-Incident

Aug 12 2017

aaron added a comment to T171371: Investigate 30x increase in Jobrunner errors.

Max and I also noticed backlinks to this wiki from commons in global usage tables.

Aug 12 2017, 10:40 PM · MW-1.30-release-notes, Patch-For-Review, Release-Engineering-Team (Watching / External), Regression, Performance-Team, JobRunner-Service

Aug 9 2017

aaron created T172941: Track duplicate parses on page save.
Aug 9 2017, 7:21 PM · Performance-Team
aaron added a comment to T171371: Investigate 30x increase in Jobrunner errors.
aaron@terbium:~$ mwscript extensions/WikimediaMaintenance/wmfManageJobs.php aawiki --target ukwikimedia
refreshLinks: 0 queued; (empty or doesn't exist)
htmlCacheUpdate: 22 queued; 0 claimed (0 active, 0 abandoned); 0 delayed
Aug 9 2017, 6:22 PM · MW-1.30-release-notes, Patch-For-Review, Release-Engineering-Team (Watching / External), Regression, Performance-Team, JobRunner-Service
aaron added a comment to T171371: Investigate 30x increase in Jobrunner errors.

Did you check redis? Are their jobs back in the queues? It's possible some remote wiki is inserting jobs via JobSpecification or something.

Aug 9 2017, 12:21 AM · MW-1.30-release-notes, Patch-For-Review, Release-Engineering-Team (Watching / External), Regression, Performance-Team, JobRunner-Service

Aug 7 2017

aaron updated subscribers of T172357: ChronologyProtector redirect optimization depends on inappropriate $wgLocalVirtualHosts setting.
Aug 7 2017, 9:07 PM · MW-1.30-release-notes, Performance-Team, Deployments, MediaWiki-extensions-CentralAuth
aaron updated subscribers of T172357: ChronologyProtector redirect optimization depends on inappropriate $wgLocalVirtualHosts setting.
Aug 7 2017, 8:41 PM · MW-1.30-release-notes, Performance-Team, Deployments, MediaWiki-extensions-CentralAuth
aaron added a comment to T172357: ChronologyProtector redirect optimization depends on inappropriate $wgLocalVirtualHosts setting.

We should see if there is any unrelated downside to adding login/wikidata.org. I'd imagine it would be useful for account creation on connections with high latency.

Aug 7 2017, 8:41 PM · MW-1.30-release-notes, Performance-Team, Deployments, MediaWiki-extensions-CentralAuth
aaron added a comment to T151833: maintenance/update.php complains about locked database when $wgReadOnly is set.

$wgReadOnly is enforced at the LB/DB layer in addition to random callers checked wfReadOnly().

Aug 7 2017, 7:40 PM · MediaWiki-Installer, MediaWiki-Database, Regression
aaron added a comment to T151833: maintenance/update.php complains about locked database when $wgReadOnly is set.

Have you tied something like this?

$wgReadOnly = ( PHP_SAPI === 'cli' ) ? false : 'This wiki is currently being upgraded to a newer software version.'
Aug 7 2017, 7:40 PM · MediaWiki-Installer, MediaWiki-Database, Regression

Jul 23 2017

aaron added a comment to T164173: Cache invalidations coming from the JobQueue are causing lag on several wikis.

I commented on the patch, it's a METHOD mismatch problem, so the commit/wait steps don't happen (just the one big one like before).

Jul 23 2017, 2:07 AM · Performance-Team (Radar), Regression, Wikidata-Sprint, MediaWiki-extensions-WikibaseClient, User-Ladsgroup, User-Daniel, Wikidata, DBA, Operations

Jul 19 2017

aaron moved T171071: Perform testing for TLS effect on connection rate from Inbox to Next-up on the Performance-Team board.
Jul 19 2017, 6:46 PM · Availability (Multiple-active-datacenters), DBA, Operations, Performance-Team
aaron added a comment to T134809: Apache <=> mariadb SSL/TLS for cross-datacenter writes.

Roll-out should probably be something like:
a) DB_MASTER connections for testwiki/mediawikiwiki (group 0)
b) DB_MASTER connections for S3 (25%, 50%, then 100% of connections)
c) DB_MASTER connections for external stores (25%, 50%, then 100% of connections)
d) All DB_MASTER connections remaining shards (25%, 50%, then 100% of connections)

Jul 19 2017, 5:04 PM · Availability (Multiple-active-datacenters), DBA, Operations, Performance-Team
aaron created T171071: Perform testing for TLS effect on connection rate.
Jul 19 2017, 4:51 PM · Availability (Multiple-active-datacenters), DBA, Operations, Performance-Team

Jul 14 2017

aaron added a comment to T134809: Apache <=> mariadb SSL/TLS for cross-datacenter writes.

Reading things like https://www.percona.com/blog/2013/10/10/mysql-ssl-performance-overhead/ I think this may only make sense for DB_MASTER (also index 0) connections.

Jul 14 2017, 11:22 PM · Availability (Multiple-active-datacenters), DBA, Operations, Performance-Team

Jul 13 2017

aaron added a comment to T170596: Could not acquire lock 'LinksUpdate:job:pageid:xxx'.

I don't see much noise from the logs about refreshLinks at https://logstash.wikimedia.org/goto/a029053d21a195163e68acc0a23e760e.

Jul 13 2017, 9:08 PM · MediaWiki-JobQueue, Wikimedia-log-errors

Jul 12 2017

aaron added a comment to T169486: 2017-07-03 Save Timing spike (300% increase).

Read-only activates for bots sooner, which might lower the edit rate and change the distribution of edits (slower/faster, the ratio with navtiming going up, and such). I'm not sure that would make spikes itself. Actually replication lag adds on to save time, so that can certainly make spikes in navtiming due to ChronologyProtector.

Jul 12 2017, 5:38 PM · Performance-Team
aaron added a comment to T125735: Warning: timed out after 0.2 seconds when connecting to rdb1001.eqiad.wmnet [110]: Connection timed out.

@aaron any chance in your opinion that we could use nutcracker on the jobrunners?

Jul 12 2017, 5:29 PM · Performance-Team, User-Elukey, Operations, Wikimedia-log-errors

Jul 11 2017

aaron added a comment to T164173: Cache invalidations coming from the JobQueue are causing lag on several wikis.

@aaron another question: does RefreshLinksJob also purge the CDN cache automatically? should it? It does update the parser cache...

Jul 11 2017, 8:41 AM · Performance-Team (Radar), Regression, Wikidata-Sprint, MediaWiki-extensions-WikibaseClient, User-Ladsgroup, User-Daniel, Wikidata, DBA, Operations
doctaxon awarded T84843: Difference between timestamps in signature and site interface (due to edit stashing) a Like token.
Jul 11 2017, 4:30 AM · MW-1.30-release-notes (WMF-deploy-2017-07-11_(1.30.0-wmf.9)), Performance-Team, MediaWiki-Page-editing

Jul 6 2017

aaron added a comment to T164173: Cache invalidations coming from the JobQueue are causing lag on several wikis.

I also wonder why some of those log warnings come from close() and others have the proper commitMasterChanges() bit in the stack trace. Normally, there should be nothing to commit by close() and it is just commits for sanity.

Jul 6 2017, 11:28 PM · Performance-Team (Radar), Regression, Wikidata-Sprint, MediaWiki-extensions-WikibaseClient, User-Ladsgroup, User-Daniel, Wikidata, DBA, Operations
aaron placed T164173: Cache invalidations coming from the JobQueue are causing lag on several wikis up for grabs.
Jul 6 2017, 10:25 PM · Performance-Team (Radar), Regression, Wikidata-Sprint, MediaWiki-extensions-WikibaseClient, User-Ladsgroup, User-Daniel, Wikidata, DBA, Operations
aaron moved T111264: Decouple chronology protector from authentication from Inbox to Radar on the Performance-Team board.
Jul 6 2017, 8:03 PM · Performance-Team (Radar), Services (watching), Parsoid, RESTBase, Availability
aaron moved T168723: LinksUpdate totally broken when JobQueueDB is in use from Inbox to Doing on the Performance-Team board.
Jul 6 2017, 7:39 PM · MW-1.29-release-notes, MW-1.30-release-notes, MediaWiki-JobQueue, Performance-Team, MediaWiki-Platform-Team, MW-1.29-release