Last modified: 2012-12-30 20:39:01 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T32824, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30824 - Integrate Facebooks "Online Schema Change for MySQL" into MediaWiki
Integrate Facebooks "Online Schema Change for MySQL" into MediaWiki
Status: NEW
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
https://www.facebook.com/notes/mysql-...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-09 00:02 UTC by Sam Reed (reedy)
Modified: 2012-12-30 20:39 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Comment 1 Brion Vibber 2011-09-09 23:14:21 UTC
tl;dr summary:

This Online Schema Change tool is a PHP script which manages cloning a table, applying an ALTER TABLE, and then swapping it back in place.

This runs online -- not interfering with live operations on the main tables -- by using triggers to capture changes made to the original table while the new table is being changed.

Note that in a replicated environment, you need to run this on all slaves before running on the master -- but unlike our prior schema update methods, it doesn't require halting replication while running, or switching masters.


Sounds pretty spiffy!
Comment 2 Sam Reed (reedy) 2011-09-10 01:21:31 UTC
I'm not exactly sure about the licensing, but it seems, as long as we keep the file somewhat as is, it should be fine.

For MW usage, it seem probably all that we need is a fairly simple wrapper/maintenance script of some kind, to iterate over the list of slaves, then the master, applying any and all patches. Certainly shouldn't be too much work to get done

Certainly seems a worthwhile task for Ops or even Gen Eng to get done, especially if we're ideally heading for a more frequent release (to WMF at least), model

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links