Wikimedia Technology/Annual Plans/FY2019/TEC4: PHP7 Migration/Goals

=Program Goals and Status for FY18/19=

TEC4 PHP Migration
 * Goal Owners: Mark Bergsma and Ian Marlier
 * Program Goals for FY18/19: At the conclusion of this program, Zend PHP7 will be the only PHP runtime supported or used in the Wikimedia Foundation production environment.
 * Annual Plan: PHP7 Migration
 * Primary Goal is Knowledge as a Service: Evolve our systems and structures
 * Tech Goal: Sustaining



 = Q1 Goals =

Outcome 1 / Output 1.2
Zend PHP7 is the only PHP runtime in use in the WMF environment
 * All wikis, including wikitech/office/etc, are being run under the Zend PHP7 runtime

Dependencies on: Traffic & Performance teams; Primary team: Service Operations

Goal(s)
Allow MediaWiki requests to be served by PHP7 alongside HHVM
 * Install and configure php-fpm alongside HHVM on the application servers
 * Refactor Apache configuration to allow selection of PHP engine based on HTTP request
 * Stretch: Evaluate performance of PHP 7.0, 7.2 versus HHVM, and pick one. ❌
 * Stretch: Refactor the puppet module "mediawiki" classes to role/profile structure

Status
July 2018

August 14, 2018

September 11, 2018
 * This goal is ongoing but slightly behind schedule due to high priority work on the data center switchover, as well as unexpected absence & vacations. It is though expected to complete shortly after EOQ. The stretch goal of evaluating PHP7 performance is currently stalled, as MediaWiki currently still does not pass all tests on PHP7.2

Outcome 1 / Output 1.2
Zend PHP7 is the only PHP runtime in use in the WMF environment
 * All wikis, including wikitech/office/etc, are being run under the Zend PHP7 runtime

Primary teams: Performance & Core Platform

Goal(s)

 * A sampling profiler that works under PHP7 has been identified and is prepared for use in the WMF production environment. If no appropriate profiler can be identified, then a statement of work for contractor effort to build one is prepared.

Status
July 30, 2018

August 2018
 * Somewhat at risk due to Core Platform's other work load, might be at risk for completion this quarter.

September 11, 2018
 * Somewhat at risk due to Core Platform's other work load, might be at risk for completion this quarter.



= Q2 Goals =

Outcome 1 / Output 1.2
Zend PHP7 is the only PHP runtime in use in the WMF environment
 * All wikis, including wikitech/office/etc, are being run under the Zend PHP7 runtime

Dependencies on: Traffic, Performance, Core Platform teams; Primary team: Service Operations

Goal(s)
Ability to serve a % of production traffic from PHP7
 * Separate Traffic layer caches for PHP7/HHVM
 * Allow directing users to PHP7 based on a cookie/header/beta feature ✅
 * Evaluate scalability and performance of php7 compared to HHVM (Performance/SRE) ✅
 * Package and install PHP 7.2 in production in place of PHP 7.0 ✅
 * Assist in the production deployment of a custom written PHP profiler (Performance)

Status
October 18, 2018
 * MW isn't running under PHP7 yet, so some of the goals are not yet, others should be done by end of October.

November 14, 2018
 * PHP 7.2 has been packaged and installed in Beta, production deployment is imminent and is now

December 12, 2018
 * Profiler is tested, final code reviews for wider deploy are and everything else is ✅ for this goal.

Outcome 1 / Output 1.2
Zend PHP7 is the only PHP runtime in use in the WMF environment
 * All wikis, including wikitech/office/etc, are being run under the Zend PHP7 runtime

Primary teams: Performance & Core Platform

Goal(s)

 * A sampling profiler that works under PHP7 has been identified and is prepared for use in the WMF production environment. If no appropriate profiler can be identified, then a statement of work for contractor effort to build one is prepared. ✅
 * Identify and address code issues and opportunities under PHP 7.2 ✅

Status
July 30, 2018

August 2018
 * Somewhat at risk due to Core Platform's other work load, might be at risk for completion this quarter.

September 11, 2018
 * Somewhat at risk due to Core Platform's other work load, might be at risk for completion this quarter.

November 14, 2018
 * See https://phabricator.wikimedia.org/T205059

December 12, 2018
 * Sampling profiler is ✅, deploy is tracked under output 1.1.



= Q3 Goals =

Outcome 1 / Output 1.2
Zend PHP7 is the only PHP runtime in use in the WMF environment


 * All wikis, including wikitech/office/etc, are being run under the Zend PHP7 runtime

Dependencies on: Performance, Core Platform, Release Engineering team; Primary team: Service Operations

Goal(s)
Ramp-up serving traffic to PHP 7


 * Set up a beta feature to allow users to test PHP 7
 * Setup of the sampling/profiling pipeline (Performance, with assistance from SRE)
 * Set up curl connection pooling mechanism
 * Optimize deployments for PHP7
 * Allow scap to invalidate the opcode cache
 * [stretch] Allow fetching the database configuration from etcd instead of files in order to reduce the cache resets
 * Set up A/B testing mechanism for PHP7, ramp up traffic to 20% of users

Status
January 2019
 * Discussed...

February 2019
 * Discussed...

March 2019
 * Discussed...



= Q4 Goals =

Outcome X / Output X
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
 * Nullam interdum, elit in malesuada aliquam, libero lorem auctor lacus, eu mattis lacus velit vitae mauris.

Dependancies on: ___________

Goal(s)

 * Ut eget sodales odio. Maecenas a varius leo.

Status
April 2019
 * Discussed...

May 2019
 * Discussed...

June 2019
 * Discussed...