SlideShare una empresa de Scribd logo
1 de 46
Descargar para leer sin conexión
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SSID: Guest
Password: Cube@11999
AMAZON EC2 DEEPDIVE 

AND A SPRINKLE OF AWS COMPUTE
Doron Rogov

Technical Trainer
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Floor28 Agenda
GameDay
24 Oct
Big Data Day
14 Oct
Technical Sessions
Serverless Data Workshop
Big Data UG Meetup
ML & DL Day
15 Oct
Technical Sessions
SageMaker Workshop
ML&DL Meetup
DevOps Day
16 Oct
Technical Sessions
K8s Workshop
DevOps Meetup
DevOps Day
17 Oct
Technical Sessions
Spot Workshop 
Databases Day
18 Oct
Technical Sessions
PyTorch Meetup
Builders Day
AppSync, Alexa & IoT
22 Oct
Technical Sessions
CDK Workshop
AWS IL UG Meetup
Technical Sessions
Serverless Workshop
Virtual assistants UG Meetup
Builders Day

Serverless backend
21 Oct
Enterprise IT Day
23 Oct
Technical Sessions
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
In this session
•Understanding the factors that going into choosing an Amazon EC2 instance
•Defining system performance and how it is characterized for different workloads
•How Amazon EC2 instances deliver performance while providing flexibility and
agility
•How to make the most of your EC2 instance experience through the lens of several
instance types
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon Elastic Compute Cloud (EC2) is big
API
EC2
EC2
Instances
Networking
Purchase options
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
It all started with…
First launched in August 2006
M1 instance
“One size fits all” M1
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017
1
3 5 7
11 12 13
23
42
52
60
70
EC2 Instance Type Growth—Increased Choice
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
11 2012 2013 2014 2015 2016 2017
12 13
23
42
52
60
70
EC2 Instance Type Growth—Increased Choice
2018
Over 100 different instances
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon EC2 instances
Host server
Hypervisor
Guest 1 Guest 2 Guest nInstance
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Instance generation
c5.xlargeInstance family
Instance size
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon EC2 Instance Types
General
Purpose
Compute
Optimized
Memory
Optimized
Accelerated
Computing
Storage
Optimized
t3 c5 / c5d r5 / r5d p3 h1
t2 c4 r4 p2 i3
m5 / m5d x1 / x1e g3 d2
m4 z1d f1
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
High Memory Instances
Instance Name Memory
Logical
Processors
Dedicated EBS
Bandwidth
Network
Bandwidth
u-6tb1.metal 6 TiB 448 14 Gbps 25 Gbps
u-9tb1.metal 9 TiB 448 14 Gbps 25 Gbps
u-12tb1.metal 12 TiB 448 14 Gbps 25 Gbps
24 TiB of memory coming in 2019
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
NUMA (…NUMA Hi)
• Non-uniform memory access
• Each processor in a multi-CPU system has local memory that
is accessible through a fast interconnect
• Each processor can also access memory from other CPUs,
but local memory access is a lot faster than remote memory
• Performance is related to the number of CPU sockets and
how they are connected—Intel QuickPath Interconnect (QPI)
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
r5.24xlarge
QPI
384GiB 384GiB
48 vCPUs 48 vCPUs
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
x1e.32xlarge
QPI
QPI
QPIQPI
QPI
976GiB
976GiB
976GiB
976GiB
32 vCPU’s 32 vCPU’s
32 vCPU’s 32 vCPU’s
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Tip: Kernel support for NUMA balancing
• Linux Kernel 3.8+ and Windows Datacenter 2003+ support NUMA balancing
• Not always the most efficient
• Overhead of managing memory can slow down your app
• Does your app have more memory that fits in a single socket?
• Linux: set “numa=off” in grub to disable NUMA awareness
• Do you have many processes or a footprint less than a single socket?
• Linux: use “numactl” to restrict them to specific cores or nodes
• Example: numactl --cpunodebind=0 --membind=0 ./myapp.run
• Windows: use processor affinity to lock applications to specific cores
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Instance sizing
c5.18xlarge
C72/R144
2 - c5.9xlarge
C8/R16
≈
4 - c5.4xlarge
≈
8 - c5.2xlarge
≈ ≈ etc≈etc
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What’s a virtual CPU? (vCPU)
• A vCPU is typically a hyper-threaded physical core*
• On Linux, “A” threads enumerated before “B” threads
• On Windows, threads are interleaved
• Divide vCPU count by two to get core count
* Remember the “T” family is special
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
LSTOPO
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Disable hyper-threading if you need to
• Useful for FPU heavy applications (e.g. Financial calculation, Engineering simulation)
• Use ‘lscpu’ to validate layout
• Hot offline the “B” threads
for cpunum in $(cat /sys/devices/system/cpu/cpu*/topology/
thread_siblings_list | cut -s -d, -f2- | tr ',' 'n' | sort -un); do
echo 0 | sudo tee /sys/devices/system/cpu/cpu${cpunum}/online
Done
• Set grub to only initialize the first half of all threads
maxcpus=20
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
lscpu - r5.24xlarge
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 96
On-line CPU(s) list: 0-95
Thread(s) per core: 2
Core(s) per socket: 24
Socket(s): 2
NUMA node(s): 2
Vendor ID: GenuineIntel
CPU family: 6
Model: 85
Model name: Intel(R) Xeon(R) Platinum 8175M CPU @ 2.50GHz
Stepping: 4
CPU MHz: 1427.759
BogoMIPS: 5000.00
Hypervisor vendor: KVM
Virtualization type: full
L1d cache: 32K
L1i cache: 32K
L2 cache: 1024K
L3 cache: 33792K
NUMA node0 CPU(s): 0-23,48-71
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Resource allocation
• All resources assigned to you are dedicated to your instance with no over-commitment*
• All vCPUs are dedicated to you
• Memory allocated is assigned only to your instance
• Network resources are partitioned to avoid “noisy neighbors”
• Curious about the number of instances per host? Use “dedicated hosts” as a guide.
*Again, the “T” family is special
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
P-state and C-state control
• c4.8xlarge, d2.8xlarge, m4.16xlarge, p2.16xlarge,
x1.16xlarge, f1.16xlarge, x1.32xlarge, i3.metal, etc
• By entering deeper idle states, non-idle cores can
achieve up to 300MHz higher clock frequencies
• But… deeper idle states require more time to exit,
may not be appropriate for latency-sensitive
workloads
• Linux: limit c-state by adding
“intel_idle.max_cstate=1” to grub
• Windows: no options to control c states
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Tip: P-state control for AVX2
• If an application makes heavy use of AVX2 on all cores, the processor may attempt to draw
more power than it should
• Processor will transparently reduce frequency
• Frequent changes of CPU frequency can slow an application
sudo sh -c "echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo“

See also: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/processor_state_control.html
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
T3 instances
• Lowest cost Amazon EC2
instance at $0.0052 per hour
• Burstable performance
• Fixed allocation enforced with
CPU credits
• Unlimited mode by default
Model vCPU Baseline
CPU credits/
hour
Maximum
CPU credit
Memory (GiB)
t3.nano 2 5% 6 144 0.5
t3.micro 2 10% 12 288 1
t3.small 2 20% 24 576 2
t3.medium 2 20% 24 576 4
t3.large 2 30% 36 864 8
t3.xlarge 4 40% 96 2304 16
t3.2xlarge 8 40% 192 4608 32
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How credits work
Baseline rate
Credit
balance
Burst rate
• A CPU credit provides the performance of a
full CPU core for one minute
• An instance earns CPU credits at a steady
rate
• An instance consumes credits when active
• Credits expire (leak) after 24 hours
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Circa 2012
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What is Nitro?
From the C5 launch:
Q. What is the new hypervisor for Amazon EC2?
A. The new hypervisor for Amazon EC2, introduced with the launch of C5 instances, is a
component that primarily provides CPU and memory isolation for C5 instances. VPC networking
and EBS storage resources are implemented by dedicated hardware components that are part of
all current generation EC2 instance families. It is built on core Linux Kernel-based Virtual Machine
(KVM) technology, but does not include general purpose operating system components.
• The Nitro Hypervisor is the “new hypervisor,” but more than just a hypervisor
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Jan 2013 - CR1 (no Nitro)
Amazon

RDS
IAM
Amazon
Linux
cr1.8xlarge
EBS Volumes
Hardware Software
DM
Instance Storage
DM DM DM
VPC Networking
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Nov 2013 - C3 (early Nitro)
Amazon

RDS
IAM
Amazon
Linux
c3.8xlarge
Enhanced Networking
Hardware Software
DMDM DM EBS Volumes
Instance Storage
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Jan 2015 - C4
Amazon

RDS
IAM
Amazon
Linux
c4.8xlarge
EBS Volumes
Enhanced Networking
Hardware Software
DM EBS Volumes
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
May 2016 - X1
Amazon

RDS
IAM
Amazon
Linux
x1.32xlarge
Instance Storage
Enhanced Networking
Hardware Software
DM DM EBS Volumes
Instance Storage
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon

RDS
IAM
Amazon
Linux
i3.16xlarge
EBS Volumes
Instance Storage
Enhanced Networking
Hardware Software
DM
DM EBS Volumes
I3 - Feb 2017
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon

RDS
IAM
Amazon
Linux
i3.16xlarge
EBS Volumes
Instance Storage
Enhanced Networking
Hardware Software
DM
DM EBS Volumes
I3 - Feb 2017
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Nov 2017 - C5
Amazon

RDS
IAM
c5.18xlarge
EBS Volumes
Enhanced Networking
Hardware Software
Nitro Hypervisor
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Nov 2017 - EC2 Bare Metal
Amazon

RDS
IAM
i3.metal
EBS Volumes
Instance Storage
Enhanced Networking
Hardware
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
The Nitro System
• Nitro Hypervisor
• Lightweight hypervisor
• Nitro Card
• Storage
• Networking
• Management
• Monitoring
• Security
• Nitro Security Chip
• Integrated into the motherboard
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
FAQs
Q: Will my existing AMIs work on Nitro-based instances?
Q: Will applications need to be modified?
Q: Will all new instance types be based on the Nitro System?
A: Yes. Most ENA capable AMIs have the necessary drivers.
A: Most of the time, no. Some applications have relied on undocumented behavior to
detect they are running within EC2 and they may require adjustment.
A: In the fullness of time, we expect most (if not all) new instance types to be Nitro-
based. We have no plans to convert existing instance types to Nitro and expect to
continue to launch Xen based instance types where appropriate.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
P3 GPU Instances
• NVIDIA Tesla V100 Volta Based GPU
• 1 PetaFLOP of computational performance in a single instance
• Up to 2.6X and 14X performance improvement over P2 for High-Performance
Computing use-cases and Machine Learning use-cases (respectively)
Instance Size GPUs
Accelerator
(V100)
GPU Peer to
Peer
GPU Memory
(GB)
vCPUs
Memory
(GiB)
Network
Bandwidth
EBS
Bandwidth
P3.2xlarge 1 1 No 16 8 61 Up to 10Gbps 1.7Gbps
P3.8xlarge 4 4 NVLink 64 32 244 10Gbps 7Gbps
P3.16xlarge 8 8 NVLink 128 64 488 25Gbps 14Gbps
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
F1 FPGA instances
• Up to 8 Xilinx Virtex UltraScale Plus VU9p FPGAs in a single instance with four
high-speed DDR-4 per FPGA
• Largest size includes high performance FPGA interconnects via PCIe Gen3 (FPGA
Direct), and bidirectional ring (FPGA Link)
• Designed for hardware-accelerated applications including financial computing,
genomics, accelerated search, and image processing
Instance size FPGAs FPGA Link
FPGA
Direct
vCPUs
Memory
(GiB)
NVMe Network bandwidth
f1.2xlarge 1 - 8 122 1 x 470 Up to 10 Gigabit
f1.16xlarge 8 Y Y 64 976 4 x 940 25 Gbps
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
EBS performance
Instance
type
EBS-optimized
by default
Max EBS bandwidth
(Mbps)*
Expected EBS
throughput (MB/s)**
Max. IOPS 

(16 KB I/O size)**
Max network
bandwidth
r4.16xlarge Yes 14,000 1,750 75,000 25 Gb/s
r5d.24xlarge Yes 14,000 1,750 80,000 25 Gb/s
i3.16xlarge Yes 14,000 1,750 65,000 25 Gb/s
m5d.24xlarge Yes 14,000 1,750 80,000 25 Gb/s
x1.32xlarge Yes 10,000 1,250 65,000 10 Gb/s
• Instance size affects throughput
• Match your volume size and type to your instance
• RAID multiple EBS volumes together to achieve:
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Summary: Getting the most out of EC2 instances
• Use latest generation instances when possible
• Monitor T3 CPU credits
• NUMA balancing
• C state and P state controls
• Enhanced networking
• Profile your application
But, before you go…
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Architectural Evolution
Service Amazon EC2 Amazon ECS AWS Lambda
Unit VM Task Function
Level of
abstraction
H/W OS Runtime
How do I
choose?
I want to configure
servers, storage,
networking, and
my OS.
I want to run
servers, configure
applications, and
control scaling.
Run my code when
it’s needed.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
“Launching new instances and running tests in
parallel is easy…[when choosing an instance] there is
no substitute for measuring the performance of your
full application.”

-EC2 documentation
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SSID: Guest
Password: Cube@11999
GAME DAY

PUT YOUR SKILLS TO THE TEST

OCT 24 

Register now: bit.ly/Floor28GameDay
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Thank You!
Doron Rogov

rogdoron@amazon.com

in/doronrogov

Más contenido relacionado

La actualidad más candente

Oracle architecture with details-yogiji creations
Oracle architecture with details-yogiji creationsOracle architecture with details-yogiji creations
Oracle architecture with details-yogiji creationsYogiji Creations
 
CA IDMS Performance and Tuning
CA IDMS Performance and TuningCA IDMS Performance and Tuning
CA IDMS Performance and TuningCA Technologies
 
Apache Sedona Community Call slides Part 1
Apache Sedona Community Call slides Part 1Apache Sedona Community Call slides Part 1
Apache Sedona Community Call slides Part 1JiaYu45
 
SRV401 Deep Dive on Amazon Elastic File System (Amazon EFS)
SRV401 Deep Dive on Amazon Elastic File System (Amazon EFS)SRV401 Deep Dive on Amazon Elastic File System (Amazon EFS)
SRV401 Deep Dive on Amazon Elastic File System (Amazon EFS)Amazon Web Services
 
Introduction to Apache Cassandra
Introduction to Apache CassandraIntroduction to Apache Cassandra
Introduction to Apache CassandraRobert Stupp
 
Sizing Your MongoDB Cluster
Sizing Your MongoDB ClusterSizing Your MongoDB Cluster
Sizing Your MongoDB ClusterMongoDB
 
Performance Tuning RocksDB for Kafka Streams’ State Stores
Performance Tuning RocksDB for Kafka Streams’ State StoresPerformance Tuning RocksDB for Kafka Streams’ State Stores
Performance Tuning RocksDB for Kafka Streams’ State Storesconfluent
 
Schema-on-Read vs Schema-on-Write
Schema-on-Read vs Schema-on-WriteSchema-on-Read vs Schema-on-Write
Schema-on-Read vs Schema-on-WriteAmr Awadallah
 
PostgreSQL Materialized Views with Active Record
PostgreSQL Materialized Views with Active RecordPostgreSQL Materialized Views with Active Record
PostgreSQL Materialized Views with Active RecordDavid Roberts
 
Running Active Directory in the AWS Cloud
Running Active Directory in the AWS Cloud Running Active Directory in the AWS Cloud
Running Active Directory in the AWS Cloud Amazon Web Services
 
NOSQL Database: Apache Cassandra
NOSQL Database: Apache CassandraNOSQL Database: Apache Cassandra
NOSQL Database: Apache CassandraFolio3 Software
 
Amazon Relational Database Service (Amazon RDS)
Amazon Relational Database Service (Amazon RDS)Amazon Relational Database Service (Amazon RDS)
Amazon Relational Database Service (Amazon RDS)Amazon Web Services
 

La actualidad más candente (20)

Oracle architecture with details-yogiji creations
Oracle architecture with details-yogiji creationsOracle architecture with details-yogiji creations
Oracle architecture with details-yogiji creations
 
CA IDMS Performance and Tuning
CA IDMS Performance and TuningCA IDMS Performance and Tuning
CA IDMS Performance and Tuning
 
Cassandra Database
Cassandra DatabaseCassandra Database
Cassandra Database
 
Apache Sedona Community Call slides Part 1
Apache Sedona Community Call slides Part 1Apache Sedona Community Call slides Part 1
Apache Sedona Community Call slides Part 1
 
Amazon Redshift
Amazon Redshift Amazon Redshift
Amazon Redshift
 
SRV401 Deep Dive on Amazon Elastic File System (Amazon EFS)
SRV401 Deep Dive on Amazon Elastic File System (Amazon EFS)SRV401 Deep Dive on Amazon Elastic File System (Amazon EFS)
SRV401 Deep Dive on Amazon Elastic File System (Amazon EFS)
 
Introduction to Apache Cassandra
Introduction to Apache CassandraIntroduction to Apache Cassandra
Introduction to Apache Cassandra
 
Sizing Your MongoDB Cluster
Sizing Your MongoDB ClusterSizing Your MongoDB Cluster
Sizing Your MongoDB Cluster
 
Performance Tuning RocksDB for Kafka Streams’ State Stores
Performance Tuning RocksDB for Kafka Streams’ State StoresPerformance Tuning RocksDB for Kafka Streams’ State Stores
Performance Tuning RocksDB for Kafka Streams’ State Stores
 
Schema-on-Read vs Schema-on-Write
Schema-on-Read vs Schema-on-WriteSchema-on-Read vs Schema-on-Write
Schema-on-Read vs Schema-on-Write
 
PostgreSQL Materialized Views with Active Record
PostgreSQL Materialized Views with Active RecordPostgreSQL Materialized Views with Active Record
PostgreSQL Materialized Views with Active Record
 
Running Active Directory in the AWS Cloud
Running Active Directory in the AWS Cloud Running Active Directory in the AWS Cloud
Running Active Directory in the AWS Cloud
 
NOSQL Database: Apache Cassandra
NOSQL Database: Apache CassandraNOSQL Database: Apache Cassandra
NOSQL Database: Apache Cassandra
 
Deep Dive on Amazon Redshift
Deep Dive on Amazon RedshiftDeep Dive on Amazon Redshift
Deep Dive on Amazon Redshift
 
Migrating Oracle to PostgreSQL
Migrating Oracle to PostgreSQLMigrating Oracle to PostgreSQL
Migrating Oracle to PostgreSQL
 
Aurora Deep Dive | AWS Floor28
Aurora Deep Dive | AWS Floor28Aurora Deep Dive | AWS Floor28
Aurora Deep Dive | AWS Floor28
 
Database storage engines
Database storage enginesDatabase storage engines
Database storage engines
 
Apache hadoop hbase
Apache hadoop hbaseApache hadoop hbase
Apache hadoop hbase
 
Introduction to database
Introduction to databaseIntroduction to database
Introduction to database
 
Amazon Relational Database Service (Amazon RDS)
Amazon Relational Database Service (Amazon RDS)Amazon Relational Database Service (Amazon RDS)
Amazon Relational Database Service (Amazon RDS)
 

Similar a Amazon EC2 deepdive and a sprinkel of AWS Compute | AWS Floor28

Optimizing Network Performance for Amazon EC2 Instances (CMP308-R1) - AWS re:...
Optimizing Network Performance for Amazon EC2 Instances (CMP308-R1) - AWS re:...Optimizing Network Performance for Amazon EC2 Instances (CMP308-R1) - AWS re:...
Optimizing Network Performance for Amazon EC2 Instances (CMP308-R1) - AWS re:...Amazon Web Services
 
Foundations of Amazon EC2 - SRV319
Foundations of Amazon EC2 - SRV319 Foundations of Amazon EC2 - SRV319
Foundations of Amazon EC2 - SRV319 Amazon Web Services
 
Deep Dive on Amazon EC2 Instances & Performance Optimization Best Practices (...
Deep Dive on Amazon EC2 Instances & Performance Optimization Best Practices (...Deep Dive on Amazon EC2 Instances & Performance Optimization Best Practices (...
Deep Dive on Amazon EC2 Instances & Performance Optimization Best Practices (...Amazon Web Services
 
Amazon EC2 Foundations (CMP208-R1) - AWS re:Invent 2018
Amazon EC2 Foundations (CMP208-R1) - AWS re:Invent 2018Amazon EC2 Foundations (CMP208-R1) - AWS re:Invent 2018
Amazon EC2 Foundations (CMP208-R1) - AWS re:Invent 2018Amazon Web Services
 
AWSome Day Online Conference 2018 - Module 2
AWSome Day Online Conference 2018 -  Module 2AWSome Day Online Conference 2018 -  Module 2
AWSome Day Online Conference 2018 - Module 2Amazon Web Services
 
AWS Compute Evolved Week: Deep Dive on Amazon EC2 Accelerated Computing
AWS Compute Evolved Week: Deep Dive on Amazon EC2 Accelerated ComputingAWS Compute Evolved Week: Deep Dive on Amazon EC2 Accelerated Computing
AWS Compute Evolved Week: Deep Dive on Amazon EC2 Accelerated ComputingAmazon Web Services
 
Deep Dive on Amazon EC2 Accelerated Computing
Deep Dive on Amazon EC2 Accelerated ComputingDeep Dive on Amazon EC2 Accelerated Computing
Deep Dive on Amazon EC2 Accelerated ComputingAmazon Web Services
 
Deep Dive on Amazon EC2 Accelerated Computing
Deep Dive on Amazon EC2 Accelerated ComputingDeep Dive on Amazon EC2 Accelerated Computing
Deep Dive on Amazon EC2 Accelerated ComputingAmazon Web Services
 
Amazon EC2 Foundations - SRV319 - Anaheim AWS Summit
Amazon EC2 Foundations - SRV319 - Anaheim AWS SummitAmazon EC2 Foundations - SRV319 - Anaheim AWS Summit
Amazon EC2 Foundations - SRV319 - Anaheim AWS SummitAmazon Web Services
 
Deep Dive on Amazon EC2 Accelerated Computing - AWS Online Tech Talks
Deep Dive on Amazon EC2 Accelerated Computing - AWS Online Tech TalksDeep Dive on Amazon EC2 Accelerated Computing - AWS Online Tech Talks
Deep Dive on Amazon EC2 Accelerated Computing - AWS Online Tech TalksAmazon Web Services
 
Module 2 - AWSome Day Online Conference 2018
Module 2 - AWSome Day Online Conference 2018Module 2 - AWSome Day Online Conference 2018
Module 2 - AWSome Day Online Conference 2018Amazon Web Services
 
Accelerate ML workloads using EC2 accelerated computing - CMP202 - Santa Clar...
Accelerate ML workloads using EC2 accelerated computing - CMP202 - Santa Clar...Accelerate ML workloads using EC2 accelerated computing - CMP202 - Santa Clar...
Accelerate ML workloads using EC2 accelerated computing - CMP202 - Santa Clar...Amazon Web Services
 
Expert Tips for Successful Kubernetes Deployment - AWS Summit Sydney 2018
Expert Tips for Successful Kubernetes Deployment - AWS Summit Sydney 2018Expert Tips for Successful Kubernetes Deployment - AWS Summit Sydney 2018
Expert Tips for Successful Kubernetes Deployment - AWS Summit Sydney 2018Amazon Web Services
 
Amazon EC2 Foundations - SRV319 - Atlanta AWS Summit
Amazon EC2 Foundations - SRV319 - Atlanta AWS SummitAmazon EC2 Foundations - SRV319 - Atlanta AWS Summit
Amazon EC2 Foundations - SRV319 - Atlanta AWS SummitAmazon Web Services
 
Amazon EC2 Foundations - SRV319 - Toronto AWS Summit
Amazon EC2 Foundations - SRV319 - Toronto AWS SummitAmazon EC2 Foundations - SRV319 - Toronto AWS Summit
Amazon EC2 Foundations - SRV319 - Toronto AWS SummitAmazon Web Services
 
Foundations of Amazon EC2 - SRV319 - Chicago AWS Summit
Foundations of Amazon EC2 - SRV319 - Chicago AWS SummitFoundations of Amazon EC2 - SRV319 - Chicago AWS Summit
Foundations of Amazon EC2 - SRV319 - Chicago AWS SummitAmazon Web Services
 

Similar a Amazon EC2 deepdive and a sprinkel of AWS Compute | AWS Floor28 (20)

EC2 Foundations - Laura Thomson
EC2 Foundations - Laura ThomsonEC2 Foundations - Laura Thomson
EC2 Foundations - Laura Thomson
 
SRV319 Amazon EC2 Foundations
SRV319 Amazon EC2 FoundationsSRV319 Amazon EC2 Foundations
SRV319 Amazon EC2 Foundations
 
Optimizing Network Performance for Amazon EC2 Instances (CMP308-R1) - AWS re:...
Optimizing Network Performance for Amazon EC2 Instances (CMP308-R1) - AWS re:...Optimizing Network Performance for Amazon EC2 Instances (CMP308-R1) - AWS re:...
Optimizing Network Performance for Amazon EC2 Instances (CMP308-R1) - AWS re:...
 
Foundations of Amazon EC2 - SRV319
Foundations of Amazon EC2 - SRV319 Foundations of Amazon EC2 - SRV319
Foundations of Amazon EC2 - SRV319
 
Deep Dive on Amazon EC2 Instances & Performance Optimization Best Practices (...
Deep Dive on Amazon EC2 Instances & Performance Optimization Best Practices (...Deep Dive on Amazon EC2 Instances & Performance Optimization Best Practices (...
Deep Dive on Amazon EC2 Instances & Performance Optimization Best Practices (...
 
Amazon EC2 Foundations (CMP208-R1) - AWS re:Invent 2018
Amazon EC2 Foundations (CMP208-R1) - AWS re:Invent 2018Amazon EC2 Foundations (CMP208-R1) - AWS re:Invent 2018
Amazon EC2 Foundations (CMP208-R1) - AWS re:Invent 2018
 
AWSome Day Online Conference 2018 - Module 2
AWSome Day Online Conference 2018 -  Module 2AWSome Day Online Conference 2018 -  Module 2
AWSome Day Online Conference 2018 - Module 2
 
AWS Compute Evolved Week: Deep Dive on Amazon EC2 Accelerated Computing
AWS Compute Evolved Week: Deep Dive on Amazon EC2 Accelerated ComputingAWS Compute Evolved Week: Deep Dive on Amazon EC2 Accelerated Computing
AWS Compute Evolved Week: Deep Dive on Amazon EC2 Accelerated Computing
 
Deep Dive on Amazon EC2 Accelerated Computing
Deep Dive on Amazon EC2 Accelerated ComputingDeep Dive on Amazon EC2 Accelerated Computing
Deep Dive on Amazon EC2 Accelerated Computing
 
Amazon EC2 Foundations
Amazon EC2 FoundationsAmazon EC2 Foundations
Amazon EC2 Foundations
 
Deep Dive on Amazon EC2 Accelerated Computing
Deep Dive on Amazon EC2 Accelerated ComputingDeep Dive on Amazon EC2 Accelerated Computing
Deep Dive on Amazon EC2 Accelerated Computing
 
Amazon EC2 Foundations - SRV319 - Anaheim AWS Summit
Amazon EC2 Foundations - SRV319 - Anaheim AWS SummitAmazon EC2 Foundations - SRV319 - Anaheim AWS Summit
Amazon EC2 Foundations - SRV319 - Anaheim AWS Summit
 
Deep Dive on Amazon EC2 Accelerated Computing - AWS Online Tech Talks
Deep Dive on Amazon EC2 Accelerated Computing - AWS Online Tech TalksDeep Dive on Amazon EC2 Accelerated Computing - AWS Online Tech Talks
Deep Dive on Amazon EC2 Accelerated Computing - AWS Online Tech Talks
 
Module 2 - AWSome Day Online Conference 2018
Module 2 - AWSome Day Online Conference 2018Module 2 - AWSome Day Online Conference 2018
Module 2 - AWSome Day Online Conference 2018
 
Accelerate ML workloads using EC2 accelerated computing - CMP202 - Santa Clar...
Accelerate ML workloads using EC2 accelerated computing - CMP202 - Santa Clar...Accelerate ML workloads using EC2 accelerated computing - CMP202 - Santa Clar...
Accelerate ML workloads using EC2 accelerated computing - CMP202 - Santa Clar...
 
Expert Tips for Successful Kubernetes Deployment - AWS Summit Sydney 2018
Expert Tips for Successful Kubernetes Deployment - AWS Summit Sydney 2018Expert Tips for Successful Kubernetes Deployment - AWS Summit Sydney 2018
Expert Tips for Successful Kubernetes Deployment - AWS Summit Sydney 2018
 
Amazon EC2 Foundations
Amazon EC2 FoundationsAmazon EC2 Foundations
Amazon EC2 Foundations
 
Amazon EC2 Foundations - SRV319 - Atlanta AWS Summit
Amazon EC2 Foundations - SRV319 - Atlanta AWS SummitAmazon EC2 Foundations - SRV319 - Atlanta AWS Summit
Amazon EC2 Foundations - SRV319 - Atlanta AWS Summit
 
Amazon EC2 Foundations - SRV319 - Toronto AWS Summit
Amazon EC2 Foundations - SRV319 - Toronto AWS SummitAmazon EC2 Foundations - SRV319 - Toronto AWS Summit
Amazon EC2 Foundations - SRV319 - Toronto AWS Summit
 
Foundations of Amazon EC2 - SRV319 - Chicago AWS Summit
Foundations of Amazon EC2 - SRV319 - Chicago AWS SummitFoundations of Amazon EC2 - SRV319 - Chicago AWS Summit
Foundations of Amazon EC2 - SRV319 - Chicago AWS Summit
 

Más de Amazon Web Services

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Amazon Web Services
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Amazon Web Services
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateAmazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSAmazon Web Services
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Amazon Web Services
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Amazon Web Services
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...Amazon Web Services
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsAmazon Web Services
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareAmazon Web Services
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSAmazon Web Services
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAmazon Web Services
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareAmazon Web Services
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWSAmazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...Amazon Web Services
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceAmazon Web Services
 

Más de Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

Amazon EC2 deepdive and a sprinkel of AWS Compute | AWS Floor28

  • 1. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. SSID: Guest Password: Cube@11999 AMAZON EC2 DEEPDIVE 
 AND A SPRINKLE OF AWS COMPUTE Doron Rogov
 Technical Trainer
  • 2. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Floor28 Agenda GameDay 24 Oct Big Data Day 14 Oct Technical Sessions Serverless Data Workshop Big Data UG Meetup ML & DL Day 15 Oct Technical Sessions SageMaker Workshop ML&DL Meetup DevOps Day 16 Oct Technical Sessions K8s Workshop DevOps Meetup DevOps Day 17 Oct Technical Sessions Spot Workshop  Databases Day 18 Oct Technical Sessions PyTorch Meetup Builders Day AppSync, Alexa & IoT 22 Oct Technical Sessions CDK Workshop AWS IL UG Meetup Technical Sessions Serverless Workshop Virtual assistants UG Meetup Builders Day
 Serverless backend 21 Oct Enterprise IT Day 23 Oct Technical Sessions
  • 3. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. In this session •Understanding the factors that going into choosing an Amazon EC2 instance •Defining system performance and how it is characterized for different workloads •How Amazon EC2 instances deliver performance while providing flexibility and agility •How to make the most of your EC2 instance experience through the lens of several instance types
  • 4. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Elastic Compute Cloud (EC2) is big API EC2 EC2 Instances Networking Purchase options
  • 5. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. It all started with… First launched in August 2006 M1 instance “One size fits all” M1
  • 6. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 1 3 5 7 11 12 13 23 42 52 60 70 EC2 Instance Type Growth—Increased Choice
  • 7. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 11 2012 2013 2014 2015 2016 2017 12 13 23 42 52 60 70 EC2 Instance Type Growth—Increased Choice 2018 Over 100 different instances
  • 8. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon EC2 instances Host server Hypervisor Guest 1 Guest 2 Guest nInstance
  • 9. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Instance generation c5.xlargeInstance family Instance size
  • 10. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon EC2 Instance Types General Purpose Compute Optimized Memory Optimized Accelerated Computing Storage Optimized t3 c5 / c5d r5 / r5d p3 h1 t2 c4 r4 p2 i3 m5 / m5d x1 / x1e g3 d2 m4 z1d f1
  • 11. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. High Memory Instances Instance Name Memory Logical Processors Dedicated EBS Bandwidth Network Bandwidth u-6tb1.metal 6 TiB 448 14 Gbps 25 Gbps u-9tb1.metal 9 TiB 448 14 Gbps 25 Gbps u-12tb1.metal 12 TiB 448 14 Gbps 25 Gbps 24 TiB of memory coming in 2019
  • 12. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. NUMA (…NUMA Hi) • Non-uniform memory access • Each processor in a multi-CPU system has local memory that is accessible through a fast interconnect • Each processor can also access memory from other CPUs, but local memory access is a lot faster than remote memory • Performance is related to the number of CPU sockets and how they are connected—Intel QuickPath Interconnect (QPI)
  • 13. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. r5.24xlarge QPI 384GiB 384GiB 48 vCPUs 48 vCPUs
  • 14. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. x1e.32xlarge QPI QPI QPIQPI QPI 976GiB 976GiB 976GiB 976GiB 32 vCPU’s 32 vCPU’s 32 vCPU’s 32 vCPU’s
  • 15. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Tip: Kernel support for NUMA balancing • Linux Kernel 3.8+ and Windows Datacenter 2003+ support NUMA balancing • Not always the most efficient • Overhead of managing memory can slow down your app • Does your app have more memory that fits in a single socket? • Linux: set “numa=off” in grub to disable NUMA awareness • Do you have many processes or a footprint less than a single socket? • Linux: use “numactl” to restrict them to specific cores or nodes • Example: numactl --cpunodebind=0 --membind=0 ./myapp.run • Windows: use processor affinity to lock applications to specific cores
  • 16. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Instance sizing c5.18xlarge C72/R144 2 - c5.9xlarge C8/R16 ≈ 4 - c5.4xlarge ≈ 8 - c5.2xlarge ≈ ≈ etc≈etc
  • 17. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What’s a virtual CPU? (vCPU) • A vCPU is typically a hyper-threaded physical core* • On Linux, “A” threads enumerated before “B” threads • On Windows, threads are interleaved • Divide vCPU count by two to get core count * Remember the “T” family is special
  • 18. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. LSTOPO
  • 19. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Disable hyper-threading if you need to • Useful for FPU heavy applications (e.g. Financial calculation, Engineering simulation) • Use ‘lscpu’ to validate layout • Hot offline the “B” threads for cpunum in $(cat /sys/devices/system/cpu/cpu*/topology/ thread_siblings_list | cut -s -d, -f2- | tr ',' 'n' | sort -un); do echo 0 | sudo tee /sys/devices/system/cpu/cpu${cpunum}/online Done • Set grub to only initialize the first half of all threads maxcpus=20
  • 20. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. lscpu - r5.24xlarge Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 96 On-line CPU(s) list: 0-95 Thread(s) per core: 2 Core(s) per socket: 24 Socket(s): 2 NUMA node(s): 2 Vendor ID: GenuineIntel CPU family: 6 Model: 85 Model name: Intel(R) Xeon(R) Platinum 8175M CPU @ 2.50GHz Stepping: 4 CPU MHz: 1427.759 BogoMIPS: 5000.00 Hypervisor vendor: KVM Virtualization type: full L1d cache: 32K L1i cache: 32K L2 cache: 1024K L3 cache: 33792K NUMA node0 CPU(s): 0-23,48-71
  • 21. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 22. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Resource allocation • All resources assigned to you are dedicated to your instance with no over-commitment* • All vCPUs are dedicated to you • Memory allocated is assigned only to your instance • Network resources are partitioned to avoid “noisy neighbors” • Curious about the number of instances per host? Use “dedicated hosts” as a guide. *Again, the “T” family is special
  • 23. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. P-state and C-state control • c4.8xlarge, d2.8xlarge, m4.16xlarge, p2.16xlarge, x1.16xlarge, f1.16xlarge, x1.32xlarge, i3.metal, etc • By entering deeper idle states, non-idle cores can achieve up to 300MHz higher clock frequencies • But… deeper idle states require more time to exit, may not be appropriate for latency-sensitive workloads • Linux: limit c-state by adding “intel_idle.max_cstate=1” to grub • Windows: no options to control c states
  • 24. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Tip: P-state control for AVX2 • If an application makes heavy use of AVX2 on all cores, the processor may attempt to draw more power than it should • Processor will transparently reduce frequency • Frequent changes of CPU frequency can slow an application sudo sh -c "echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo“
 See also: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/processor_state_control.html
  • 25. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. T3 instances • Lowest cost Amazon EC2 instance at $0.0052 per hour • Burstable performance • Fixed allocation enforced with CPU credits • Unlimited mode by default Model vCPU Baseline CPU credits/ hour Maximum CPU credit Memory (GiB) t3.nano 2 5% 6 144 0.5 t3.micro 2 10% 12 288 1 t3.small 2 20% 24 576 2 t3.medium 2 20% 24 576 4 t3.large 2 30% 36 864 8 t3.xlarge 4 40% 96 2304 16 t3.2xlarge 8 40% 192 4608 32
  • 26. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How credits work Baseline rate Credit balance Burst rate • A CPU credit provides the performance of a full CPU core for one minute • An instance earns CPU credits at a steady rate • An instance consumes credits when active • Credits expire (leak) after 24 hours
  • 27. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Circa 2012
  • 28. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What is Nitro? From the C5 launch: Q. What is the new hypervisor for Amazon EC2? A. The new hypervisor for Amazon EC2, introduced with the launch of C5 instances, is a component that primarily provides CPU and memory isolation for C5 instances. VPC networking and EBS storage resources are implemented by dedicated hardware components that are part of all current generation EC2 instance families. It is built on core Linux Kernel-based Virtual Machine (KVM) technology, but does not include general purpose operating system components. • The Nitro Hypervisor is the “new hypervisor,” but more than just a hypervisor
  • 29. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Jan 2013 - CR1 (no Nitro) Amazon
 RDS IAM Amazon Linux cr1.8xlarge EBS Volumes Hardware Software DM Instance Storage DM DM DM VPC Networking
  • 30. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Nov 2013 - C3 (early Nitro) Amazon
 RDS IAM Amazon Linux c3.8xlarge Enhanced Networking Hardware Software DMDM DM EBS Volumes Instance Storage
  • 31. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Jan 2015 - C4 Amazon
 RDS IAM Amazon Linux c4.8xlarge EBS Volumes Enhanced Networking Hardware Software DM EBS Volumes
  • 32. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. May 2016 - X1 Amazon
 RDS IAM Amazon Linux x1.32xlarge Instance Storage Enhanced Networking Hardware Software DM DM EBS Volumes Instance Storage
  • 33. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon
 RDS IAM Amazon Linux i3.16xlarge EBS Volumes Instance Storage Enhanced Networking Hardware Software DM DM EBS Volumes I3 - Feb 2017
  • 34. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon
 RDS IAM Amazon Linux i3.16xlarge EBS Volumes Instance Storage Enhanced Networking Hardware Software DM DM EBS Volumes I3 - Feb 2017
  • 35. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Nov 2017 - C5 Amazon
 RDS IAM c5.18xlarge EBS Volumes Enhanced Networking Hardware Software Nitro Hypervisor
  • 36. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Nov 2017 - EC2 Bare Metal Amazon
 RDS IAM i3.metal EBS Volumes Instance Storage Enhanced Networking Hardware
  • 37. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. The Nitro System • Nitro Hypervisor • Lightweight hypervisor • Nitro Card • Storage • Networking • Management • Monitoring • Security • Nitro Security Chip • Integrated into the motherboard
  • 38. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. FAQs Q: Will my existing AMIs work on Nitro-based instances? Q: Will applications need to be modified? Q: Will all new instance types be based on the Nitro System? A: Yes. Most ENA capable AMIs have the necessary drivers. A: Most of the time, no. Some applications have relied on undocumented behavior to detect they are running within EC2 and they may require adjustment. A: In the fullness of time, we expect most (if not all) new instance types to be Nitro- based. We have no plans to convert existing instance types to Nitro and expect to continue to launch Xen based instance types where appropriate.
  • 39. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. P3 GPU Instances • NVIDIA Tesla V100 Volta Based GPU • 1 PetaFLOP of computational performance in a single instance • Up to 2.6X and 14X performance improvement over P2 for High-Performance Computing use-cases and Machine Learning use-cases (respectively) Instance Size GPUs Accelerator (V100) GPU Peer to Peer GPU Memory (GB) vCPUs Memory (GiB) Network Bandwidth EBS Bandwidth P3.2xlarge 1 1 No 16 8 61 Up to 10Gbps 1.7Gbps P3.8xlarge 4 4 NVLink 64 32 244 10Gbps 7Gbps P3.16xlarge 8 8 NVLink 128 64 488 25Gbps 14Gbps
  • 40. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. F1 FPGA instances • Up to 8 Xilinx Virtex UltraScale Plus VU9p FPGAs in a single instance with four high-speed DDR-4 per FPGA • Largest size includes high performance FPGA interconnects via PCIe Gen3 (FPGA Direct), and bidirectional ring (FPGA Link) • Designed for hardware-accelerated applications including financial computing, genomics, accelerated search, and image processing Instance size FPGAs FPGA Link FPGA Direct vCPUs Memory (GiB) NVMe Network bandwidth f1.2xlarge 1 - 8 122 1 x 470 Up to 10 Gigabit f1.16xlarge 8 Y Y 64 976 4 x 940 25 Gbps
  • 41. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. EBS performance Instance type EBS-optimized by default Max EBS bandwidth (Mbps)* Expected EBS throughput (MB/s)** Max. IOPS 
 (16 KB I/O size)** Max network bandwidth r4.16xlarge Yes 14,000 1,750 75,000 25 Gb/s r5d.24xlarge Yes 14,000 1,750 80,000 25 Gb/s i3.16xlarge Yes 14,000 1,750 65,000 25 Gb/s m5d.24xlarge Yes 14,000 1,750 80,000 25 Gb/s x1.32xlarge Yes 10,000 1,250 65,000 10 Gb/s • Instance size affects throughput • Match your volume size and type to your instance • RAID multiple EBS volumes together to achieve:
  • 42. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Summary: Getting the most out of EC2 instances • Use latest generation instances when possible • Monitor T3 CPU credits • NUMA balancing • C state and P state controls • Enhanced networking • Profile your application But, before you go…
  • 43. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Architectural Evolution Service Amazon EC2 Amazon ECS AWS Lambda Unit VM Task Function Level of abstraction H/W OS Runtime How do I choose? I want to configure servers, storage, networking, and my OS. I want to run servers, configure applications, and control scaling. Run my code when it’s needed.
  • 44. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. “Launching new instances and running tests in parallel is easy…[when choosing an instance] there is no substitute for measuring the performance of your full application.”
 -EC2 documentation
  • 45. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. SSID: Guest Password: Cube@11999 GAME DAY
 PUT YOUR SKILLS TO THE TEST
 OCT 24 
 Register now: bit.ly/Floor28GameDay
  • 46. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Thank You! Doron Rogov
 rogdoron@amazon.com
 in/doronrogov