Upload
raymond-gao
View
177
Download
1
Tags:
Embed Size (px)
DESCRIPTION
2nd presentation to IUT, University of Burgundy, Dijon, Bourgogone, France.
Citation preview
Présenter par
Raymond Gao2 Décembre, 2010
Les BoulotsArchitecte en Chef @ Nokia Business InfrastructureArchitecte Principal de Commerce Électronique @ Sun
Microsystems (Maintenant Oracle)Membre du Conseil du Projet JXTA (La technique de
calculer de pair-à-pair, comme Bit Torrent)Membre de l’Organisation JCPLeader des Utilisateurs de la technologie de Amazon Web
Services Les Publications
Rédacteur en Chef pour la Revue P2P (Jugé par des pairs)eAI Journal, Enterprise Linux, XML Journal, …
Les ConférencesJavaOne, WebServices One, Dagstuhl (Max Planck
Institute), Dresden, etc
9 Novembre, 20102010 IUT Cloud Computing Seminar 2
Le réseau social Des langues humaines et des logiciels
informatiques Des mouvements d’intérêt dans le
domaine de l’informatique L’informatique dans le nuage (Cloud
Computing) Questions & Réponses
9 Novembre, 20102010 IUT Cloud Computing Seminar 3
9 Novembre, 20102010 IUT Cloud Computing Seminar 4
Plus de 500 millions de membres actifs
Plus de 900 millions d’objets (feuilles, groupes, événements, et communautés )
Environ 70% des membres Facebook vivent dans des pays hors des Etats-Unis
9 Novembre, 20102010 IUT Cloud Computing Seminar 5
Pourcentage de personnes qui partagent leur information personnelle sur FB ◦ Pas de compte FB ◦ Basiques - par exemple, nom, date d’anniversaire,
loisirs◦ Limitées – quelques photos, information de
contact◦ Complètes – Exposer toute leur vie privée +
connexion des amis. Avez vous peur d’exposer votre vie privée?
9 Novembre, 20102010 IUT Cloud Computing Seminar 6
Pourquoi est-ce que Facebook a réussi?◦ Zucker est un génie réel;◦ Il est chanceux;◦ C’est un complot des Venture Capitalists
Americans en Californie;◦ On suit la tradition du mouvement de mai 1968;◦ Zucker est un extraterrestre; Ou Il y a vraiment une grande nécessité sociale?
9 Novembre, 20102010 IUT Cloud Computing Seminar 7
Quelles stratégies sont importantes maintenant pour FB?◦ « Facebook Graph API »◦ « Search with Google »◦ « iLike Button »
9 Novembre, 20102010 IUT Cloud Computing Seminar 8
Quelles technologies sont utilisées partout dans FB?REST APISecurity & Oauth – Authentification Unique
Quelle est votre vision de FB dans 5 ans? Le gens voudraient mieux communiquer ???
9 Novembre, 20102010 IUT Cloud Computing Seminar 9
Connaissez-vous un langage de programmation dominant dont l’origine (la syntaxe) vienne d’une autre langue?◦ Français◦ Allemand◦ Chinois◦ Russe◦ Espagnol◦ Etc.
Quel est votre avis? Je crois que No. Chaque langue a ses avantages
et limitations.
9 Novembre, 20102010 IUT Cloud Computing Seminar 10
9 Novembre, 20102010 IUT Cloud Computing Seminar 11
http://are4.us/raysblog/?p=2735
Blaise Pascal (1623 – 1662) – Mathématicien, La première machine à calculer
Gustave Coriolis (1792 – 1843) – La force de Coriolis
Pierre Simon Laplace (1749 – 1827) – La Transformation de Laplace
Joseph Fourier (1768 – 1830) – La Série et la transformation de Fourier
Henri Poincaré (1854 – 1912) – Le calcul infinitésimal
Pierre Bézier (1910 – 1999) –Cuver Bézier
9 Novembre, 20102010 IUT Cloud Computing Seminar 12
◦C – Unix◦Java – Web & .COM◦C# (Dot Net Framework) – Microsoft◦SmallTalk & LISP – Programmation
Orientée Object◦Ruby on Rails ◦PHP
9 Novembre, 20102010 IUT Cloud Computing Seminar 13
9 Novembre, 20102010 IUT Cloud Computing Seminar 14
9 Novembre, 20102010 IUT Cloud Computing Seminar 15
Le Principe d’Incertitudede Heisenberg
La Grammaire Le Vocabulaire L’Histoire La tradition Etc.
La Langue écrite -> prendre la décision d’enregistrer et de supprimer des informations.
9 Novembre, 20102010 IUT Cloud Computing Seminar 16
Le Réseau Social L’informatique dans le nuage La Mobilité (iPhone + iPad vs. Android) Le Géopositionnement Le REST API
9 Novembre, 20102010 IUT Cloud Computing Seminar 17
9 Novembre, 20102010 IUT Cloud Computing Seminar 18
https://graph.facebook.com/oauth/authorize? client_id=...& redirect_uri=http://www.example.com/oauth_redirect
9 Novembre, 20102010 IUT Cloud Computing Seminar 19
9 Novembre, 20102010 IUT Cloud Computing Seminar 20
9 Novembre, 2010 2010 IUT Cloud Computing Seminar
21
9 Novembre, 20102010 IUT Cloud Computing Seminar 22
Les
ress
ourc
es
à c
alc
ule
r
Le Temps
L’utilisationPrévue
L’utilisation Réelle
Le gaspillage
Les clients mécontents
9 Novembre, 20102010 IUT Cloud Computing Seminar 23
Num
ber
of
EC
2 Inst
ance
s
300 CPU’s on weekends
Thursday
4/23/2009
Friday4/24/2009
Sunday4/26/2009
Monday4/27/2009
Tuesday4/28/2009
Saturday4/25/2009
Wednesday4/22/2009
3000--
300 --
Calcul dans le Nuage
9 Novembre, 2010 242010 IUT Cloud Computing Seminar
9 Novembre, 20102010 IUT Cloud Computing Seminar 25
Réfléchir à votre consommation d’électricité
N’utiliser que des ressources dont vous avez besoin, par exemplele processeur, la bande passante, le stockage, la mémoire vivante, etc.
Le nuage d’informatique est comme les centrales électriques où on peut obtenir les ressources très rapidement et facilement
Définition◦ La ressource du Cloud Computing est à calcule
comme l’électricité et l’eau potable Avantages
◦ Moins Cher◦ Plus Fiable◦ Facile pour monter à charger (scalability)◦ Processus:
Très souple Reproductible
◦ Courbe d'apprentissage plutôt plate
9 Novembre, 20102010 IUT Cloud Computing Seminar 26
Entreprises TraditionnellesAmazon * – InfrastructureGoogle – App EngineIBM - WebSphereMicrosoft – Azure (dot Net)Oracle – Cloud in a boxSalesforce * – Cloud 2etc
Autres JoueursFacebook & Twitter (Enabler)RightScaleCollabHerokuEngine Yard, …
9 Novembre, 20102010 IUT Cloud Computing Seminar 27
9 Novembre, 20102010 IUT Cloud Computing Seminar 28
AWS provides flexible, scalable, secure, and cost-effective IT infrastructure for businesses of all sizes around the world.
Compute power and storage is available to you on-demand, you pay only for the resources you use…
…running on scalable, reliable, and secure infrastructure operated by Amazon Web Services, based on the knowledge gleaned from over a decade of building efficient and dependable infrastructure for Amazon.com.
2007: AWS bandwidth usage surpassed Amazon.com global websites
Today: AWS bandwidth usage 30% greater than Amazon.com global websites
Bandwidth Usage:
9 Novembre, 20102010 IUT Cloud Computing Seminar 29
9 Novembre, 20102010 IUT Cloud Computing Seminar 30
Total Number of Objects Stored in Amazon S3
2.9 Billion
14 Billion
40 Billion
102 Billion
9 Novembre, 20102010 IUT Cloud Computing Seminar 31
ComputeAmazon Elastic
Compute Cloud (EC2)-Elastic Load Balancing
-Auto Scaling
ComputeAmazon Elastic
Compute Cloud (EC2)-Elastic Load Balancing
-Auto Scaling
StorageAmazon Simple
Storage Service (S3)-AWS Import/Export
StorageAmazon Simple
Storage Service (S3)-AWS Import/Export
Your Custom Applications and ServicesYour Custom Applications and Services
Content DeliveryAmazon
CloudFront
Content DeliveryAmazon
CloudFront
MessagingAmazon Simple Queue Service
(SQS)
MessagingAmazon Simple Queue Service
(SQS)
PaymentsAmazon Flexible
Payments Service (FPS)
PaymentsAmazon Flexible
Payments Service (FPS)
On-Demand Workforce
Amazon Mechanical Turk
On-Demand Workforce
Amazon Mechanical Turk
Parallel Processing
Amazon Elastic MapReduce
Parallel Processing
Amazon Elastic MapReduce
MonitoringAmazon CloudWatch
MonitoringAmazon CloudWatch
DatabaseAmazon RDS
Amazon SimpleDB
DatabaseAmazon RDS
Amazon SimpleDB
ManagementAWS Management
Console
ManagementAWS Management
Console
ToolsAWS Toolkit for
Eclipse
ToolsAWS Toolkit for
Eclipse
Isolated NetworksAmazon Virtual Private Cloud
Isolated NetworksAmazon Virtual Private Cloud
Saturday, Oct 2nd, 20102010 DFW Cloud Computing Seminar 32
Saturday, Oct 2nd, 20102010 DFW Cloud Computing Seminar 33
9 Novembre, 20102010 IUT Cloud Computing Seminar 34
Subventions pour le cours ◦ $100 AWS crédit pour chaque étudiant
Subventions pour la recherche - 4x chaque année
Compétitions des étudiants Startup Challenge http://aws.amazon.com/education/ http://aws.amazon.com/free/
9 Novembre, 20102010 IUT Cloud Computing Seminar 35
9 Novembre, 20102010 IUT Cloud Computing Seminar 36
Temps – EC2◦ Small - $0.085/hr◦ Large - $0.34/hr◦ Extra Large – $0.68/hr
Transactions ◦ La bande passante - $0.1/GB◦ Simple DB (La base de données)
Stockage – S3◦ $0.140 per GB – 1st 1 TB/month◦ $0.125 per GB – 2nd – 49th TB/month
9 Novembre, 20102010 IUT Cloud Computing Seminar 37
9 Novembre, 20102010 IUT Cloud Computing Seminar 38
http://calculator.s3.amazonaws.com/calc5.html
Command Line Elastic Fox & S3 Fox AWS Management Console Explorers – Bucket / SimpleDB Mobile
◦ Ylastic◦ DirectEC2
Etc.
9 Novembre, 20102010 IUT Cloud Computing Seminar 39
9 Novembre, 20102010 IUT Cloud Computing Seminar 40
9 Novembre, 20102010 IUT Cloud Computing Seminar 41
RegionRegion
Availability ZoneAvailability Zone Availability ZoneAvailability Zone
Le Répartiteur de charge
Les Modes de répartition de charge
Round-robin (DNS)Les LogicielsRAID (Données)Hardware (le matériel informatique)
La Réplication de ServeurAvec mêmes données, logiciels, processeurs, ….
9 Novembre, 2010 2010 IUT Cloud Computing Seminar
42
Logging / Tracing(Historique des événements)
Validation Single Sign-on
(Authentication Unique) Data-access
(Accès aux données) Exception Handling
(Gestion d’exceptions)
9 Novembre, 20102010 IUT Cloud Computing Seminar 43
http://fr.wikipedia.org/wiki/Programmation_orientée_aspect
9 Novembre, 20102010 IUT Cloud Computing Seminar 44
Rails EnvironmentRails Environment
ASF-SOAP-AdapterASF-SOAP-Adapter
ActiveRecordActiveRecord
(Demo app)DbZilla
(Demo app)DbZilla
SOAPSOAP
Your Rails App
Each adapter has its own thread
Connected using via SOAP Interface, to be update with REST API
Force.com as a giant cloud DB
RForceRForce
demodemo Source code
Source code
Source code
Source code GEMGEM
Documentation
Documentation
Click on above images to the linksGEM Source codeDocumentationOn RubyGems
9 Novembre, 20102010 IUT Cloud Computing Seminar 45
9 Novembre, 20102010 IUT Cloud Computing Seminar 46
Chargement dynamique Fiabilité Flexibilité Bonne réponse Facilité pour monter a charge Facilité pour apprendre la technologie
9 Novembre, 20102010 IUT Cloud Computing Seminar 47
Email: [email protected] Facebook: http://facebook.com/raygao2009 Blog: http://raysblog.are4.us
9 Novembre, 20102010 IUT Cloud Computing Seminar 48
9 Novembre, 20102010 IUT Cloud Computing Seminar 49
1 ECU = 1.0 – 1.2 GHz Opteron/Xeon from 20079 Novembre, 20102010 IUT Cloud Computing Seminar 50
RAMCores x
ECUArch
Hourly Cost (US-East)
Monthly Cost(US-East)
Standard
Small 1.7 GB 1 x 1 32bit $0.085 $62
Large 7.5 GB 2 x 2 64bit $0.34 $248
Extra Large 15 GB 4 x 2 64bit $0.68 $496
High-Memory
Extra Large 17.1 GB
2 x 3.25 64bit $0.50 $366
Double Extra Large
34.2 GB
4 x 3.25 64bit $1.20 $878
Quadruple Extra Large
68.4 GB
8 x 3.25 64bit $2.40 $1756
High-CPU
Medium 1.7 GB 2x 2.5 32bit $0.17 $124
Extra Large 7 GB 8 x 2.5 64bit $0.68 $496
9 Novembre, 20102010 IUT Cloud Computing Seminar 51
Amazon EC2 Relational Database AMIs
Amazon Relational Database Service
Amazon SimpleDB
Features Choose your own database server (IBM DB2, Microsoft SQL Server, MySQL, Oracle, and more)
Native access to a relational database engine, with key features of a relational database, such as joins or complex transactions
Schema-less data store
Administration
Exert complete administrative control over your database
Gain a managed experience and offload common administrative tasks, such as provisioning, backup
Zero administrative overhead (automatic handling of geo-redundant replication, index creation, database tuning)
Flexibility Easy migration path (existing code, tools, applications are compatible)
Easy migration path (existing code, tools, applications are compatible)
Easy to use web service APIs
Scalability Employ many of the scalability features of Amazon EC2
Quickly scale up resources with only an API call
Automatic and elastic scaling of resources to meet request load
Backup Store snapshots to Amazon S3
Use automatic backup service at an interval you specify
High availability (multiple copies of data for reliability and failover)
9 Novembre, 20102010 IUT Cloud Computing Seminar 52
9 Novembre, 20102010 IUT Cloud Computing Seminar 53
Standard Instances◦ Well suited for most applications
High Memory Instances◦ Offer large memory sizes for high throughput applications,
including database and memory caching applications High CPU Instances
◦ Have proportionally more CPU resources than memory (RAM) and are well suited for compute-intensive applications
Billed for actual usage on monthly basis Standard Instances
◦ Linux/UNIX starting at $0.095 USD per hour◦ Windows starting at $0.13 USD per hour
High CPU Instances◦ Linux/UNIX starting at $0.19 USD per hour◦ Windows starting at $0.31 USD per hour
High Memory Instances◦ Linux/UNIX starting at $1.34 USD per hour◦ Windows starting at $1.44 USD per hour
+ Data Transfer Costs Reserved Instances
◦ Make a low, one-time payment for each instance◦ Receive lower pricing for that instance
Pre-requisites◦ SSH client – Putty.exe on Windows, built-in in Mac
and Linux To-do
◦ Access Key◦ Secret Key◦ X.509 Certificate
Private Key Public Key
9 Novembre, 20102010 IUT Cloud Computing Seminar 56
9 Novembre, 20102010 IUT Cloud Computing Seminar 57
9 Novembre, 20102010 IUT Cloud Computing Seminar 58
AllowsStart / Stop / Pause a VM instanceManage Firewall portsAdd S3 storageTake snapshot of volumes & VMsCreate Security Group and Key Pair (Amazon use secure key to manage access to VM via SSH), This is different from X509 keys.Control Job Flow between VMsCloudFront Services (pushing data to the edge of network)
9 Novembre, 20102010 IUT Cloud Computing Seminar 59
•Access Key•Secret Key•X.509 Certificate files (Self-signed)
•Public •Private