Drupal aegir AWS

23
Drupal, Aegir, et Amazon Web Services : une équipe gagnante pour le SaaS Drupal Meetup 2012-04-26

description

Integration Drupal Aegir avec Amazon Web Services de Tim Lovelock (Giving Corner)

Transcript of Drupal aegir AWS

Page 1: Drupal aegir AWS

Drupal, Aegir, et Amazon Web Services : une équipe gagnante pour le SaaS

Drupal Meetup 2012-04-26

Page 2: Drupal aegir AWS

2

Giving Corner: une motivation et récompense humanitaire …

Page 3: Drupal aegir AWS

… Animé par une plateforme collaborative, développée sous Drupal

Page 4: Drupal aegir AWS

Les avantages d’Aegir pour la gestion d’une offre SaaS : c’est FACILE

4/27/2012 STRICTLY CONFIDENTIALThis document may not be distributed without the express written permission of Giving Corner

4

• Facile de lancer un nouveau client

• Facile de migrer vers la dernière version de code

• Facile de lancer des instances de test

• Facile de gérer tous les instances clients

• Facile d’étendre les fonctionnalités de l’interface admin (si on connait déjà bien Drupal et Drush)

Page 5: Drupal aegir AWS

Architecture modulable, avec une codebase commune partagée sur plusieurs clients et des migrations faciles

4/27/2012 STRICTLY CONFIDENTIALThis document may not be distributed without the express written permission of Giving Corner

5

Drupal Core 6.22

Module Contrib A

Module Givco P

Module Givco Q

Module Contrib B

Module Givco R

Instance Client 1

Instance Client 2

Instance Client 3

Client 1 Client 2 Client 3

Drupal Core 6.25

Module Tiers A

Module Givco P

Module Givco Q

Module Tiers B

Module Givco R

Module Givco S

Instance Client 4

Client 4

Cod

e P

HP

B

ase

de

donn

ées

Site Client 3

Version Delta Version Gamma

MIGRATION

Con

fig &

Fi

chie

rs

CREATION Instance Client 3β

Client 3β TEST

Page 6: Drupal aegir AWS

Amazon Web Services: Leader de l’IaaS (Infrastructre as a Service)

6

• Serveurs virtualisés « nus » : EC2

• Stockage : EBS & S3 (99.999999999% durabilité)

• Content Delivery Network : CloudFront

• Load balancer : ELB

• DNS: Route 53

• Service e-mailing: Amazon SES

• Service Mysql: RDS

• Service Memcached: Elasticache

Page 7: Drupal aegir AWS

7

Les avantages d’Amazon Web Services

• Mise en place facile et immédiate

• Allégement des taches administratives avec des « Managed Services »

• Scalabilité, durabilité et redondance

• « Rapid Prototyping » d’une infrastructure

• Intégration de la gestion de l’infrastructure dans vos applications avec des APIs très complets en PHP

Page 8: Drupal aegir AWS

Option basique: une seule instance EC2 pour Apache, Mysql, l’administration Aegir et nos installs clients

STRICTLY CONFIDENTIALThis document may not be distributed without the express written permission of Giving Corner

8

AWS EBS

Backups sur AWS S3

Cloud Amazon Web Services

Stockage virtualisé

Stockage pérenne

Instance EC2

Page 9: Drupal aegir AWS

Option intermédiaire: des instances EC2 pour Apache (Aegir + installs clients) et Mysql géré par RDS

STRICTLY CONFIDENTIALThis document may not be distributed without the express written permission of Giving Corner

9

Base AWS RDS

AWS EBS Backups sur

AWS S3

Cloud Amazon Web Services

Stockage virtualisé

Instances EC2 avec Apache pour sites clients

Instances EC2 avec Apache pour Aegir

Page 10: Drupal aegir AWS

4/27/2012 STRICTLY CONFIDENTIALThis document may not be distributed without the express written permission of Giving Corner

10

Page 11: Drupal aegir AWS

4/27/2012 STRICTLY CONFIDENTIALThis document may not be distributed without the express written permission of Giving Corner

11

Page 12: Drupal aegir AWS

4/27/2012 STRICTLY CONFIDENTIALThis document may not be distributed without the express written permission of Giving Corner

12

Page 13: Drupal aegir AWS

4/27/2012 STRICTLY CONFIDENTIALThis document may not be distributed without the express written permission of Giving Corner

13

Page 14: Drupal aegir AWS

4/27/2012 STRICTLY CONFIDENTIALThis document may not be distributed without the express written permission of Giving Corner

14

Page 15: Drupal aegir AWS

4/27/2012 STRICTLY CONFIDENTIALThis document may not be distributed without the express written permission of Giving Corner

15

Page 16: Drupal aegir AWS

4/27/2012 STRICTLY CONFIDENTIALThis document may not be distributed without the express written permission of Giving Corner

16

Page 17: Drupal aegir AWS

4/27/2012 STRICTLY CONFIDENTIALThis document may not be distributed without the express written permission of Giving Corner

17

Page 18: Drupal aegir AWS

4/27/2012 STRICTLY CONFIDENTIALThis document may not be distributed without the express written permission of Giving Corner

18

Page 19: Drupal aegir AWS

4/27/2012 STRICTLY CONFIDENTIALThis document may not be distributed without the express written permission of Giving Corner

19

Page 20: Drupal aegir AWS

4/27/2012 STRICTLY CONFIDENTIALThis document may not be distributed without the express written permission of Giving Corner

Page 21: Drupal aegir AWS

The Whole Enchilada: Une infrastructure complète, redondante, et performante sur AWS

STRICTLY CONFIDENTIALThis document may not be distributed without the express written permission of Giving Corner

21

AWS Elastic Load B

alancer avec term

ination SSL

Cluster(s) Apache en Autoscale sur AWS EC2

Base AWS RDS Multi AZ

(redondant)

File Servers sur AWS EC2

AWS Elasticache

AWS EBS

Backups sur AWS S3

Cloud AWS Stockage

virtualisé

Stockage pérenne

Instance EC2 avec Apache pour Aegir

AWS SES

AWS Route 53

DNS

Page 22: Drupal aegir AWS

22

Cluster Autoscaling sur AWS avec Aegir: Quelques points

• Création d’une image machine « AMI » standard pour la création d’instances à la volée

• Paramétrage AWS de groupe d’autoscale et ses conditions

• Répertoire « sites » de chaque plateforme sur disque partagé (NFS, GlusterFS, …) → utiliser script Drush

• Mise à jour des plateformes poussée à chaque instance du clusteur au moment de son instantiation

• Aegir ne communique à qu’une seule instance « maitre » → les changements dans la BDD et le fichier partagé sont reprises par tous les autres instances « esclaves »

Page 23: Drupal aegir AWS

STRICTLY CONFIDENTIALThis document may not be distributed without the express written permission of Giving Corner

Contacts:

Tim LOVELOCK [email protected] tel: +33 (0)685870854

Giving Corner SAS 27 rue du Chemin Vert 75011 Paris, France www.givingcorner.com