Drupal 8 - Hosting, Performance and Drush

Post on 17-May-2015

720 views 1 download

Tags:

description

An early look at the devops considerations for hosting Drupal 8.

Transcript of Drupal 8 - Hosting, Performance and Drush

professional services for the webconsultancy design development hosting training support

Monday, November 25, 13

about me

Greg Harvey

Monday, November 25, 13

introduction

Last year we looked at hosting Drupal 8

It almost worked!

But:

No drush!

Monday, November 25, 13

:’-(Monday, November 25, 13

what’s the stack?

Monday, November 25, 13

what’s the stack?Debian “Squeeze” (6)

Percona 5.5.33

PHP 5.3.27 (from Dotdeb)

nginx 1.2.3 (from Code Enigma)

Monday, November 25, 13

installingIf you block install.php:

It has moved!

/core/install.php

Monday, November 25, 13

file system

Monday, November 25, 13

file systemDrupal 7

755 everything

Application only writes to sites/%site

Monday, November 25, 13

file systemDrupal 8

What about CMI?

By default it sits in ‘files’

What about VCS?

Monday, November 25, 13

$config_directories = array( CONFIG_ACTIVE_DIRECTORY => array( 'path' => '/some/directory/outside/webroot', 'absolute' => TRUE, ), CONFIG_STAGING_DIRECTORY => array( 'path' => '/another/directory/outside/webroot', 'absolute' => TRUE, ),);

file system

Monday, November 25, 13

file systemIf you alter the path, also make sure the web server can read and write from/to that path!

Monday, November 25, 13

file systemAnd deployment?

Keep ‘staging’ in Git

Monday, November 25, 13

.htaccessIncludes have moved to /core/includes/

New rewrite rules to push update and install requests to new /core/ paths

Optional rules for additional security

Monday, November 25, 13

# Uncomment the following two lines to only # allow PHP files in the webroot and in "/core":# RewriteCond %{REQUEST_URI} !^/core/[^/]*\.php$# RewriteRule "^.+/.*\.php$" - [F]

.htaccess

Monday, November 25, 13

.htaccessAlso, TXT files!

All moved to /core/

Monday, November 25, 13

drushWhat works?

Pretty much everything!

drush si

drush cc

drush uli

Monday, November 25, 13

drushWhat’s new?

CMI

config-edit (cedit) config-export (cex) config-get (cget)config-import (cim)config-list (cli)

Monday, November 25, 13

drushAnd deployment?

These new drush commands for CMI are important!

drush cmi <- importing ‘staging’ config to ‘active’

Monday, November 25, 13

cachingAPC

memcache - Drupal 8 version already BUT:

https://drupal.org/node/2056373

Can’t work fully until it support cache tags

No Redis movement to date

Monday, November 25, 13

databasesNothing much changes

But EVERYTHING changes

Monday, November 25, 13

PHP versionWe’re running PHP 5.3

What about PHP 5.4 and 5.5?

Monday, November 25, 13

PHP version

Monday, November 25, 13

PHP version

Monday, November 25, 13

PHP versionSo why not?

Breaks Drupal 6.

Probably breaks Drupal 7 contrib too.

Monday, November 25, 13

does it work?!YES!

Of course it’s not ready, but you can play.

Monday, November 25, 13

performanceA lot to do:

https://drupal.org/node/1744302

But almost there!

Monday, November 25, 13

performanceSo please take the next slide with a large pinch of salt:

DRUPAL 8 IS NOT READY FORPERFORMANCE TESTING

https://twitter.com/catch56/status/392295581583802368

Monday, November 25, 13

performance

Monday, November 25, 13

questions?

Monday, November 25, 13