Présentation séminaire novembre 2011 - Drupal 7 / Drupal commerce
Drupal aegir AWS
-
Upload
drupal-asso-france -
Category
Technology
-
view
2.581 -
download
0
description
Transcript of Drupal aegir AWS
Drupal, Aegir, et Amazon Web Services : une équipe gagnante pour le SaaS
Drupal Meetup 2012-04-26
2
Giving Corner: une motivation et récompense humanitaire …
… Animé par une plateforme collaborative, développée sous Drupal
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)
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
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
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
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
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
4/27/2012 STRICTLY CONFIDENTIALThis document may not be distributed without the express written permission of Giving Corner
10
4/27/2012 STRICTLY CONFIDENTIALThis document may not be distributed without the express written permission of Giving Corner
11
4/27/2012 STRICTLY CONFIDENTIALThis document may not be distributed without the express written permission of Giving Corner
12
4/27/2012 STRICTLY CONFIDENTIALThis document may not be distributed without the express written permission of Giving Corner
13
4/27/2012 STRICTLY CONFIDENTIALThis document may not be distributed without the express written permission of Giving Corner
14
4/27/2012 STRICTLY CONFIDENTIALThis document may not be distributed without the express written permission of Giving Corner
15
4/27/2012 STRICTLY CONFIDENTIALThis document may not be distributed without the express written permission of Giving Corner
16
4/27/2012 STRICTLY CONFIDENTIALThis document may not be distributed without the express written permission of Giving Corner
17
4/27/2012 STRICTLY CONFIDENTIALThis document may not be distributed without the express written permission of Giving Corner
18
4/27/2012 STRICTLY CONFIDENTIALThis document may not be distributed without the express written permission of Giving Corner
19
4/27/2012 STRICTLY CONFIDENTIALThis document may not be distributed without the express written permission of Giving Corner
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
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 »
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