Amazon EC2 Deep Dive. Michael #awssummit

Similar documents
BERLIN. 2015, Amazon Web Services, Inc. or its affiliates. All rights reserved

THE DEFINITIVE GUIDE FOR AWS CLOUD EC2 FAMILIES

AWS: Basic Architecture Session SUNEY SHARMA Solutions Architect: AWS

POSTGRESQL ON AWS: TIPS & TRICKS (AND HORROR STORIES) ALEXANDER KUKUSHKIN

Amazon Elastic Compute Cloud (EC2)

POSTGRESQL ON AWS: TIPS & TRICKS (AND HORROR STORIES) ALEXANDER KUKUSHKIN. PGConf.EU 2017, Warsaw

POSTGRESQL ON AWS: TIPS & TRICKS (AND HORROR STORIES) ALEXANDER KUKUSHKIN. PostgresConf US

Introduction to the Cisco ASAv

Paperspace. Architecture Overview. 20 Jay St. Suite 312 Brooklyn, NY Technical Whitepaper

AWS EC2 Virtualization: Introducing Nitro

CIT 668: System Architecture. Amazon Web Services

Licensing Oracle on Amazon EC2, RDS and Microsoft Azure now twice as expensive!

HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD MIGRATION

Amazon Virtual Private Cloud Deep Dive

CLOUD ARCHITECTURE & PERFORMANCE WORKLOADS. Field Activities

Running MySQL on AWS. Michael Coburn Wednesday, April 15th, 2015

Spring 2017 :: CSE 506. Introduction to. Virtual Machines. Nima Honarmand

RACKSPACE ONMETAL I/O V2 OUTPERFORMS AMAZON EC2 BY UP TO 2X IN BENCHMARK TESTING

Chapter 5 C. Virtual machines

Virtual Machines. Jinkyu Jeong Computer Systems Laboratory Sungkyunkwan University

Rack Disaggregation Using PCIe Networking

SQL Server Performance on AWS. October 2018

AWS Administration. Suggested Pre-requisites Basic IT Knowledge

Microsoft Exchange Server 2013 on the AWS Cloud: Quick Start Reference Deployment Mike Pfeiffer

Pass4test Certification IT garanti, The Easy Way!

for Cloud Computing University of Washington Tacoma Fall

Virtualization. ! Physical Hardware Processors, memory, chipset, I/O devices, etc. Resources often grossly underutilized

Virtualization. Starting Point: A Physical Machine. What is a Virtual Machine? Virtualization Properties. Types of Virtualization

What is KVM? KVM patch. Modern hypervisors must do many things that are already done by OSs Scheduler, Memory management, I/O stacks

Advanced Architectures for Oracle Database on Amazon EC2

Accelerating NVMe I/Os in Virtual Machine via SPDK vhost* Solution Ziye Yang, Changpeng Liu Senior software Engineer Intel

Cloudera s Enterprise Data Hub on the Amazon Web Services Cloud: Quick Start Reference Deployment October 2014

Virtualization and the Metrics of Performance & Capacity Management

Running Databases in Containers.

It is recommended to complete the tutorial using a web browser from the same operating system as your Putty or SSH client (e.g. Ubuntu terminal).

Installation of Informatica Services on Amazon EC2

Virtualization, Xen and Denali

Meet the Increased Demands on Your Infrastructure with Dell and Intel. ServerWatchTM Executive Brief

A Complete Platform for Highly Available Storage

Fakultät Informatik Institut für Systemarchitektur, Betriebssysteme THE NOVA KERNEL API. Julian Stecklina

Virtualization. ...or how adding another layer of abstraction is changing the world. CIS 399: Unix Skills University of Pennsylvania.

Optimizing and Enhancing VM for the Cloud Computing Era. 20 November 2009 Jun Nakajima, Sheng Yang, and Eddie Dong

Cloud Infrastructure

Deploy the Firepower Management Center Virtual On the AWS Cloud

Speeding up the Booting Time of a Toro Appliance

SCALE AND SECURE MOBILE / IOT MQTT TRAFFIC

Using SQL Server on Amazon Web Services

Tackling the Management Challenges of Server Consolidation on Multi-core System

ThoughtSpot on AWS Quick Start Guide

A Novel Approach to Gain High Throughput and Low Latency through SR- IOV

SR-IOV Support for Virtualization on InfiniBand Clusters: Early Experience

CS370 Operating Systems

Cross-layer Optimization for Virtual Machine Resource Management

Amazon AWS-Solution-Architect-Associate Exam

Nova Scheduler: Optimizing, Configuring and Deploying NFV VNF's on OpenStack

Training on Amazon AWS Cloud Computing. Course Content

Task Scheduling of Real- Time Media Processing with Hardware-Assisted Virtualization Heikki Holopainen

Container Adoption for NFV Challenges & Opportunities. Sriram Natarajan, T-Labs Silicon Valley Innovation Center

FCoE at 40Gbps with FC-BB-6

Kemari: Virtual Machine Synchronization for Fault Tolerance using DomT

Cooperative VM Migration for a virtualized HPC Cluster with VMM-bypass I/O devices

SD-WAN. Model Specifications: SteelHead SD Series. Specification Sheet

Link Virtualization based on Xen

Enroll Now to Take online Course Contact: Demo video By Chandra sir

Improving CPU Performance of Xen Hypervisor in Virtualized Environment

KVM Virtualized I/O Performance

Nested Virtualization and Server Consolidation

Lecture 09: VMs and VCS head in the clouds

Resiliency Replication Appliance Installation Guide Version 7.2

Pulse Connect Secure Virtual Appliance on Amazon Web Services

Oracle IaaS, a modern felhő infrastruktúra

TALK THUNDER SOFTWARE FOR BARE METAL HIGH-PERFORMANCE SOFTWARE FOR THE MODERN DATA CENTER WITH A10 DATASHEET YOUR CHOICE OF HARDWARE

The Convergence of Storage and Server Virtualization Solarflare Communications, Inc.

Deep Dive on Amazon Elastic File System

KillTest *KIJGT 3WCNKV[ $GVVGT 5GTXKEG Q&A NZZV ]]] QORRZKYZ IUS =K ULLKX LXKK [VJGZK YKX\OIK LUX UTK _KGX

Pexip Infinity Server Design Guide

Independent consultant. (Ex-) Oracle ACE Director. Member of OakTable Network. Performance Troubleshooting In-house workshops

Eucalyptus User Guide

Configuring SR-IOV. Table of contents. with HP Virtual Connect and Microsoft Hyper-V. Technical white paper

Arrakis: The Operating System is the Control Plane

Module 1: Virtualization. Types of Interfaces

Fast packet processing in the cloud. Dániel Géhberger Ericsson Research

OnCommand Cloud Manager 3.2 Deploying and Managing ONTAP Cloud Systems

Virtualization and Performance

Virtualization. join, aggregation, concatenation, array, N 1 ühendamine, agregeerimine, konkateneerimine, massiiv

XEN and KVM in INFN production systems and a comparison between them. Riccardo Veraldi Andrea Chierici INFN - CNAF HEPiX Spring 2009

PrepAwayExam. High-efficient Exam Materials are the best high pass-rate Exam Dumps

Using MySQL in a Virtualized Environment. Scott Seighman Systems Engineer Sun Microsystems

Deploying the Cisco CSR 1000v on Amazon Web Services

Introduction to Database Services


Changpeng Liu. Cloud Storage Software Engineer. Intel Data Center Group

BIG-IP Virtual Edition and Linux KVM: Setup. Version 12.1

Production Installation and Configuration. Openfiler NSA

VX 9000E WiNG Express Manager INSTALLATION GUIDE

The dark powers on Intel processor boards

CIT 668: System Architecture

What is QES 2.1? Agenda. Supported Model. Live demo

Server Virtualization Approaches

Architecting For Availability, Performance & Networking With ScaleIO

Transcription:

Berlin

Amazon EC2 Deep Dive Michael Hanisch @hanimic #awssummit

Let s get started

Amazon EC2 instances

AMIs & Virtualization Types

EBS-backed AMIs AMI instance Physical host server New root volume snapshot

S3-backed AMIs AMI instance Mount volume Copy image data to instance store disk Physical host server

EBS-backed vs. S3-backed AMIs EBS faster to boot (esp. with EBS GP2) Need at least one root volume per instance S3-backed AMIs require instance storage Only M3 / I2 / D2 / G2 instance types + previous generation

Virtualization Primer: x86 CPU Prior to Intel VT-x Binary translation Para-virtualization (PV) After Intel VT-x Hardware assisted virtualization (HVM) PV vs. HVM Amazon Machine Images vcpu scheduling choices and variability

Virtualization Primer: I/O and Devices Scheduling I/O requests between virtual devices and shared physical hardware Split driver model for shared devices; requires host resources Intel VT-d Direct pass through and IOMMU for dedicated devices

Virtualization types: PV vs. HVM Bare Metal PV-HVM PV Kernel Kernel Application VMM Kernel Application VMM Application PV-HVM allows Application to call directly into the Kernel PV requires going through the VMM overhead! Applications that are system call bound are most affected

Virtualization types: PV vs. HVM PV / paravirtual AMIs Need customized OS kernel that supports virtualization Can use separate AKI (Amazon Kernel Image) and ARI (Amazon Ramdisk Image), ie. Drop-in replacements for Linux kernel + drivers without changing the AMI Special PV-GRUB bootloader

Support for PV AMIs Previous Generation Instance Types T1 M1 M2 C1 CC2 CR1 HI1 HS1 CG1

Support for PV AMIs Current Generation Instance Types T2 M3 M4 C3 C4 R3 I2 D2 G2

Virtualization types: PV vs. HVM HVM AMIs Guest OS can run unmodified No custom Kernels etc. needed Bootloader starts off of MBR of root device Use PV drivers for fast access to underlying hardware without translation ( PV-HVM )! Faster network & storage IO! Direct access to network interfaces, GPUs etc, Allows for access to CPU hardware features

Support for HVM AMIs Previous Generation Instance Types T1 M1 M2 C1 CC2 CR1 HI1 HS1 CG1

Support for HVM AMIs Current Generation Instance Types T2 M3 M4 C3 C4 R3 I2 D2 G2

The Bottom Line Use 64 bit HVM EBS-backed AMIs ( unless you really want to use previous generation instance types)

Instance Types

Instance generation c3.large Instance family Instance size

CPU Storage Memory Network

C 3

C 4

CPU

C4 Instance Type Compute-Optimized Instance Family Highest amount of compute performance per $ Smaller amount of RAM per vcore Custom Intel CPU (Intel Xeon E5-2666v3) Base speed 2.9Ghz Intel Turbo Boost 3.5Ghz AVX2 supports 256-bit integer vectors and can process 32 single precision or 16 double precision floating point operations per cycle Available in 5 different sizes 4 to 36 vcores 3.75 GiB to 60 GiB RAM

C4 Instance Type Only 2 vcores can run at highest Turbo Boost speed at the same time, others run at base freq Alternatively, all vcores can run at 3.2GHz Influence speed using Processor State Control Access to CPU features: AVX 2.0, AES-NI

C4 Instance Type C4.8xlarge allows to control the CPU s C-state and P- state Control which idle state vcpus can reach (C0=running, C6=off) Control the available performance state for vcpus Decrease latency of thread switching Max. frequency for two threads vs. higher base performance Turn off turbo mode for more consistent performance

M 3

M 4

M4 Instance Type General Purpose Instance Family Less CPU per RAM than C4 More RAM per vcore than C4 (and less than R3) Custom Intel CPU (Xeon E5-2676 v3) Base speed 2.4Ghz turbo up to 3.0Ghz (2.70 GHz when all cores are running) Available in 5 different sizes 2 to 40 vcores 8 GiB to 160 GiB RAM

T 2

T2 Instance Type General Purpose Instance Family Burstable CPU Intel Xeon CPU Base 2.5Ghz, Intel Turbo Boost up to 3.3Ghz Available in 4 different sizes 1 to 2 vcores 1 to 8 GiB RAM

T2 Instance Type General Purpose Instance Family Burstable CPU Intel Xeon CPU Base 2.5Ghz, Intel Turbo Boost up to 3.3Ghz Available in 4 different sizes 1 to 2 vcores 1 to 8 GiB RAM

Understanding T2 CPU Credits An instance earns CPU credits at a steady rate Max. credit depends on instance size Initial credit after boot! 1 CPU Credit provides the performance of a full CPU core for 1 minute An instance consumes credits when active 37

Model vcpu CPU credits/h Memory (all) Storage t2.micro 1 6 1 EBS Only T2.small 1 12 2 EBS Only T2.medium 2 24 4 EBS Only T2.large 2 48 8 EBS Only

CPU Storage Memory Network

Storage Options Current Generation Instance Types T2 M3 M4 C3 C4 R3 I2 D2 G2 Amazon EBS only Amazon EBS only Amazon EBS only

Storage Options Current Generation Instance Types T2 M3 M4 C3 C4 R3 I2 D2 G2 Amazon EBS Amazon EBS Amazon EBS Amazon EBS Amazon EBS Amazon EBS Amazon EBS only Amazon EBS only Amazon EBS only

VPC-only Instance Types Current Generation Instance Types T2 M3 M4 C3 C4 R3 I2 D2 G2

VPC-only Features Enhanced Networking / SR-IOV Multiple Elastic Network Interfaces Multiple IP addresses More powerful Security Groups (ingress/egress) VPC flow-logs

Enhanced Networking / SR-IOV Single Root I/O Virtualization Supports significantly higher # of packets / sec Reduced latency, less jitter

Enhanced Networking / SR-IOV C4, M4, C3, R3, D2, I2 instance families HVM virtualization type VPC-only Required kernel version Linux: 2.6.32+ Windows: Server 2008 R2+ Appropriate VF driver Linux: ixgbevf 2.14.2+ module Windows: Intel 82599 Virtual Function driver

Enhanced Networking / SR-IOV Verify Intel ixgbevf driver is installed and enabled $"ethtool"(i"eth0" driver:"ixgbevf( version:"2.14.2+amzn" "

Enhanced Networking / SR-IOV Verify Intel ixgbevf driver is installed and enabled Enable sriov instance attribute $"aws"ec2"modify(instance(attribute"\"""" ((instance(id=i(xxxxxxx"\" ((sriov(net(support=simple;" " (Or launch from an AMI that has this flag set!)

Placement Groups 10Gb/s network Fully bisected instance instance instance instance Low latency instance instance instance instance

Placement Groups Use 10Gbps instance size for max throughput Enable Enhanced Networking to reduce latency and increase packets-per-second Use Jumbo Frames (9001 MTU) to achieve maximum throughput

Support for Placement Groups Previous Generation Instance Types T1 M1 M2 C1 CC1 CC2 HI1 HS1 CG1

Support for Placement Groups Current Generation Instance Types T2 M3 M4 C3 C4 R3 I2 D2 G2

Dedicated Instances Not a performance optimization! Only instances of same AWS AccountID are placed on same physical server Use this for compliance or security reasons not to get extra bandwidth / CPU /

Amazon Elastic Block Store

Amazon Elastic Block Store Which volume type? How many volumes? RAID, JBOD, LVM? instance volume volume

Virt. block device Hypervisor Physical host server Amazon EBS EBS Server

Other traffic Virt. block device Hypervisor EBS traffic only! Amazon EBS Physical host server EBS Server

Virt. block device Hypervisor Amazon EBS Primary Physical host server Amazon EBS Secondary EBS Server

Amazon EBS Performance Depends on a number of factors: EBS Volume type IO capacity (IOPS) Volume bandwidth Instance (network) bandwidth Instance type & size EBS-optimized option enabled or not

Amazon EBS Volume Types & Limits General Purpose (SSD) 1 GiB size 16 TiB 10,000 IOPS Max. 160 MiB/s Up to 256 KB / IOP Provisioned IOPS 4 GiB size 16 TiB 20,000 IOPS Max. 320 MiB/s Up to 256 KB / IOP

Amazon EC2 instance types & limits Instance bandwidth Varies depending on instance size Depends on utilization of network link (internet traffic, ) EBS optimized Supported on most instance families Additional reserved bandwidth of up to 4 GiB/s for communication with Amazon EBS volumes Up to 32,000 IOPS @ 16kB, ie. 256 MB/s throughput

Amazon EC2 instance types & limits Instance throughput Up to 48,000 IOPS (16 kb) Up to 800 MB/s

The End

What is still missing? VPC features & usage scenarios Monitoring & alarming Resilience & Recovery Instance store performance Purchase models: Spot / On Demand / RI