X1 Dev Club - Amazon EC2 et al.Presentation Transcript
Облачные амазонки и др. X1 Dev Девелоперы 1шт. gmail.comSerge.Kovaleff @ linkedin.com facebook.com
Цели● Ознакомиться с облаками и пр. белокрылыми ромашками● Понять облачный тренд● Поместить облака и конкретно Амазон в свою картину мира● Возможно, узнать пикантные подробности
План● Откуда есть и пошел Амазон как СааС● SaaS, IaaS, PaaS, ...aaS?● Что нам Зе Вендор сулит● Куски Питона● Куски Баша (не Орг)● Подводные камни
Что такое SaaS?
Grids ... Clouds ...Virtualization!
Письмо CEO "then-new U.S. Supreme Court ruling [that] online retailers dont have to collect sales taxes in states where they lack a physical presence" "You can do the math 15 different ways, and every time the math tells you that you shouldn’t lower prices because you’re going to make less money. That’s undoubtedly true in the current quarter, in the current year. But it’s probably not true over a 10-year period, when the benefit is going to increase the frequency with which your customers shop with you, the fraction of their purchases they do with you as opposed to other places. Their overall satisfaction is going to go up." Bezos indicated that he founded the space company to help enable "anybody to go into space"Jeffrey P. BezosFounder and Chief Executive OfficerAmazon.com, Inc.
● Amazon AWS Authentication, an implicit service, the authentication infrastructure used to authenticate access to the various services.● Amazon CloudFront, a content delivery network (CDN) for distributing objects to so-called "edge locations" near the requester.● Amazon CloudSearch provides basic full text search and indexing of textual content.● Amazon CloudWatch, provides monitoring for AWS cloud resources and applications, starting with EC2.● Amazon DevPay, currently in limited beta version, is a billing and account management system for applications that developers have built atop Amazon Web Services.● Amazon DynamoDB (DynamoDB} provides a scalable, low-latency NoSQL online Database Service.● Amazon Elastic Beanstalk provides quick deployment and management of applications in the cloud.● Amazon Elastic Block Store (EBS) provides persistent block-level storage volumes for EC2.● Amazon Elastic Compute Cloud (EC2) provides scalable virtual private servers using Xen.● Amazon Elastic MapReduce allows businesses, researchers, data analysts, and developers to easily and cheaply process vast amounts of data. It uses a hosted Hadoop framework running on the web-scale infrastructure of EC2 and Amazon S3.● Amazon ElastiCache provides in-memory caching for web applications.● Amazon Flexible Payments Service (FPS) provides an interface for micropayments.● Amazon Fulfillment Web Service provides a programmatic web service for sellers to ship items to and from Amazon using Fulfillment by Amazon.● Amazon Glacier, Provides a very low cost storage option based on its S3 storage solution. High redundancy and availability, but high access times. Ideal for archiving data.● Amazon Historical Pricing provides access to Amazons historical sales data from its affiliates. (It appears that this service has been discontinued.)● Amazon Mechanical Turk (Mturk) manages small units of work distributed among many humans.● Amazon Product Advertising API formerly known as Amazon Associates Web Service (A2S) and Amazon E-Commerce Service (ECS), provides access to Amazons product data and electronic commerce functionality.● Amazon Relational Database Service (RDS) provides a scalable database server with MySQL and Oracle support.● Amazon Route 53 provides a highly available and scalable Domain Name System (DNS) web service.● Amazon Simple Email Service (SES) provides bulk and transactional email sending.● Amazon Simple Storage Service (S3) provides Web Service based storage.● Amazon Simple Queue Service (SQS) provides a hosted message queue for web applications.● Amazon Simple Notification Service (SNS) provides a hosted multiprotocol "push" messaging for web applications.● Amazon Simple Workflow (SWF) is a workflow service for building scalable, resilient applications.● Amazon SimpleDB, allows developers to run queries on structured data. It operates in concert with EC2 and S3 to provide "the core functionality of a database."● Amazon Virtual Private Cloud (VPC) creates a logically isolated set of Amazon EC2 instances which can be connected to an existing network using a VPN connection.● AWS CloudFormation, create a collection of related AWS resources and provision them in an orderly and predictable fashion.● AWS Import/Export, accelerates moving large amounts of data into and out of AWS using portable storage devices for transport.● AWS Management Console (AWS Console), A web-based point and click interface to manage and monitor the Amazon infrastructure suite including EC2, EBS, Amazon Elastic MapReduce, and Amazon CloudFront.● AWS Storage Gateway, an iSCSI block storage appliance with cloud-based backup.
Top 5 3 Амазонских Сервиса● Elastic Compute Cloud (EC2)● Elastic Block Store (EBS)● Simple Storage Service (S3)● Simple Email Service (SES)● DynamoDB
Elastic Compute Cloud
Elastic Compute Cloud● hiring a server running at a remote location● virtualized server instances as Amazon Machine Images (AMI)● details on the instance types http://aws.amazon.com/ec2/instance-types/ http: //aws.amazon.com/ec2/#instance● pre-configured AMIs● attach to an IP called the Elastic IP● dynamic capability of launching multiple instances of the same AMIs to scale up and terminating them to scale down● One EC2 Compute Unit provides the equivalent CPU capacity of a 1.0-1.2 GHz 2007 Opteron or 2007 Xeon processor● Service Level Agreement commitment is 99.95% availability● Regions: US East (Northern Virginia), US West (Oregon), US West (Northern California), EU (Ireland), Asia Pacific (Singapore), Asia Pacific (Tokyo), South America (Sao Paulo), and AWS GovCloud.
EC2 алгоритм● choose a pre-configured AMI● launch that AMI● customize it by adding additional software and/or by loading an app● save that AMI as your custom AMI on S3● launch multiple instances● ... profit )
Подробнее о Типах● First generation (M1) Standard● Second generation (M3) Standard● Micro instances (t1.micro)● High-Memory Instances● High-CPU Instances● Cluster Compute Instances● Cluster GPU Instances● High I/O Instances● EBS-Optimized Instances● Reserved Instances● Spot Instances● Dedicated Instances
Elastic Block Store
Elastic Block Store● volumes are network-attached● persist independently from the life of an instance● highly available, highly reliable● as instance’s boot partition● attached to a running Amazon EC2 instance as a standard block device● improved durability over local Amazon EC2 instance stores● automatically replicated on the backend (in a single Availability Zone)● ability to create point-in-time consistent snapshots of your volumes that are then stored in Amazon S3, and automatically replicated across multiple Availability Zones● Standard volumes and Provisioned IOPS volumes
Simple Storage Service
Simple Storage Service● can be accessed by any application with access to the internet● can store any arbitrary data as objects accompanied by metadata● organized into buckets● permissions defined in the Access Control List (ACL)● object can be 5GB in size while the metadata can be up to 2KB● can be accessed using simple REST or SOAP calls