SlideShare une entreprise Scribd logo
1  sur  39
México D.F.
EC2: Avanzado
Henry Alvarado
Arquitecto de soluciones
Amazon Web Services
• Qué es la plataforma de instancias EC2 y una
pequeña cartilla sobre virtualización.
• Cómo obtener lo máximo de su experiencia con
EC2 desde la lente de tres tipos de instancias?
• Cómo pensar sobre el futuro de las instancias
EC2
Agenda
Plataforma de instancias EC2
EC2
EC2
Amazon EC2 Instances
Host Server
Hypervisor
Guest 1 Guest 2 Guest n
c3.large
Familia
Generación de la instancia
Tamaño
Cartilla en virtualización: x86 CPU
• Antes de Intel VT-x
– Traducción binaria
– Para-virtualization (PV)
• Luego de Intel VT-x
– Virtualización asistida por hardware (HVM)
• PV vs. HVM Amazon Machine Images
• Opciones de agendamiento vCPU y variabilidad
Host Server
Hypervisor
Guest 1 Guest 2 Guest n
Cartilla en virtualización: I/O and Devices
• Agendamiento de I/O requests entre
dispositivos virtuales y hardware físico
compartido
• Modelo de driver separado para dispositivos
compartidos; requiere recursos de host
• Intel VT-d
– Direct pass through y IOMMU para dispositivos dedicados
Nuestra filosofía
• Más grande, más rápido, más
económico, consistente y flexible
• Nuestro objetivo en performance es el
bare metal
• Los clientes nos ayudan a priorizar
nuestro roadmap
• Mirada bajo el capó a través de la lente
de tres nuevas plataformas: C4, T2 e I2
Cómo obtener el máximo de su experiencia con EC2
Instancias T2: Bajo costo
Instancias T2: Resumen
• Instancias EC2 de bajo costo. Hasta $0.013 por
hora.
• Performance Variable vs. Fijo
Name vCPUs
Baseline
Performance
Platform RAM (GiB)
CPU Credits /
Hour
t2.micro 1 10% 32-bit or 64-bit 1 6
t2.small 1 20% 32-bit or 64-bit 2 12
t2.medium 2 40% 32-bit or 64-bit 4 24
t2.large 2 60% 64-bit 8 36NEW!
Tip: Entienda cómo funcionan los créditos de CPU
• http://aws.amazon.com/blogs/aws/low-cost-
burstable-ec2-instances/
• http://aws.amazon.com/ec2/instance-types/t2/
• Attend this session
Cómo funcionan los créditos?
Baseline Rate
Credit
Balance
• Un crédito de CPU provee el
performance de un core de CPU
completo por un minuto.
• Una instancia gana créditos de
CPU a una tasa constante.
• Una instancia consume los
créditos cuando está activa.
• Los créditos expiran (desbordan)
en el tiempo.
Burst
Rate
Los créditos de CPU
• Un crédito de CPU provee el performance de un
core de CPU completo por un minuto.
• Se provee con una balance inicial de créditos
para una buena experiencia durante el
arranque.
• Se usan créditos cuando se está activo y se
acumulan cuando se está en reposo.
• Transparentes con los balances de créditos.
Tip: Monitoree sus créditos de CPU
Instancias I2: Alto I/O
Instancias I2: Resumen
• 16 vCPU: 3.2 TB SSD; 32 vCPU: 6.4 TB SSD
• 365K random read IOPS for 32 vCPU instance
Model vCPU Memory
(GiB)
Storage Read IOPS Write IOPS
i2.xlarge 4 30.5 1 x 800 SSD 35,000 35,000
i2.2xlarge 8 61 2 x 800 SSD 75,000 75,000
i2.4xlarge 16 122 4 x 800 SSD 175,000 155,000
i2.8xlarge 32 244 8 x 800 SSD 365,000 315,000
Host Server
Hypervisor
Guest 4 Guest 5 Guest 6
Host Server
Hypervisor
Guest 1 Guest 2 Guest 3
Tip: Use el kernel 3.8+
• Amazon Linux 13.09 or later
• Ubuntu 14.04 or later
• RHEL7 or later
• Etc.
Antes de los Kernels -3.8.0
• Todos los I/O deben pasar a través del I/O Domain
• Requiere un “grant mapping” antes del kernel 3.8.0
• Grant mappings son operaciones costosas debido a los TLB flushes
read(fd, buffer, BLOCK_SIZE)
3.8.0+ Kernels – Persistente e indirecto
• Grant mappings son definidos por grupos una sola vez
• La data es copiada desde y hacia el grant pool
• El copiado es significativamente más rápido que el re mapeo
read(fd, buffer, BLOCK_SIZE)
Tip: Ejecute TRIM o realice Overprovision
SSDs y Wear Leveling
• FLASH tiene un número limitado de escrituras por
cada sector físico
– Los sectores se degradan; deben ser borrados antes de re escribir
en ellos
– Borrar coloca a todo 1s, lo que es lento
• Los firmware modernos son muy sofisticados para
extender la vida de FLASH
• TRIM y/o over provisioning ayuda a evitar el
garbage collection y el write amplification
Capa de traducción Flash
• Todas las escrituras van al TAIL
• Escritas aleatorias == Escritas secuenciales
• Desgaste homogéneo de los sectores (Wear Leveling)
HEAD
TAIL
Garbage Collection
• Nuevas escrituras tienen que buscar espacio disponible.
• Resulta en pausas de garbage collection
• Grandes escrituras pueden requerir desfragmentación.
HEAD
TAIL
Instancias C4: Alto poder de
Cómputo
Instancias C4: Resumen
• Intel E5-2666 v3 at 2.9 GHz
• EBS-Optimized por defecto
• Enhanced networking
Model vCPU Memory (GiB)
c4.large 2 3.75
c4.xlarge 4 7.5
c4.2xlarge 8 15
c4.4xlarge 16 30
c4.8xlarge 32 60
Tip: Usen PV-HVM AMIs con EBS
Por qué PV-HVM es más rápido que PV
• PV-HVM permite al Application llamar directamente al Kernel
• PV requiere ir a través del VMM
• Las aplicaciones que son restrictas a llamadas del sistema son
las más afectadas.
Kernel
Application
Kernel
Application
VMM
Application
VMM
Kernel
Bare Metal PV-HVM PV
Tip: Usen TSC como clocksource
Manteniendo el tiempo
• Llevar el tiempo en una instancia es engañosamente difícil
• gettimeofday(), clock_gettime(), QueryPerformanceCounter()
• El TSC
– Contador de CPU, accesible desde el userspace
– Sin cambios a partir de los procesadores Sandy Bridge+
• Por defecto está el Xen pvclock.
• En las generaciones actuales de instancias, use TSC como
clocksource
Resumen
Resumen
• Esta información es solo la superficie de lo que
podríamos hablar
• Pasen por la documentación de EC2 para más trucos y
tips
EC2
EC2
EC2 Avanzado

Contenu connexe

Tendances

Vulnerability and Assessment Penetration Testing
Vulnerability and Assessment Penetration TestingVulnerability and Assessment Penetration Testing
Vulnerability and Assessment Penetration TestingYvonne Marambanyika
 
Serverless Security: Are you ready for the Future?
Serverless Security: Are you ready for the Future?Serverless Security: Are you ready for the Future?
Serverless Security: Are you ready for the Future?James Wickett
 
Penetration testing
Penetration testingPenetration testing
Penetration testingAmmar WK
 
Introduction to Penetration Testing
Introduction to Penetration TestingIntroduction to Penetration Testing
Introduction to Penetration TestingAndrew McNicol
 
Splunk introduction
Splunk introductionSplunk introduction
Splunk introductionTruong Cuong
 
Penetration Testing
Penetration Testing Penetration Testing
Penetration Testing RomSoft SRL
 
What is Cyber Security - Avantika University
What is Cyber Security - Avantika UniversityWhat is Cyber Security - Avantika University
What is Cyber Security - Avantika UniversityAvantika University
 
Testing Your APIs: Postman, Newman, and Beyond
Testing Your APIs: Postman, Newman, and BeyondTesting Your APIs: Postman, Newman, and Beyond
Testing Your APIs: Postman, Newman, and BeyondPostman
 
VAPT PRESENTATION full.pptx
VAPT PRESENTATION full.pptxVAPT PRESENTATION full.pptx
VAPT PRESENTATION full.pptxDARSHANBHAVSAR14
 
An introduction to SOC (Security Operation Center)
An introduction to SOC (Security Operation Center)An introduction to SOC (Security Operation Center)
An introduction to SOC (Security Operation Center)Ahmad Haghighi
 
Driving Pipeline Automation With Newman and the Postman API
Driving Pipeline Automation With Newman and the Postman APIDriving Pipeline Automation With Newman and the Postman API
Driving Pipeline Automation With Newman and the Postman APIPostman
 
Security Operations, MITRE ATT&CK, SOC Roles / Competencies
Security Operations, MITRE ATT&CK, SOC Roles / Competencies Security Operations, MITRE ATT&CK, SOC Roles / Competencies
Security Operations, MITRE ATT&CK, SOC Roles / Competencies Harry McLaren
 
Network access control
Network access controlNetwork access control
Network access controlSinem Altan
 
Packet sniffing & ARP Poisoning
 Packet sniffing & ARP Poisoning  Packet sniffing & ARP Poisoning
Packet sniffing & ARP Poisoning Viren Rao
 
Trusted Platform Module (TPM)
Trusted Platform Module (TPM)Trusted Platform Module (TPM)
Trusted Platform Module (TPM)k33a
 
Nmap101 Eğitim Sunumu - Nmap Kullanım Kılavuzu
Nmap101 Eğitim Sunumu - Nmap Kullanım KılavuzuNmap101 Eğitim Sunumu - Nmap Kullanım Kılavuzu
Nmap101 Eğitim Sunumu - Nmap Kullanım KılavuzuMehmet Caner Köroğlu
 
AWS Monitoring & Logging
AWS Monitoring & LoggingAWS Monitoring & Logging
AWS Monitoring & LoggingJason Poley
 

Tendances (20)

Vulnerability and Assessment Penetration Testing
Vulnerability and Assessment Penetration TestingVulnerability and Assessment Penetration Testing
Vulnerability and Assessment Penetration Testing
 
Serverless Security: Are you ready for the Future?
Serverless Security: Are you ready for the Future?Serverless Security: Are you ready for the Future?
Serverless Security: Are you ready for the Future?
 
Penetration testing
Penetration testingPenetration testing
Penetration testing
 
Introduction to Penetration Testing
Introduction to Penetration TestingIntroduction to Penetration Testing
Introduction to Penetration Testing
 
Splunk introduction
Splunk introductionSplunk introduction
Splunk introduction
 
Penetration Testing
Penetration Testing Penetration Testing
Penetration Testing
 
What is Cyber Security - Avantika University
What is Cyber Security - Avantika UniversityWhat is Cyber Security - Avantika University
What is Cyber Security - Avantika University
 
Testing Your APIs: Postman, Newman, and Beyond
Testing Your APIs: Postman, Newman, and BeyondTesting Your APIs: Postman, Newman, and Beyond
Testing Your APIs: Postman, Newman, and Beyond
 
VAPT PRESENTATION full.pptx
VAPT PRESENTATION full.pptxVAPT PRESENTATION full.pptx
VAPT PRESENTATION full.pptx
 
cyber_security
cyber_securitycyber_security
cyber_security
 
An introduction to SOC (Security Operation Center)
An introduction to SOC (Security Operation Center)An introduction to SOC (Security Operation Center)
An introduction to SOC (Security Operation Center)
 
Driving Pipeline Automation With Newman and the Postman API
Driving Pipeline Automation With Newman and the Postman APIDriving Pipeline Automation With Newman and the Postman API
Driving Pipeline Automation With Newman and the Postman API
 
Security Operations, MITRE ATT&CK, SOC Roles / Competencies
Security Operations, MITRE ATT&CK, SOC Roles / Competencies Security Operations, MITRE ATT&CK, SOC Roles / Competencies
Security Operations, MITRE ATT&CK, SOC Roles / Competencies
 
Kali linux
Kali linuxKali linux
Kali linux
 
Network access control
Network access controlNetwork access control
Network access control
 
Packet sniffing & ARP Poisoning
 Packet sniffing & ARP Poisoning  Packet sniffing & ARP Poisoning
Packet sniffing & ARP Poisoning
 
Trusted Platform Module (TPM)
Trusted Platform Module (TPM)Trusted Platform Module (TPM)
Trusted Platform Module (TPM)
 
Nmap101 Eğitim Sunumu - Nmap Kullanım Kılavuzu
Nmap101 Eğitim Sunumu - Nmap Kullanım KılavuzuNmap101 Eğitim Sunumu - Nmap Kullanım Kılavuzu
Nmap101 Eğitim Sunumu - Nmap Kullanım Kılavuzu
 
Intro to Network Vapt
Intro to Network VaptIntro to Network Vapt
Intro to Network Vapt
 
AWS Monitoring & Logging
AWS Monitoring & LoggingAWS Monitoring & Logging
AWS Monitoring & Logging
 

Similaire à EC2 Avanzado

AWS Summits América Latina 2015- EC2 Computo en la nube
AWS Summits América Latina 2015- EC2 Computo en la nubeAWS Summits América Latina 2015- EC2 Computo en la nube
AWS Summits América Latina 2015- EC2 Computo en la nubeAmazon Web Services LATAM
 
AWS Summit Bogotá Track Básico: EC2 & Servicios de Computación.
AWS Summit Bogotá Track Básico: EC2 & Servicios de Computación. AWS Summit Bogotá Track Básico: EC2 & Servicios de Computación.
AWS Summit Bogotá Track Básico: EC2 & Servicios de Computación. Amazon Web Services
 
VMs de alto rendimiento para SQL Server en AWS y Azure
VMs de alto rendimiento para SQL Server en AWS y AzureVMs de alto rendimiento para SQL Server en AWS y Azure
VMs de alto rendimiento para SQL Server en AWS y AzureSpanishPASSVC
 
PROCESADORES ULTIMA GENERACIÓN
PROCESADORES ULTIMA GENERACIÓNPROCESADORES ULTIMA GENERACIÓN
PROCESADORES ULTIMA GENERACIÓNDairaCarolina
 
Informatica cuestionario
Informatica cuestionarioInformatica cuestionario
Informatica cuestionarioPaulaELy
 
Cuestionario de informatica
Cuestionario de informaticaCuestionario de informatica
Cuestionario de informaticaNataly Silvana
 
Informatica cuestionario (tatiana vargas)
Informatica cuestionario (tatiana vargas)Informatica cuestionario (tatiana vargas)
Informatica cuestionario (tatiana vargas)Pame Vanessa
 
Consideraciones de hardware para SQL Server
Consideraciones de hardware para SQL ServerConsideraciones de hardware para SQL Server
Consideraciones de hardware para SQL ServerEduardo Castro
 
Arquitectura de ordenador
Arquitectura de ordenadorArquitectura de ordenador
Arquitectura de ordenadoredgar uyarte
 
Arquitectura de ordenador
Arquitectura de ordenadorArquitectura de ordenador
Arquitectura de ordenadorKaty_S16
 
Trabajo modalidad julio cano e iván riaño
Trabajo modalidad julio cano e iván riañoTrabajo modalidad julio cano e iván riaño
Trabajo modalidad julio cano e iván riañoJulio Cano Arias
 

Similaire à EC2 Avanzado (20)

EC2: Cómputo en la nube a profundidad
EC2: Cómputo en la nube a profundidad EC2: Cómputo en la nube a profundidad
EC2: Cómputo en la nube a profundidad
 
AWS Summits América Latina 2015- EC2 Computo en la nube
AWS Summits América Latina 2015- EC2 Computo en la nubeAWS Summits América Latina 2015- EC2 Computo en la nube
AWS Summits América Latina 2015- EC2 Computo en la nube
 
AWS Summit Bogotá Track Básico: EC2 & Servicios de Computación.
AWS Summit Bogotá Track Básico: EC2 & Servicios de Computación. AWS Summit Bogotá Track Básico: EC2 & Servicios de Computación.
AWS Summit Bogotá Track Básico: EC2 & Servicios de Computación.
 
VMs de alto rendimiento para SQL Server en AWS y Azure
VMs de alto rendimiento para SQL Server en AWS y AzureVMs de alto rendimiento para SQL Server en AWS y Azure
VMs de alto rendimiento para SQL Server en AWS y Azure
 
PROCESADORES ULTIMA GENERACIÓN
PROCESADORES ULTIMA GENERACIÓNPROCESADORES ULTIMA GENERACIÓN
PROCESADORES ULTIMA GENERACIÓN
 
EC2 Cómputo en la nube a profundidad
EC2 Cómputo en la nube a profundidad EC2 Cómputo en la nube a profundidad
EC2 Cómputo en la nube a profundidad
 
EC2: Cómputo en la nube a profundidad
EC2: Cómputo en la nube a profundidadEC2: Cómputo en la nube a profundidad
EC2: Cómputo en la nube a profundidad
 
Procesadores
ProcesadoresProcesadores
Procesadores
 
Hardware para servidores 2017
Hardware para servidores 2017Hardware para servidores 2017
Hardware para servidores 2017
 
Informatica cuestionario
Informatica cuestionarioInformatica cuestionario
Informatica cuestionario
 
Cuestionario de informatica
Cuestionario de informaticaCuestionario de informatica
Cuestionario de informatica
 
Informatica cuestionario
Informatica cuestionarioInformatica cuestionario
Informatica cuestionario
 
Informatica cuestionario (Cindy Pineda)
Informatica cuestionario (Cindy Pineda)Informatica cuestionario (Cindy Pineda)
Informatica cuestionario (Cindy Pineda)
 
Informatica cuestionario (tatiana vargas)
Informatica cuestionario (tatiana vargas)Informatica cuestionario (tatiana vargas)
Informatica cuestionario (tatiana vargas)
 
Cuestionario de informatica
Cuestionario de informaticaCuestionario de informatica
Cuestionario de informatica
 
Consideraciones de hardware para SQL Server
Consideraciones de hardware para SQL ServerConsideraciones de hardware para SQL Server
Consideraciones de hardware para SQL Server
 
Arquitectura de ordenador
Arquitectura de ordenadorArquitectura de ordenador
Arquitectura de ordenador
 
Arquitectura de ordenador
Arquitectura de ordenadorArquitectura de ordenador
Arquitectura de ordenador
 
Trabajo modalidad julio cano e iván riaño
Trabajo modalidad julio cano e iván riañoTrabajo modalidad julio cano e iván riaño
Trabajo modalidad julio cano e iván riaño
 
Taller
TallerTaller
Taller
 

Plus 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
 

Plus 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
 

Dernier

Arenas Camacho-Practica tarea Sesión 12.pptx
Arenas Camacho-Practica tarea Sesión 12.pptxArenas Camacho-Practica tarea Sesión 12.pptx
Arenas Camacho-Practica tarea Sesión 12.pptxJOSEFERNANDOARENASCA
 
definicion segun autores de matemáticas educativa
definicion segun autores de matemáticas  educativadefinicion segun autores de matemáticas  educativa
definicion segun autores de matemáticas educativaAdrianaMartnez618894
 
dokumen.tips_36274588-sistema-heui-eui.ppt
dokumen.tips_36274588-sistema-heui-eui.pptdokumen.tips_36274588-sistema-heui-eui.ppt
dokumen.tips_36274588-sistema-heui-eui.pptMiguelAtencio10
 
Excel (1) tecnologia.pdf trabajo Excel taller
Excel  (1) tecnologia.pdf trabajo Excel tallerExcel  (1) tecnologia.pdf trabajo Excel taller
Excel (1) tecnologia.pdf trabajo Excel tallerValentinaTabares11
 
El uso delas tic en la vida cotidiana MFEL
El uso delas tic en la vida cotidiana MFELEl uso delas tic en la vida cotidiana MFEL
El uso delas tic en la vida cotidiana MFELmaryfer27m
 
Mapa-conceptual-del-Origen-del-Universo-3.pptx
Mapa-conceptual-del-Origen-del-Universo-3.pptxMapa-conceptual-del-Origen-del-Universo-3.pptx
Mapa-conceptual-del-Origen-del-Universo-3.pptxMidwarHenryLOZAFLORE
 
Explorando la historia y funcionamiento de la memoria ram
Explorando la historia y funcionamiento de la memoria ramExplorando la historia y funcionamiento de la memoria ram
Explorando la historia y funcionamiento de la memoria ramDIDIERFERNANDOGUERRE
 
TEMA 2 PROTOCOLO DE EXTRACCION VEHICULAR.ppt
TEMA 2 PROTOCOLO DE EXTRACCION VEHICULAR.pptTEMA 2 PROTOCOLO DE EXTRACCION VEHICULAR.ppt
TEMA 2 PROTOCOLO DE EXTRACCION VEHICULAR.pptJavierHerrera662252
 
FloresMorales_Montserrath_M1S3AI6 (1).pptx
FloresMorales_Montserrath_M1S3AI6 (1).pptxFloresMorales_Montserrath_M1S3AI6 (1).pptx
FloresMorales_Montserrath_M1S3AI6 (1).pptx241522327
 
Presentación inteligencia artificial en la actualidad
Presentación inteligencia artificial en la actualidadPresentación inteligencia artificial en la actualidad
Presentación inteligencia artificial en la actualidadMiguelAngelVillanuev48
 
LUXOMETRO EN SALUD OCUPACIONAL(FINAL).ppt
LUXOMETRO EN SALUD OCUPACIONAL(FINAL).pptLUXOMETRO EN SALUD OCUPACIONAL(FINAL).ppt
LUXOMETRO EN SALUD OCUPACIONAL(FINAL).pptchaverriemily794
 
Crear un recurso multimedia. Maricela_Ponce_DomingoM1S3AI6-1.pptx
Crear un recurso multimedia. Maricela_Ponce_DomingoM1S3AI6-1.pptxCrear un recurso multimedia. Maricela_Ponce_DomingoM1S3AI6-1.pptx
Crear un recurso multimedia. Maricela_Ponce_DomingoM1S3AI6-1.pptxNombre Apellidos
 
Tecnologias Starlink para el mundo tec.pptx
Tecnologias Starlink para el mundo tec.pptxTecnologias Starlink para el mundo tec.pptx
Tecnologias Starlink para el mundo tec.pptxGESTECPERUSAC
 
LAS_TIC_COMO_HERRAMIENTAS_EN_LA_INVESTIGACIÓN.pptx
LAS_TIC_COMO_HERRAMIENTAS_EN_LA_INVESTIGACIÓN.pptxLAS_TIC_COMO_HERRAMIENTAS_EN_LA_INVESTIGACIÓN.pptx
LAS_TIC_COMO_HERRAMIENTAS_EN_LA_INVESTIGACIÓN.pptxAlexander López
 
El_Blog_como_herramienta_de_publicacion_y_consulta_de_investigacion.pptx
El_Blog_como_herramienta_de_publicacion_y_consulta_de_investigacion.pptxEl_Blog_como_herramienta_de_publicacion_y_consulta_de_investigacion.pptx
El_Blog_como_herramienta_de_publicacion_y_consulta_de_investigacion.pptxAlexander López
 
El uso de las tic en la vida ,lo importante que son
El uso de las tic en la vida ,lo importante  que sonEl uso de las tic en la vida ,lo importante  que son
El uso de las tic en la vida ,lo importante que son241514984
 
Segunda ley de la termodinámica TERMODINAMICA.pptx
Segunda ley de la termodinámica TERMODINAMICA.pptxSegunda ley de la termodinámica TERMODINAMICA.pptx
Segunda ley de la termodinámica TERMODINAMICA.pptxMariaBurgos55
 
El uso de las TIC's en la vida cotidiana.
El uso de las TIC's en la vida cotidiana.El uso de las TIC's en la vida cotidiana.
El uso de las TIC's en la vida cotidiana.241514949
 
Actividad integradora 6 CREAR UN RECURSO MULTIMEDIA
Actividad integradora 6    CREAR UN RECURSO MULTIMEDIAActividad integradora 6    CREAR UN RECURSO MULTIMEDIA
Actividad integradora 6 CREAR UN RECURSO MULTIMEDIA241531640
 
AREA TECNOLOGIA E INFORMATICA TRABAJO EN EQUIPO
AREA TECNOLOGIA E INFORMATICA TRABAJO EN EQUIPOAREA TECNOLOGIA E INFORMATICA TRABAJO EN EQUIPO
AREA TECNOLOGIA E INFORMATICA TRABAJO EN EQUIPOnarvaezisabella21
 

Dernier (20)

Arenas Camacho-Practica tarea Sesión 12.pptx
Arenas Camacho-Practica tarea Sesión 12.pptxArenas Camacho-Practica tarea Sesión 12.pptx
Arenas Camacho-Practica tarea Sesión 12.pptx
 
definicion segun autores de matemáticas educativa
definicion segun autores de matemáticas  educativadefinicion segun autores de matemáticas  educativa
definicion segun autores de matemáticas educativa
 
dokumen.tips_36274588-sistema-heui-eui.ppt
dokumen.tips_36274588-sistema-heui-eui.pptdokumen.tips_36274588-sistema-heui-eui.ppt
dokumen.tips_36274588-sistema-heui-eui.ppt
 
Excel (1) tecnologia.pdf trabajo Excel taller
Excel  (1) tecnologia.pdf trabajo Excel tallerExcel  (1) tecnologia.pdf trabajo Excel taller
Excel (1) tecnologia.pdf trabajo Excel taller
 
El uso delas tic en la vida cotidiana MFEL
El uso delas tic en la vida cotidiana MFELEl uso delas tic en la vida cotidiana MFEL
El uso delas tic en la vida cotidiana MFEL
 
Mapa-conceptual-del-Origen-del-Universo-3.pptx
Mapa-conceptual-del-Origen-del-Universo-3.pptxMapa-conceptual-del-Origen-del-Universo-3.pptx
Mapa-conceptual-del-Origen-del-Universo-3.pptx
 
Explorando la historia y funcionamiento de la memoria ram
Explorando la historia y funcionamiento de la memoria ramExplorando la historia y funcionamiento de la memoria ram
Explorando la historia y funcionamiento de la memoria ram
 
TEMA 2 PROTOCOLO DE EXTRACCION VEHICULAR.ppt
TEMA 2 PROTOCOLO DE EXTRACCION VEHICULAR.pptTEMA 2 PROTOCOLO DE EXTRACCION VEHICULAR.ppt
TEMA 2 PROTOCOLO DE EXTRACCION VEHICULAR.ppt
 
FloresMorales_Montserrath_M1S3AI6 (1).pptx
FloresMorales_Montserrath_M1S3AI6 (1).pptxFloresMorales_Montserrath_M1S3AI6 (1).pptx
FloresMorales_Montserrath_M1S3AI6 (1).pptx
 
Presentación inteligencia artificial en la actualidad
Presentación inteligencia artificial en la actualidadPresentación inteligencia artificial en la actualidad
Presentación inteligencia artificial en la actualidad
 
LUXOMETRO EN SALUD OCUPACIONAL(FINAL).ppt
LUXOMETRO EN SALUD OCUPACIONAL(FINAL).pptLUXOMETRO EN SALUD OCUPACIONAL(FINAL).ppt
LUXOMETRO EN SALUD OCUPACIONAL(FINAL).ppt
 
Crear un recurso multimedia. Maricela_Ponce_DomingoM1S3AI6-1.pptx
Crear un recurso multimedia. Maricela_Ponce_DomingoM1S3AI6-1.pptxCrear un recurso multimedia. Maricela_Ponce_DomingoM1S3AI6-1.pptx
Crear un recurso multimedia. Maricela_Ponce_DomingoM1S3AI6-1.pptx
 
Tecnologias Starlink para el mundo tec.pptx
Tecnologias Starlink para el mundo tec.pptxTecnologias Starlink para el mundo tec.pptx
Tecnologias Starlink para el mundo tec.pptx
 
LAS_TIC_COMO_HERRAMIENTAS_EN_LA_INVESTIGACIÓN.pptx
LAS_TIC_COMO_HERRAMIENTAS_EN_LA_INVESTIGACIÓN.pptxLAS_TIC_COMO_HERRAMIENTAS_EN_LA_INVESTIGACIÓN.pptx
LAS_TIC_COMO_HERRAMIENTAS_EN_LA_INVESTIGACIÓN.pptx
 
El_Blog_como_herramienta_de_publicacion_y_consulta_de_investigacion.pptx
El_Blog_como_herramienta_de_publicacion_y_consulta_de_investigacion.pptxEl_Blog_como_herramienta_de_publicacion_y_consulta_de_investigacion.pptx
El_Blog_como_herramienta_de_publicacion_y_consulta_de_investigacion.pptx
 
El uso de las tic en la vida ,lo importante que son
El uso de las tic en la vida ,lo importante  que sonEl uso de las tic en la vida ,lo importante  que son
El uso de las tic en la vida ,lo importante que son
 
Segunda ley de la termodinámica TERMODINAMICA.pptx
Segunda ley de la termodinámica TERMODINAMICA.pptxSegunda ley de la termodinámica TERMODINAMICA.pptx
Segunda ley de la termodinámica TERMODINAMICA.pptx
 
El uso de las TIC's en la vida cotidiana.
El uso de las TIC's en la vida cotidiana.El uso de las TIC's en la vida cotidiana.
El uso de las TIC's en la vida cotidiana.
 
Actividad integradora 6 CREAR UN RECURSO MULTIMEDIA
Actividad integradora 6    CREAR UN RECURSO MULTIMEDIAActividad integradora 6    CREAR UN RECURSO MULTIMEDIA
Actividad integradora 6 CREAR UN RECURSO MULTIMEDIA
 
AREA TECNOLOGIA E INFORMATICA TRABAJO EN EQUIPO
AREA TECNOLOGIA E INFORMATICA TRABAJO EN EQUIPOAREA TECNOLOGIA E INFORMATICA TRABAJO EN EQUIPO
AREA TECNOLOGIA E INFORMATICA TRABAJO EN EQUIPO
 

EC2 Avanzado

  • 2. EC2: Avanzado Henry Alvarado Arquitecto de soluciones Amazon Web Services
  • 3. • Qué es la plataforma de instancias EC2 y una pequeña cartilla sobre virtualización. • Cómo obtener lo máximo de su experiencia con EC2 desde la lente de tres tipos de instancias? • Cómo pensar sobre el futuro de las instancias EC2 Agenda
  • 6. Amazon EC2 Instances Host Server Hypervisor Guest 1 Guest 2 Guest n
  • 7.
  • 9. Cartilla en virtualización: x86 CPU • Antes de Intel VT-x – Traducción binaria – Para-virtualization (PV) • Luego de Intel VT-x – Virtualización asistida por hardware (HVM) • PV vs. HVM Amazon Machine Images • Opciones de agendamiento vCPU y variabilidad
  • 11. Cartilla en virtualización: I/O and Devices • Agendamiento de I/O requests entre dispositivos virtuales y hardware físico compartido • Modelo de driver separado para dispositivos compartidos; requiere recursos de host • Intel VT-d – Direct pass through y IOMMU para dispositivos dedicados
  • 12. Nuestra filosofía • Más grande, más rápido, más económico, consistente y flexible • Nuestro objetivo en performance es el bare metal • Los clientes nos ayudan a priorizar nuestro roadmap • Mirada bajo el capó a través de la lente de tres nuevas plataformas: C4, T2 e I2
  • 13. Cómo obtener el máximo de su experiencia con EC2
  • 15. Instancias T2: Resumen • Instancias EC2 de bajo costo. Hasta $0.013 por hora. • Performance Variable vs. Fijo Name vCPUs Baseline Performance Platform RAM (GiB) CPU Credits / Hour t2.micro 1 10% 32-bit or 64-bit 1 6 t2.small 1 20% 32-bit or 64-bit 2 12 t2.medium 2 40% 32-bit or 64-bit 4 24 t2.large 2 60% 64-bit 8 36NEW!
  • 16. Tip: Entienda cómo funcionan los créditos de CPU • http://aws.amazon.com/blogs/aws/low-cost- burstable-ec2-instances/ • http://aws.amazon.com/ec2/instance-types/t2/ • Attend this session
  • 17. Cómo funcionan los créditos? Baseline Rate Credit Balance • Un crédito de CPU provee el performance de un core de CPU completo por un minuto. • Una instancia gana créditos de CPU a una tasa constante. • Una instancia consume los créditos cuando está activa. • Los créditos expiran (desbordan) en el tiempo. Burst Rate
  • 18. Los créditos de CPU • Un crédito de CPU provee el performance de un core de CPU completo por un minuto. • Se provee con una balance inicial de créditos para una buena experiencia durante el arranque. • Se usan créditos cuando se está activo y se acumulan cuando se está en reposo. • Transparentes con los balances de créditos.
  • 19. Tip: Monitoree sus créditos de CPU
  • 21. Instancias I2: Resumen • 16 vCPU: 3.2 TB SSD; 32 vCPU: 6.4 TB SSD • 365K random read IOPS for 32 vCPU instance Model vCPU Memory (GiB) Storage Read IOPS Write IOPS i2.xlarge 4 30.5 1 x 800 SSD 35,000 35,000 i2.2xlarge 8 61 2 x 800 SSD 75,000 75,000 i2.4xlarge 16 122 4 x 800 SSD 175,000 155,000 i2.8xlarge 32 244 8 x 800 SSD 365,000 315,000
  • 22. Host Server Hypervisor Guest 4 Guest 5 Guest 6 Host Server Hypervisor Guest 1 Guest 2 Guest 3
  • 23. Tip: Use el kernel 3.8+ • Amazon Linux 13.09 or later • Ubuntu 14.04 or later • RHEL7 or later • Etc.
  • 24. Antes de los Kernels -3.8.0 • Todos los I/O deben pasar a través del I/O Domain • Requiere un “grant mapping” antes del kernel 3.8.0 • Grant mappings son operaciones costosas debido a los TLB flushes read(fd, buffer, BLOCK_SIZE)
  • 25. 3.8.0+ Kernels – Persistente e indirecto • Grant mappings son definidos por grupos una sola vez • La data es copiada desde y hacia el grant pool • El copiado es significativamente más rápido que el re mapeo read(fd, buffer, BLOCK_SIZE)
  • 26. Tip: Ejecute TRIM o realice Overprovision
  • 27. SSDs y Wear Leveling • FLASH tiene un número limitado de escrituras por cada sector físico – Los sectores se degradan; deben ser borrados antes de re escribir en ellos – Borrar coloca a todo 1s, lo que es lento • Los firmware modernos son muy sofisticados para extender la vida de FLASH • TRIM y/o over provisioning ayuda a evitar el garbage collection y el write amplification
  • 28. Capa de traducción Flash • Todas las escrituras van al TAIL • Escritas aleatorias == Escritas secuenciales • Desgaste homogéneo de los sectores (Wear Leveling) HEAD TAIL
  • 29. Garbage Collection • Nuevas escrituras tienen que buscar espacio disponible. • Resulta en pausas de garbage collection • Grandes escrituras pueden requerir desfragmentación. HEAD TAIL
  • 30. Instancias C4: Alto poder de Cómputo
  • 31. Instancias C4: Resumen • Intel E5-2666 v3 at 2.9 GHz • EBS-Optimized por defecto • Enhanced networking Model vCPU Memory (GiB) c4.large 2 3.75 c4.xlarge 4 7.5 c4.2xlarge 8 15 c4.4xlarge 16 30 c4.8xlarge 32 60
  • 32. Tip: Usen PV-HVM AMIs con EBS
  • 33. Por qué PV-HVM es más rápido que PV • PV-HVM permite al Application llamar directamente al Kernel • PV requiere ir a través del VMM • Las aplicaciones que son restrictas a llamadas del sistema son las más afectadas. Kernel Application Kernel Application VMM Application VMM Kernel Bare Metal PV-HVM PV
  • 34. Tip: Usen TSC como clocksource
  • 35. Manteniendo el tiempo • Llevar el tiempo en una instancia es engañosamente difícil • gettimeofday(), clock_gettime(), QueryPerformanceCounter() • El TSC – Contador de CPU, accesible desde el userspace – Sin cambios a partir de los procesadores Sandy Bridge+ • Por defecto está el Xen pvclock. • En las generaciones actuales de instancias, use TSC como clocksource
  • 37. Resumen • Esta información es solo la superficie de lo que podríamos hablar • Pasen por la documentación de EC2 para más trucos y tips

Notes de l'éditeur

  1. El equipo de EC2 pasa mucho tempo hablando con los clientes, mirando entre datos de uso y qué construir luego. Documento interno de product requests totalmente basado en las experiencias de los usuarios. Pasan largas horas en la noche para lograr desplegar nuevas instancias y que ustedes reciban un email de algo nuevo en EC2.
  2. Hablar de 3 cosas EC2 y la evolución de la virtualización Como obtener lo mejor de su experiencia de uso con EC2 para que se lleven una seria de mejores prácticas. Como va a ser el futuro de EC2
  3. Amazon Elastic Compute Cloud es un servicio web que hace más facil para ustedes obtener servidores virtuales de forma rápida, económica y sin invertir en capex. Ok, todos sabemos eso..
  4. Esta charla realmente es difícil de dar porque tiene demasiados temas posibles para cobrir. APIs/Redes/Pricing models/Instancias como tal.. Vamos a hacer entonces algo un poco más enfocado. En seguida VPC a profundidad (Avanzando) y a la 1:15 Almacenamiento y respaldo en AWS (Principiante). Al incio solo m1.small 2GB de memoria. Rápidamente percibimos que el cliente requería variedad para diferentes cargas. When you own the hardware and rent it, rather than sell it, everything changes. We understand much more intimately how customers use the hardware, and we become obsessed with total cost of ownership. The selection of instances has grown, now reaching 44 instances. And over the past 2 years we’ve grown disproportionately compared to previous years. What’s enabled us to do this and how do we make sense of the options? The EC2 platform is the engine that allows us to produce new instance sizes quickly to meet the needs of different workload segments It’s the hardware and the hypervisor depicted a couple slides ago, it’s the EC2 control plane, and it’s also a procurement and supply chain teams, and datacenter operations teams Lot’s of technologies, teams, and processes tat make up the EC2 platform. With the platform we’re able to ingest new technologies to do one of two things, either create a new instance family to address a different market segment, or bring forward a new generation which serves an existing segment with more performance, new feature, and or lower prices. As technology improves, we want to ensure customer are able to benefit from improvements in CPU, SSD, and other components. We do this through our current generation instance types.
  5. Nivelarnos em conocimientos Encontramos y administramos el hardware para rodar sus instancias EC2 instances are virtual machines that are spun up when you issue an ec2-run-instances call, or a ec2-start-instances call We find available hardware and signal the hypervisor to create your virtual machine instance We then hand over the SSH keys or the Windows Administrator password, and its yours to do as you please Server often have more processing power than your application needs, and virtual machines provide us a way to consolidate a number of instances on a single host, providing you low prices while also preserving isolation So there can be multiple virtual machines per host and there is sometimes only one virtual machine per host, depending on the instance size
  6. Definimos las instancias de forma similar a como usted lo haría con un servidor. Optimizamos el número de dimensiones. When we define instances we define them similarly to how you might spec out a server Optimize on a number of dimensions When we talk about families these are the drivers EC2 has a broad selection of instance types to satisfy the resource needs of a diversity of workloads. Our instance families are logical groupings of instances, and you can see each has a different focus For example, compute optimized instances have a higher balance of CPU power and offer the best price for compute performance Memory optimized instances have a higher balance of memory and offer the best price per GB of RAM And you can see where I’m going with storage optimized, which offers the best value for either IO performance or per GB of instance storage Things have changed since we first started up EC2 back in 2006, when we launched the m1.small instance. It’s CPU was specified as a performance measure, the ECU. We now provide a lot more transparency. For example, you know the model number, base clock frequency, and turbo of the processor underlying a c3.large
  7. This is all reflected in our API name, but we haven’t really called it out this way before. Quick review since these terms will come up often in the remainder of the presentaiton Within each family are generations You’ll see listed at the top of each family the current generation, for example C3 in compute optimized and R3 in memory optimized Within each generation or instance type, we offer multiple sizes Each size within a generation has a similar balance of resources, so each C3 size has a similar ratio of compute, memory, and storage Each size is typically 2x the resources and 2x the price of the next smallest size, so for example a c3.2xlarge has twice the resources of a c3.xlarge and is 2x the price You can pick the size that meets the needs of your workload
  8. Evolucion en virtualización x86 Lo que hemos hecho +performance – jitter, OS flexibilities. El hipervisor tiene que interceptar cualquier instrucción que haga um cambio sobre el sistema. Antes de VT-x (Tecnología de virtualización assistida por hardware) Escanear la instrucción y traduccion binaria. –Perfor +Sin cambiar el guest OS Ignorar y usar hypercalls para reemplazarlas. -Requiere modificación del OS del guest (PV) VTX – nuevo modo de ejecución de CPU. No tiene perdida de perf y no requ modif. El OS del guest. (HVM) T2, R3, I2, C4 solo HVM Opciones de scheduling. Cuando el hipervisor asigna según necesidad vCPUs basado en el CPU físico, esto resulta en variabilidad de recursos de CPU asignados. Creamos controles como asignación directa de puertos para mantener la consistencia que es lo más importante para nosotros. Going to talk about some industry trends in virtualization, which is important background for understanding some of the things Anthony will dive into A lot of what we have done over the years relates to the challenges of virtualization – increasing performance, reducing jitter, and providing operating system flexibility. The hypervisor must be able to trap any instruction that changes the hardware or state of the system. This is to provide isolation between virtual machines. Before Inten VT-x, there were 17 instructions in x86 instruction set that don’t have this property. So you have a couple options So you can scan the instruction stream of each virtual machine for privileged instructions and do binary translation – performance is not ideal Ignore those instructions and provide “hypercalls” to replace instructions that lose their functionality – modified OS Kernel, compatibility and portability Use hardware assisted virtualization technology provide a new CPU execution mode feature that allows the hypervisor to run in a new root mode below ring 0. The hypervisor also provides hypercall interfaces for other critical kernel operations such as memory management, interrupt handling and time keeping. When virtualizing the CPU, one also has a choices of how to assign physical CPU cores to virtual CPUs.
  9. Tendendencias de virtualizacion. Lo que hemos hecho +performance – jitter, OS flexibilities. Nuestro hipervisor debe interceptar cualquier instrucción que cambie el estado del hardware para aislar. Antes de VT-x habia 17 instrucciones que no lograban hacer esto. Escanear la instrucción y traduccion binaria. –Perfor Ignorar y usar hypercalls para reemplazarlas. Requiere modificacion de kernel VTX permite al hipervisor tener más privilégios usando hardware assisted virtualization. Cuando se virtualiza cpu se debe escoger bien como hacerlo para mantener la independência
  10. También debemos mantener el performance consistente en términos de IO y acceso a dispositivos. El reto es hacer el agendamento de los IO requiest entre los dispositivos virtuales y físicos. Tradicionalmente se usa um modelo de driver dividido. Uma parte em el host OS y outra em el guest OS. – Genera variabilidade. – Uso de recursos de host. Uma opcion es hacer um pass through del dispositivo directo a la VM. + No usa recursos – Es peligroso al ser multi tenant Intel VT-d que dejar hacer pass throug a travez de um IO memory management unit y logra hacer memory address translation com page tables. Drivers consistentes entre dispositivos entrega mejor portabilidad entre diferentes HW. El principal reto assignar memoria permitiendo el OS usar diretamente. Seguridad! IOMMU puede identificar la fuente y puede rechazar accesos. Tiene tablas para manejar espacios Se usa para Memoria, isntancias GPU, drivers PCI Consistent device drivers provided in a split driver model allows for better portability of machine images across hardware generations. Allows hardware specific drivers to reside in a control operating system, and simple front-end driver in the guest communicates to the back-end through ring buffers in shared memory pages. The multiplexing happens on the host, and it can require host CPU resoruces. The original challenge of assigning a device to a virtual machine has to with direct memory access, so a device can modify memory without bothering the CPU. That would be a serious security hole if allowed in the context of a multi-tenant host. IOMMU can identify source devices and either deny or translate memory requests using IOMMU page tables. This enables the hypervisor to assign specific devices to a guest and restrict device memory access to pages owned by the guest. This is how we enable PCI-passthrough for things like GPU instances and SR-IOV network devices.
  11. Lo logramos por la escala que tenemos Objetico de eliminar trade offs. With our scale we’re able to bring things to customers which might not otherwise come as quickly Much of our investment in the EC2 Platform has been to tackle one or more of these virtualization challenges, eliminate tradeoffs
  12. Les voy a mostrar como obtener el máximo com su experiência.
  13. T2: Las de más bajo costo Perfecta para um uso general.
  14. Muy baja latência de acceso al disco Para obtener esto se require um tunning
  15. Corta explicación de instance store
  16. Use este kernel o superior
  17. Les voy a explicar por que es esta la recomendacion Cada vez que la instancia iba a hace i/o, se decide ler a esta posicion em memoria Instancias no tiene acceso directo a sus ssd Tenemos um I/O Domain Por defecto el i/o domain no tiene acceso a la memoria. La instancia tiene que darlo Es rápido para grandes cantaidades de datos Requiere TLB flush por operación. Es muy costosos
  18. Se pre aprueba acceso a um pull de bloques de memoria Procesadores nuevos son muy Buenos haciendo copias de datos, hasta doblar el IO performance. Igual com kernel anterior funcionan bien si la necesidad es solo latência y no cant de io
  19. Se debe usar o no trim? Operación solo para SSD. Depende de la ami pero se obtienen excelentes resultados al Hacer periódica uma vez por semana o por dia, Windows no soporta trim Si no hay trim, se reserva el 10% del disco y nunca se usa. Mismo efecto
  20. Por qué es importante: Los SSD son muy sofisticados. La tecnologia de FLASH se degrada com cada escrita. Sectores de disco Despues de millones de escritas, para de funcionar. Uma DB podria re escribir logs de transaciones. Si se realiza esto em el mismo sector, llegaran mas temprano al final de la vida. SSD Wear leveling. Trim y Overprovisionan disminuyen el garbage collection.
  21. Para explicar um poco mas a fondo. Anillo. Todas las escritas son random. Hace que se gaste el anillo.
  22. Van a llegar al final del anillo. Habrá espacios libres. Mover bloques para liberar espacio cerca de la cosla. Trim va a guardar donde hay espacios, lo que acelera las escritas de forma más dinâmica. Tim o no Trim puede hasta cuadruplicar sis i/os
  23. Enh Networking les dará la máxima capacidade de performance de red posible em EC2
  24. Usen HVM. Se ve um gran performance imprivement.
  25. Bare metal tiene kernel mode o application / user mode. Es muy rápido gracias a intel. Com PV el hipervisor media comunicaciones entre el kernel y el app. Esto requiere TLB flushes tambien Para algunas aplicaciones no habrá diferencia. Si es mucho io / muchos paquetes en la red
  26. Ultimo consejo Usen TSC –time stamp conter como clocksource.
  27. Puerbas automatizadas. TSC hardware clock source. Em Linux se puede hablar com tsc sin el kernel.
  28. Si
  29. Take yourself back to 2006, for the EC2 beta program. We offered one instance size – the m1.small. It has less than 2 GiB of memory and a virtual CPU We knew that one size doesn’t fit all workloads, and over time we invested in a platform to help us accelerate bringing more EC2 instance selection to customers When you own the hardware and rent it, rather than sell it, everything changes. We understand much more intimately how customers use the hardware, and we become obsessed with total cost of ownership. The selection of instances has grown, now reaching 44 instances. And over the past 2 years we’ve grown disproportionately compared to previous years. What’s enabled us to do this and how do we make sense of the options? The EC2 platform is the engine that allows us to produce new instance sizes quickly to meet the needs of different workload segments It’s the hardware and the hypervisor depicted a couple slides ago, it’s the EC2 control plane, and it’s also a procurement and supply chain teams, and datacenter operations teams Lot’s of technologies, teams, and processes tat make up the EC2 platform. With the platform we’re able to ingest new technologies to do one of two things, either create a new instance family to address a different market segment, or bring forward a new generation which serves an existing segment with more performance, new feature, and or lower prices. As technology improves, we want to ensure customer are able to benefit from improvements in CPU, SSD, and other components. We do this through our current generation instance types.