SlideShare una empresa de Scribd logo
1 de 41
Descargar para leer sin conexión
IG technologie
                      Problématique

MySQL : RDS vs EC2          Amazon
                                 ...




MySQL et Amazon :
         RDS vs EC2
     IG technologie / AWS-ug
IG technologie    Prestations, domaines d’activité
                              Problématique

         MySQL : RDS vs EC2
                              Fonctionnalités
                                           ...




‣ Guillaume Plessis, IG technologie
 ‣ Prestations
   ‣ Audit / conseil
   ‣ Infogérance
   ‣ Développement
 ‣ Domaines d’activité
   ‣ Open Source
   ‣ Cloud Computing
IG technologie     RDS vs EC2
                     Problématique

MySQL : RDS vs EC2
                     Fonctionnalités
                                  ...
IG technologie     RDS vs EC2
                         Problématique

MySQL : RDS vs EC2
                         Fonctionnalités
                                      ...




                     +



                ?
IG technologie     RDS vs EC2
                         Problématique

MySQL : RDS vs EC2
                         Fonctionnalités
                                      ...




                     +


RDS
                ?
IG technologie     RDS vs EC2
                         Problématique

MySQL : RDS vs EC2
                         Fonctionnalités
                                      ...




                     +


RDS
                ?            EC2
Problématique
                                             Fonctionnalités

            MySQL : RDS vs EC2
                                                      Coûts
                                                          ...




‣ Fonctionnalités

                                   RDS                          EC2

     stockage persistant                               possible (EBS)

         snapshots                            possibles (EBS, XFS, LVM)

    Moteurs de stockage          standards              «pluggable»

            UDF

     Haute-disponibilité                                   possible
Fonctionnalités
                                                              Coûts

            MySQL : RDS vs EC2
                                                     Performances
                                            Conclusion / questions?




‣ Coûts : comparaison sur us-east1
 ‣ instances                       RDS                                EC2
           small                 0,11 $US                      0,085 $US
           large                 0,44 $US                       0,34 $US
           xlarge                0,88 $US                       0,68 $US
          2xlarge                1,55 $US                       1,20 $US
          4xlarge                3,10 $US                       2,40 $US




 ‣ stockage                        RDS                                EC2
     stockage (Go.mois)          0,10 $US                       0,10 $US
        million d’I/O            0,10 $US                       0,10 $US
     snapshot (Go.mois)     0,10 ➜ 0,15  $US                    0,15 $US
Fonctionnalités
                                                              Coûts

            MySQL : RDS vs EC2
                                                     Performances
                                            Conclusion / questions?




‣ Coûts : comparaison sur us-east1
 ‣ instances                       RDS                                EC2
           small                 0,11 $US                      0,085 $US
           large                 0,44 $US                       0,34 $US
           xlarge                0,88 $US                       0,68 $US
          2xlarge                1,55 $US                       1,20 $US
          4xlarge                3,10 $US                       2,40 $US




 ‣ stockage                        RDS                                EC2
     stockage (Go.mois)          0,10 $US                       0,10 $US
        million d’I/O            0,10 $US                       0,10 $US
     snapshot (Go.mois)     0,10 ➜ 0,15  $US                    0,15 $US
Fonctionnalités   Outil : tpcc-mysql
                                      Coûts    Performances : 1ère mesure

MySQL : RDS vs EC2
                               Performances    Optimisation : disques?
                     Conclusion / questions?   ...
Fonctionnalités   Outil : tpcc-mysql
                                              Coûts    Performances : 1ère mesure

        MySQL : RDS vs EC2
                                       Performances    Optimisation : disques?
                             Conclusion / questions?   ...



‣ Performances : outil de mesure
 ‣ tpcc-mysql de Percona
   ‣ http://www.percona.com/
   ‣ http://www.mysqlperformanceblog.com/
Fonctionnalités   Outil : tpcc-mysql
                                               Coûts    Performances : 1ère mesure

         MySQL : RDS vs EC2
                                        Performances    Optimisation : disques?
                              Conclusion / questions?   ...



‣ Performances : outil de mesure
 ‣ tpcc-mysql de Percona
   ‣ http://www.percona.com/
   ‣ http://www.mysqlperformanceblog.com/
 ‣ simulation de prise de commandes
   ‣ clients, commandes, entrepôts, districts
   ‣ 10 entrepôts, 32 connexions simultanées
   ‣ 2,1Go de tables InnoDB
Fonctionnalités   Outil : tpcc-mysql
                                             Coûts    Performances : 1ère mesure

       MySQL : RDS vs EC2
                                      Performances    Optimisation : disques?
                            Conclusion / questions?   ...



‣ Performances : modèle de données
Fonctionnalités   Outil : tpcc-mysql
                                      Coûts    Performances : 1ère mesure

MySQL : RDS vs EC2
                               Performances    Optimisation : disques?
                     Conclusion / questions?   ...
Fonctionnalités   Outil : tpcc-mysql
                                              Coûts    Performances : 1ère mesure

        MySQL : RDS vs EC2
                                       Performances    Optimisation : disques?
                             Conclusion / questions?   ...



‣ Performances : «out of the box»
 ‣ instances db.m2.4xlarge et m2.4xlarge
 ‣ Debian GNU/Linux 5.0.4 «Lenny» 64bits
 ‣ MySQL 5.1.42 (built-in InnoDB)
Fonctionnalités   Outil : tpcc-mysql
                                              Coûts    Performances : 1ère mesure

        MySQL : RDS vs EC2
                                       Performances    Optimisation : disques?
                             Conclusion / questions?   ...



‣ Performances : «out of the box»
 ‣ instances db.m2.4xlarge et m2.4xlarge
 ‣ Debian GNU/Linux 5.0.4 «Lenny» 64bits
 ‣ MySQL 5.1.42 (built-in InnoDB)




                   5 919 | 18 144
Fonctionnalités   Outil : tpcc-mysql
                                              Coûts    Performances : 1ère mesure

        MySQL : RDS vs EC2
                                       Performances    Optimisation : disques?
                             Conclusion / questions?   ...



‣ Performances : «out of the box»
 ‣ instances db.m2.4xlarge et m2.4xlarge
 ‣ Debian GNU/Linux 5.0.4 «Lenny» 64bits
 ‣ MySQL 5.1.42 (built-in InnoDB)
                                                                       +206%




                   5 919 | 18 144
Fonctionnalités   Performances : 1ère mesure
                                      Coûts    Optimisation : disques?

MySQL : RDS vs EC2
                               Performances    Optimisation : plugin InnoDB
                     Conclusion / questions?   ...
Fonctionnalités   Performances : 1ère mesure
                                              Coûts    Optimisation : disques?

        MySQL : RDS vs EC2
                                       Performances    Optimisation : plugin InnoDB
                             Conclusion / questions?   ...



‣ Optimisation : disques?
 ‣ disque local vs EBS (sans RAID)
Fonctionnalités   Performances : 1ère mesure
                                              Coûts    Optimisation : disques?

        MySQL : RDS vs EC2
                                       Performances    Optimisation : plugin InnoDB
                             Conclusion / questions?   ...



‣ Optimisation : disques?
 ‣ disque local vs EBS (sans RAID)
Fonctionnalités   Performances : 1ère mesure
                                              Coûts    Optimisation : disques?

        MySQL : RDS vs EC2
                                       Performances    Optimisation : plugin InnoDB
                             Conclusion / questions?   ...



‣ Optimisation : disques?
 ‣ disque local vs EBS (sans RAID)
                                                                          +0%
Fonctionnalités   Performances : 1ère mesure
                                              Coûts    Optimisation : disques?

        MySQL : RDS vs EC2
                                       Performances    Optimisation : plugin InnoDB
                             Conclusion / questions?   ...



‣ Optimisation : disques?
 ‣ disque local vs EBS (sans RAID)
                                                                          +0%




 ‣ ordonnanceur disque
   ‣ noop, deadline, CFQ
   ‣ non applicable
Fonctionnalités   Optimisation : disques?
                                      Coûts    Optimisation : plugin InnoDB

MySQL : RDS vs EC2
                               Performances    Optimisation : Google Perftools
                     Conclusion / questions?   Performances : bilan
Fonctionnalités   Optimisation : disques?
                                              Coûts    Optimisation : plugin InnoDB

        MySQL : RDS vs EC2
                                       Performances    Optimisation : Google Perftools
                             Conclusion / questions?   Performances : bilan



‣ Optimisation : plugin InnoDB
 ‣ la version embarquée de InnoDB est obsolète
Fonctionnalités   Optimisation : disques?
                                               Coûts    Optimisation : plugin InnoDB

         MySQL : RDS vs EC2
                                        Performances    Optimisation : Google Perftools
                              Conclusion / questions?   Performances : bilan



‣ Optimisation : plugin InnoDB
 ‣ la version embarquée de InnoDB est obsolète
 ‣ substitution aisée en faveur du plugin InnoDB
Fonctionnalités   Optimisation : disques?
                                               Coûts    Optimisation : plugin InnoDB

         MySQL : RDS vs EC2
                                        Performances    Optimisation : Google Perftools
                              Conclusion / questions?   Performances : bilan



‣ Optimisation : plugin InnoDB
 ‣ la version embarquée de InnoDB est obsolète
 ‣ substitution aisée en faveur du plugin InnoDB


 ‣ meilleures performances
Fonctionnalités   Optimisation : disques?
                                               Coûts    Optimisation : plugin InnoDB

         MySQL : RDS vs EC2
                                        Performances    Optimisation : Google Perftools
                              Conclusion / questions?   Performances : bilan



‣ Optimisation : plugin InnoDB
 ‣ la version embarquée de InnoDB est obsolète
 ‣ substitution aisée en faveur du plugin InnoDB


 ‣ meilleures performances




                   18 144 | 25 847
Fonctionnalités   Optimisation : disques?
                                               Coûts    Optimisation : plugin InnoDB

         MySQL : RDS vs EC2
                                        Performances    Optimisation : Google Perftools
                              Conclusion / questions?   Performances : bilan



‣ Optimisation : plugin InnoDB
 ‣ la version embarquée de InnoDB est obsolète
 ‣ substitution aisée en faveur du plugin InnoDB


 ‣ meilleures performances                                                +42%




                   18 144 | 25 847
Fonctionnalités   Optimisation : disques?
                                      Coûts    Optimisation : plugin InnoDB

MySQL : RDS vs EC2
                               Performances    Optimisation : Google Perftools
                     Conclusion / questions?   Performances : bilan
Fonctionnalités   Optimisation : disques?
                                               Coûts    Optimisation : plugin InnoDB

         MySQL : RDS vs EC2
                                        Performances    Optimisation : Google Perftools
                              Conclusion / questions?   Performances : bilan



‣ Optimisation : Google Perftools
 ‣ tcmalloc() plus véloce que malloc()
 ‣ défini à la compilation ou via ldconfig
 ‣ effets de bord sur systèmes virtualisés
Fonctionnalités   Optimisation : disques?
                                               Coûts    Optimisation : plugin InnoDB

         MySQL : RDS vs EC2
                                        Performances    Optimisation : Google Perftools
                              Conclusion / questions?   Performances : bilan



‣ Optimisation : Google Perftools
 ‣ tcmalloc() plus véloce que malloc()
 ‣ défini à la compilation ou via ldconfig
 ‣ effets de bord sur systèmes virtualisés




                   25 847 | 21 914
Fonctionnalités   Optimisation : disques?
                                               Coûts    Optimisation : plugin InnoDB

         MySQL : RDS vs EC2
                                        Performances    Optimisation : Google Perftools
                              Conclusion / questions?   Performances : bilan



‣ Optimisation : Google Perftools
 ‣ tcmalloc() plus véloce que malloc()
 ‣ défini à la compilation ou via ldconfig
 ‣ effets de bord sur systèmes virtualisés
                                                                            -15%




                   25 847 | 21 914
Fonctionnalités   Optimisation : disques?
                                      Coûts    Optimisation : plugin InnoDB

MySQL : RDS vs EC2
                               Performances    Optimisation : Google Perftools
                     Conclusion / questions?   Performances : bilan
Fonctionnalités   Optimisation : disques?
                                               Coûts    Optimisation : plugin InnoDB

         MySQL : RDS vs EC2
                                        Performances    Optimisation : Google Perftools
                              Conclusion / questions?   Performances : bilan



‣ Performances : bilan après optimisation
 ‣ travail sur les disques (RAID, schedulers, FS...)
 ‣ plugin InnoDB
 ‣ Google Perftools : tcmalloc()
Fonctionnalités   Optimisation : disques?
                                               Coûts    Optimisation : plugin InnoDB

         MySQL : RDS vs EC2
                                        Performances    Optimisation : Google Perftools
                              Conclusion / questions?   Performances : bilan



‣ Performances : bilan après optimisation
 ‣ travail sur les disques (RAID, schedulers, FS...)
 ‣ plugin InnoDB
 ‣ Google Perftools : tcmalloc()




                    5 919 | 21 914
Fonctionnalités   Optimisation : disques?
                                               Coûts    Optimisation : plugin InnoDB

         MySQL : RDS vs EC2
                                        Performances    Optimisation : Google Perftools
                              Conclusion / questions?   Performances : bilan



‣ Performances : bilan après optimisation
 ‣ travail sur les disques (RAID, schedulers, FS...)
 ‣ plugin InnoDB
 ‣ Google Perftools : tcmalloc()

                                                                         +270%




                    5 919 | 21 914
Fonctionnalités
                                       Coûts

MySQL : RDS vs EC2             Performances
                     Conclusion / questions?
Fonctionnalités
                                           Coûts

MySQL : RDS vs EC2                 Performances
                         Conclusion / questions?




                     +
RDS                                   EC2
Fonctionnalités
                                             Coûts

  MySQL : RDS vs EC2                 Performances
                           Conclusion / questions?




                       +
RDS                                     EC2
clé en main
Fonctionnalités
                                             Coûts

  MySQL : RDS vs EC2                 Performances
                           Conclusion / questions?




                       +
RDS                                     EC2
clé en main                        performance
Fonctionnalités
                                          Coûts

   MySQL : RDS vs EC2             Performances
                        Conclusion / questions?




               Questions?

guillaume.plessis@igtechnologie.com

Más contenido relacionado

Similar a My sql et amazon rds vs ec2 (par g plessis ig technologies)

Continuous cloud costs testing [Fr] - DevoxxFR - 2013-03
Continuous cloud costs testing [Fr] - DevoxxFR - 2013-03Continuous cloud costs testing [Fr] - DevoxxFR - 2013-03
Continuous cloud costs testing [Fr] - DevoxxFR - 2013-03Nicolas Fonrose
 
XebiCon'17 : Serverless is the new back - Jérémy Pinsolle et Gérôme Egron
XebiCon'17 : Serverless is the new back - Jérémy Pinsolle et Gérôme EgronXebiCon'17 : Serverless is the new back - Jérémy Pinsolle et Gérôme Egron
XebiCon'17 : Serverless is the new back - Jérémy Pinsolle et Gérôme EgronPublicis Sapient Engineering
 
Gibtalk aws
Gibtalk awsGibtalk aws
Gibtalk awsmeliphen
 
Construire des Applications Web Performantes - Rule Book Webinar
Construire des Applications Web Performantes - Rule Book WebinarConstruire des Applications Web Performantes - Rule Book Webinar
Construire des Applications Web Performantes - Rule Book WebinarAmazon Web Services
 
Introduction aux bases de données NoSQL
Introduction aux bases de données NoSQLIntroduction aux bases de données NoSQL
Introduction aux bases de données NoSQLAntoine Augusti
 
Les clouds, du buzz à la vraie science
Les clouds, du buzz à la vraie scienceLes clouds, du buzz à la vraie science
Les clouds, du buzz à la vraie scienceFrederic Desprez
 
No sql, au-delà du buzz
No sql, au-delà du buzzNo sql, au-delà du buzz
No sql, au-delà du buzznaholyr
 
AWS Paris Summit 2014 - T2 - Optimisation du coût total de possession avec AWS
AWS Paris Summit 2014 - T2 - Optimisation du coût total de possession avec AWSAWS Paris Summit 2014 - T2 - Optimisation du coût total de possession avec AWS
AWS Paris Summit 2014 - T2 - Optimisation du coût total de possession avec AWSAmazon Web Services
 
cours06-nosql.pdf
cours06-nosql.pdfcours06-nosql.pdf
cours06-nosql.pdfhbadir
 
20120402 nantes gtug - app engine
20120402   nantes gtug - app engine20120402   nantes gtug - app engine
20120402 nantes gtug - app engineGDG Nantes
 
BBL - Monitoring - kyriba
BBL - Monitoring - kyribaBBL - Monitoring - kyriba
BBL - Monitoring - kyribaOlivier BAZOUD
 
Introduction nosql
Introduction nosqlIntroduction nosql
Introduction nosqlInes Slimene
 
Lost in serverless AWS Lambda, Google Cloud Function, Azure Function quelle s...
Lost in serverless AWS Lambda, Google Cloud Function, Azure Function quelle s...Lost in serverless AWS Lambda, Google Cloud Function, Azure Function quelle s...
Lost in serverless AWS Lambda, Google Cloud Function, Azure Function quelle s...sebastienmoreno
 
Comment passer d'un POC en prod @ plusieurs milliards de rêquetes
Comment passer d'un POC en prod @ plusieurs milliards de rêquetesComment passer d'un POC en prod @ plusieurs milliards de rêquetes
Comment passer d'un POC en prod @ plusieurs milliards de rêquetesCarles Sistare
 
Optimisations et Performances d'un POC en prod @ plusieurs milliards de requê...
Optimisations et Performances d'un POC en prod @ plusieurs milliards de requê...Optimisations et Performances d'un POC en prod @ plusieurs milliards de requê...
Optimisations et Performances d'un POC en prod @ plusieurs milliards de requê...David Caramelo
 
Drupal et le NoSQL - drupagora 2011
Drupal et le NoSQL - drupagora 2011Drupal et le NoSQL - drupagora 2011
Drupal et le NoSQL - drupagora 2011OSInet
 

Similar a My sql et amazon rds vs ec2 (par g plessis ig technologies) (20)

Continuous cloud costs testing [Fr] - DevoxxFR - 2013-03
Continuous cloud costs testing [Fr] - DevoxxFR - 2013-03Continuous cloud costs testing [Fr] - DevoxxFR - 2013-03
Continuous cloud costs testing [Fr] - DevoxxFR - 2013-03
 
XebiCon'17 : Serverless is the new back - Jérémy Pinsolle et Gérôme Egron
XebiCon'17 : Serverless is the new back - Jérémy Pinsolle et Gérôme EgronXebiCon'17 : Serverless is the new back - Jérémy Pinsolle et Gérôme Egron
XebiCon'17 : Serverless is the new back - Jérémy Pinsolle et Gérôme Egron
 
Gibtalk aws
Gibtalk awsGibtalk aws
Gibtalk aws
 
Construire des Applications Web Performantes - Rule Book Webinar
Construire des Applications Web Performantes - Rule Book WebinarConstruire des Applications Web Performantes - Rule Book Webinar
Construire des Applications Web Performantes - Rule Book Webinar
 
Introduction aux bases de données NoSQL
Introduction aux bases de données NoSQLIntroduction aux bases de données NoSQL
Introduction aux bases de données NoSQL
 
Les clouds, du buzz à la vraie science
Les clouds, du buzz à la vraie scienceLes clouds, du buzz à la vraie science
Les clouds, du buzz à la vraie science
 
Cloud presentation
Cloud  presentationCloud  presentation
Cloud presentation
 
No sql, au-delà du buzz
No sql, au-delà du buzzNo sql, au-delà du buzz
No sql, au-delà du buzz
 
Kauffmann ec2
Kauffmann ec2Kauffmann ec2
Kauffmann ec2
 
Base de données
Base de donnéesBase de données
Base de données
 
AWS Paris Summit 2014 - T2 - Optimisation du coût total de possession avec AWS
AWS Paris Summit 2014 - T2 - Optimisation du coût total de possession avec AWSAWS Paris Summit 2014 - T2 - Optimisation du coût total de possession avec AWS
AWS Paris Summit 2014 - T2 - Optimisation du coût total de possession avec AWS
 
cours06-nosql.pdf
cours06-nosql.pdfcours06-nosql.pdf
cours06-nosql.pdf
 
20120402 nantes gtug - app engine
20120402   nantes gtug - app engine20120402   nantes gtug - app engine
20120402 nantes gtug - app engine
 
BBL - Monitoring - kyriba
BBL - Monitoring - kyribaBBL - Monitoring - kyriba
BBL - Monitoring - kyriba
 
Introduction nosql
Introduction nosqlIntroduction nosql
Introduction nosql
 
Tech Round Table
Tech Round TableTech Round Table
Tech Round Table
 
Lost in serverless AWS Lambda, Google Cloud Function, Azure Function quelle s...
Lost in serverless AWS Lambda, Google Cloud Function, Azure Function quelle s...Lost in serverless AWS Lambda, Google Cloud Function, Azure Function quelle s...
Lost in serverless AWS Lambda, Google Cloud Function, Azure Function quelle s...
 
Comment passer d'un POC en prod @ plusieurs milliards de rêquetes
Comment passer d'un POC en prod @ plusieurs milliards de rêquetesComment passer d'un POC en prod @ plusieurs milliards de rêquetes
Comment passer d'un POC en prod @ plusieurs milliards de rêquetes
 
Optimisations et Performances d'un POC en prod @ plusieurs milliards de requê...
Optimisations et Performances d'un POC en prod @ plusieurs milliards de requê...Optimisations et Performances d'un POC en prod @ plusieurs milliards de requê...
Optimisations et Performances d'un POC en prod @ plusieurs milliards de requê...
 
Drupal et le NoSQL - drupagora 2011
Drupal et le NoSQL - drupagora 2011Drupal et le NoSQL - drupagora 2011
Drupal et le NoSQL - drupagora 2011
 

Más de Ysance

2010 architecting for the cloud
2010 architecting for the cloud2010 architecting for the cloud
2010 architecting for the cloudYsance
 
Crm acceleration paris-may2010- presentation de larry augustin
Crm acceleration paris-may2010- presentation de larry augustinCrm acceleration paris-may2010- presentation de larry augustin
Crm acceleration paris-may2010- presentation de larry augustinYsance
 
Crm acceleration presentation de philippe nieuwbourg
Crm acceleration presentation de philippe nieuwbourgCrm acceleration presentation de philippe nieuwbourg
Crm acceleration presentation de philippe nieuwbourgYsance
 
Présentation aw sguillame plessi (2)
Présentation aw sguillame plessi (2)Présentation aw sguillame plessi (2)
Présentation aw sguillame plessi (2)Ysance
 
Ysance conference - cloud computing - aws - 3 mai 2010
Ysance   conference - cloud computing - aws - 3 mai 2010Ysance   conference - cloud computing - aws - 3 mai 2010
Ysance conference - cloud computing - aws - 3 mai 2010Ysance
 
Annonce Développeur PHP
Annonce Développeur PHPAnnonce Développeur PHP
Annonce Développeur PHPYsance
 
Annonce Développeur Magento Senior
Annonce Développeur Magento SeniorAnnonce Développeur Magento Senior
Annonce Développeur Magento SeniorYsance
 
Annonce Développeur Magento
Annonce Développeur MagentoAnnonce Développeur Magento
Annonce Développeur MagentoYsance
 
Annonce Architecte Logiciel
Annonce Architecte LogicielAnnonce Architecte Logiciel
Annonce Architecte LogicielYsance
 
Annonce Stagiaire BI
Annonce Stagiaire BIAnnonce Stagiaire BI
Annonce Stagiaire BIYsance
 
Qlik view centre de contact
Qlik view centre de contact Qlik view centre de contact
Qlik view centre de contact Ysance
 
Annonce Consultant BI Junior
Annonce Consultant BI JuniorAnnonce Consultant BI Junior
Annonce Consultant BI JuniorYsance
 
Crm acceleration france 2010 cloud et crm
Crm acceleration france 2010   cloud et crmCrm acceleration france 2010   cloud et crm
Crm acceleration france 2010 cloud et crmYsance
 
Annonce Ingénieur d'Affaires
Annonce Ingénieur d'AffairesAnnonce Ingénieur d'Affaires
Annonce Ingénieur d'AffairesYsance
 

Más de Ysance (14)

2010 architecting for the cloud
2010 architecting for the cloud2010 architecting for the cloud
2010 architecting for the cloud
 
Crm acceleration paris-may2010- presentation de larry augustin
Crm acceleration paris-may2010- presentation de larry augustinCrm acceleration paris-may2010- presentation de larry augustin
Crm acceleration paris-may2010- presentation de larry augustin
 
Crm acceleration presentation de philippe nieuwbourg
Crm acceleration presentation de philippe nieuwbourgCrm acceleration presentation de philippe nieuwbourg
Crm acceleration presentation de philippe nieuwbourg
 
Présentation aw sguillame plessi (2)
Présentation aw sguillame plessi (2)Présentation aw sguillame plessi (2)
Présentation aw sguillame plessi (2)
 
Ysance conference - cloud computing - aws - 3 mai 2010
Ysance   conference - cloud computing - aws - 3 mai 2010Ysance   conference - cloud computing - aws - 3 mai 2010
Ysance conference - cloud computing - aws - 3 mai 2010
 
Annonce Développeur PHP
Annonce Développeur PHPAnnonce Développeur PHP
Annonce Développeur PHP
 
Annonce Développeur Magento Senior
Annonce Développeur Magento SeniorAnnonce Développeur Magento Senior
Annonce Développeur Magento Senior
 
Annonce Développeur Magento
Annonce Développeur MagentoAnnonce Développeur Magento
Annonce Développeur Magento
 
Annonce Architecte Logiciel
Annonce Architecte LogicielAnnonce Architecte Logiciel
Annonce Architecte Logiciel
 
Annonce Stagiaire BI
Annonce Stagiaire BIAnnonce Stagiaire BI
Annonce Stagiaire BI
 
Qlik view centre de contact
Qlik view centre de contact Qlik view centre de contact
Qlik view centre de contact
 
Annonce Consultant BI Junior
Annonce Consultant BI JuniorAnnonce Consultant BI Junior
Annonce Consultant BI Junior
 
Crm acceleration france 2010 cloud et crm
Crm acceleration france 2010   cloud et crmCrm acceleration france 2010   cloud et crm
Crm acceleration france 2010 cloud et crm
 
Annonce Ingénieur d'Affaires
Annonce Ingénieur d'AffairesAnnonce Ingénieur d'Affaires
Annonce Ingénieur d'Affaires
 

My sql et amazon rds vs ec2 (par g plessis ig technologies)

  • 1. IG technologie Problématique MySQL : RDS vs EC2 Amazon ... MySQL et Amazon : RDS vs EC2 IG technologie / AWS-ug
  • 2. IG technologie Prestations, domaines d’activité Problématique MySQL : RDS vs EC2 Fonctionnalités ... ‣ Guillaume Plessis, IG technologie ‣ Prestations ‣ Audit / conseil ‣ Infogérance ‣ Développement ‣ Domaines d’activité ‣ Open Source ‣ Cloud Computing
  • 3. IG technologie RDS vs EC2 Problématique MySQL : RDS vs EC2 Fonctionnalités ...
  • 4. IG technologie RDS vs EC2 Problématique MySQL : RDS vs EC2 Fonctionnalités ... + ?
  • 5. IG technologie RDS vs EC2 Problématique MySQL : RDS vs EC2 Fonctionnalités ... + RDS ?
  • 6. IG technologie RDS vs EC2 Problématique MySQL : RDS vs EC2 Fonctionnalités ... + RDS ? EC2
  • 7. Problématique Fonctionnalités MySQL : RDS vs EC2 Coûts ... ‣ Fonctionnalités RDS EC2 stockage persistant possible (EBS) snapshots possibles (EBS, XFS, LVM) Moteurs de stockage standards «pluggable» UDF Haute-disponibilité possible
  • 8. Fonctionnalités Coûts MySQL : RDS vs EC2 Performances Conclusion / questions? ‣ Coûts : comparaison sur us-east1 ‣ instances RDS EC2 small 0,11 $US 0,085 $US large 0,44 $US 0,34 $US xlarge 0,88 $US 0,68 $US 2xlarge 1,55 $US 1,20 $US 4xlarge 3,10 $US 2,40 $US ‣ stockage RDS EC2 stockage (Go.mois) 0,10 $US 0,10 $US million d’I/O 0,10 $US 0,10 $US snapshot (Go.mois) 0,10 ➜ 0,15  $US 0,15 $US
  • 9. Fonctionnalités Coûts MySQL : RDS vs EC2 Performances Conclusion / questions? ‣ Coûts : comparaison sur us-east1 ‣ instances RDS EC2 small 0,11 $US 0,085 $US large 0,44 $US 0,34 $US xlarge 0,88 $US 0,68 $US 2xlarge 1,55 $US 1,20 $US 4xlarge 3,10 $US 2,40 $US ‣ stockage RDS EC2 stockage (Go.mois) 0,10 $US 0,10 $US million d’I/O 0,10 $US 0,10 $US snapshot (Go.mois) 0,10 ➜ 0,15  $US 0,15 $US
  • 10. Fonctionnalités Outil : tpcc-mysql Coûts Performances : 1ère mesure MySQL : RDS vs EC2 Performances Optimisation : disques? Conclusion / questions? ...
  • 11. Fonctionnalités Outil : tpcc-mysql Coûts Performances : 1ère mesure MySQL : RDS vs EC2 Performances Optimisation : disques? Conclusion / questions? ... ‣ Performances : outil de mesure ‣ tpcc-mysql de Percona ‣ http://www.percona.com/ ‣ http://www.mysqlperformanceblog.com/
  • 12. Fonctionnalités Outil : tpcc-mysql Coûts Performances : 1ère mesure MySQL : RDS vs EC2 Performances Optimisation : disques? Conclusion / questions? ... ‣ Performances : outil de mesure ‣ tpcc-mysql de Percona ‣ http://www.percona.com/ ‣ http://www.mysqlperformanceblog.com/ ‣ simulation de prise de commandes ‣ clients, commandes, entrepôts, districts ‣ 10 entrepôts, 32 connexions simultanées ‣ 2,1Go de tables InnoDB
  • 13. Fonctionnalités Outil : tpcc-mysql Coûts Performances : 1ère mesure MySQL : RDS vs EC2 Performances Optimisation : disques? Conclusion / questions? ... ‣ Performances : modèle de données
  • 14. Fonctionnalités Outil : tpcc-mysql Coûts Performances : 1ère mesure MySQL : RDS vs EC2 Performances Optimisation : disques? Conclusion / questions? ...
  • 15. Fonctionnalités Outil : tpcc-mysql Coûts Performances : 1ère mesure MySQL : RDS vs EC2 Performances Optimisation : disques? Conclusion / questions? ... ‣ Performances : «out of the box» ‣ instances db.m2.4xlarge et m2.4xlarge ‣ Debian GNU/Linux 5.0.4 «Lenny» 64bits ‣ MySQL 5.1.42 (built-in InnoDB)
  • 16. Fonctionnalités Outil : tpcc-mysql Coûts Performances : 1ère mesure MySQL : RDS vs EC2 Performances Optimisation : disques? Conclusion / questions? ... ‣ Performances : «out of the box» ‣ instances db.m2.4xlarge et m2.4xlarge ‣ Debian GNU/Linux 5.0.4 «Lenny» 64bits ‣ MySQL 5.1.42 (built-in InnoDB) 5 919 | 18 144
  • 17. Fonctionnalités Outil : tpcc-mysql Coûts Performances : 1ère mesure MySQL : RDS vs EC2 Performances Optimisation : disques? Conclusion / questions? ... ‣ Performances : «out of the box» ‣ instances db.m2.4xlarge et m2.4xlarge ‣ Debian GNU/Linux 5.0.4 «Lenny» 64bits ‣ MySQL 5.1.42 (built-in InnoDB) +206% 5 919 | 18 144
  • 18. Fonctionnalités Performances : 1ère mesure Coûts Optimisation : disques? MySQL : RDS vs EC2 Performances Optimisation : plugin InnoDB Conclusion / questions? ...
  • 19. Fonctionnalités Performances : 1ère mesure Coûts Optimisation : disques? MySQL : RDS vs EC2 Performances Optimisation : plugin InnoDB Conclusion / questions? ... ‣ Optimisation : disques? ‣ disque local vs EBS (sans RAID)
  • 20. Fonctionnalités Performances : 1ère mesure Coûts Optimisation : disques? MySQL : RDS vs EC2 Performances Optimisation : plugin InnoDB Conclusion / questions? ... ‣ Optimisation : disques? ‣ disque local vs EBS (sans RAID)
  • 21. Fonctionnalités Performances : 1ère mesure Coûts Optimisation : disques? MySQL : RDS vs EC2 Performances Optimisation : plugin InnoDB Conclusion / questions? ... ‣ Optimisation : disques? ‣ disque local vs EBS (sans RAID) +0%
  • 22. Fonctionnalités Performances : 1ère mesure Coûts Optimisation : disques? MySQL : RDS vs EC2 Performances Optimisation : plugin InnoDB Conclusion / questions? ... ‣ Optimisation : disques? ‣ disque local vs EBS (sans RAID) +0% ‣ ordonnanceur disque ‣ noop, deadline, CFQ ‣ non applicable
  • 23. Fonctionnalités Optimisation : disques? Coûts Optimisation : plugin InnoDB MySQL : RDS vs EC2 Performances Optimisation : Google Perftools Conclusion / questions? Performances : bilan
  • 24. Fonctionnalités Optimisation : disques? Coûts Optimisation : plugin InnoDB MySQL : RDS vs EC2 Performances Optimisation : Google Perftools Conclusion / questions? Performances : bilan ‣ Optimisation : plugin InnoDB ‣ la version embarquée de InnoDB est obsolète
  • 25. Fonctionnalités Optimisation : disques? Coûts Optimisation : plugin InnoDB MySQL : RDS vs EC2 Performances Optimisation : Google Perftools Conclusion / questions? Performances : bilan ‣ Optimisation : plugin InnoDB ‣ la version embarquée de InnoDB est obsolète ‣ substitution aisée en faveur du plugin InnoDB
  • 26. Fonctionnalités Optimisation : disques? Coûts Optimisation : plugin InnoDB MySQL : RDS vs EC2 Performances Optimisation : Google Perftools Conclusion / questions? Performances : bilan ‣ Optimisation : plugin InnoDB ‣ la version embarquée de InnoDB est obsolète ‣ substitution aisée en faveur du plugin InnoDB ‣ meilleures performances
  • 27. Fonctionnalités Optimisation : disques? Coûts Optimisation : plugin InnoDB MySQL : RDS vs EC2 Performances Optimisation : Google Perftools Conclusion / questions? Performances : bilan ‣ Optimisation : plugin InnoDB ‣ la version embarquée de InnoDB est obsolète ‣ substitution aisée en faveur du plugin InnoDB ‣ meilleures performances 18 144 | 25 847
  • 28. Fonctionnalités Optimisation : disques? Coûts Optimisation : plugin InnoDB MySQL : RDS vs EC2 Performances Optimisation : Google Perftools Conclusion / questions? Performances : bilan ‣ Optimisation : plugin InnoDB ‣ la version embarquée de InnoDB est obsolète ‣ substitution aisée en faveur du plugin InnoDB ‣ meilleures performances +42% 18 144 | 25 847
  • 29. Fonctionnalités Optimisation : disques? Coûts Optimisation : plugin InnoDB MySQL : RDS vs EC2 Performances Optimisation : Google Perftools Conclusion / questions? Performances : bilan
  • 30. Fonctionnalités Optimisation : disques? Coûts Optimisation : plugin InnoDB MySQL : RDS vs EC2 Performances Optimisation : Google Perftools Conclusion / questions? Performances : bilan ‣ Optimisation : Google Perftools ‣ tcmalloc() plus véloce que malloc() ‣ défini à la compilation ou via ldconfig ‣ effets de bord sur systèmes virtualisés
  • 31. Fonctionnalités Optimisation : disques? Coûts Optimisation : plugin InnoDB MySQL : RDS vs EC2 Performances Optimisation : Google Perftools Conclusion / questions? Performances : bilan ‣ Optimisation : Google Perftools ‣ tcmalloc() plus véloce que malloc() ‣ défini à la compilation ou via ldconfig ‣ effets de bord sur systèmes virtualisés 25 847 | 21 914
  • 32. Fonctionnalités Optimisation : disques? Coûts Optimisation : plugin InnoDB MySQL : RDS vs EC2 Performances Optimisation : Google Perftools Conclusion / questions? Performances : bilan ‣ Optimisation : Google Perftools ‣ tcmalloc() plus véloce que malloc() ‣ défini à la compilation ou via ldconfig ‣ effets de bord sur systèmes virtualisés -15% 25 847 | 21 914
  • 33. Fonctionnalités Optimisation : disques? Coûts Optimisation : plugin InnoDB MySQL : RDS vs EC2 Performances Optimisation : Google Perftools Conclusion / questions? Performances : bilan
  • 34. Fonctionnalités Optimisation : disques? Coûts Optimisation : plugin InnoDB MySQL : RDS vs EC2 Performances Optimisation : Google Perftools Conclusion / questions? Performances : bilan ‣ Performances : bilan après optimisation ‣ travail sur les disques (RAID, schedulers, FS...) ‣ plugin InnoDB ‣ Google Perftools : tcmalloc()
  • 35. Fonctionnalités Optimisation : disques? Coûts Optimisation : plugin InnoDB MySQL : RDS vs EC2 Performances Optimisation : Google Perftools Conclusion / questions? Performances : bilan ‣ Performances : bilan après optimisation ‣ travail sur les disques (RAID, schedulers, FS...) ‣ plugin InnoDB ‣ Google Perftools : tcmalloc() 5 919 | 21 914
  • 36. Fonctionnalités Optimisation : disques? Coûts Optimisation : plugin InnoDB MySQL : RDS vs EC2 Performances Optimisation : Google Perftools Conclusion / questions? Performances : bilan ‣ Performances : bilan après optimisation ‣ travail sur les disques (RAID, schedulers, FS...) ‣ plugin InnoDB ‣ Google Perftools : tcmalloc() +270% 5 919 | 21 914
  • 37. Fonctionnalités Coûts MySQL : RDS vs EC2 Performances Conclusion / questions?
  • 38. Fonctionnalités Coûts MySQL : RDS vs EC2 Performances Conclusion / questions? + RDS EC2
  • 39. Fonctionnalités Coûts MySQL : RDS vs EC2 Performances Conclusion / questions? + RDS EC2 clé en main
  • 40. Fonctionnalités Coûts MySQL : RDS vs EC2 Performances Conclusion / questions? + RDS EC2 clé en main performance
  • 41. Fonctionnalités Coûts MySQL : RDS vs EC2 Performances Conclusion / questions? Questions? guillaume.plessis@igtechnologie.com