machines to cloud, from virtual serverless options mysql ...€¦ · rds mysql managed service...
TRANSCRIPT
![Page 1: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/1.jpg)
MySQL on the cloud, from virtual
machines to serverless options
Renato Losio, Funambol
![Page 2: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/2.jpg)
Renato & Funambol
![Page 3: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/3.jpg)
DevOps
HA
serverlessK8s
autoscaling
Docker
S3
infrastructure as code
orchestration
![Page 4: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/4.jpg)
![Page 5: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/5.jpg)
Instance-based databases
Connection limits
Networking issues
Provisioning issues
Scaling issues
Infrastructure as code issues
![Page 6: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/6.jpg)
blue/green
![Page 7: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/7.jpg)
![Page 8: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/8.jpg)
before or after?Decoupling schema changes from code changes
![Page 9: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/9.jpg)
Public cloud providers
AWS
IBM Cloud
Google Cloud Platform
Azure
IBM
Oracle Alibaba
VMware
![Page 10: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/10.jpg)
MySQL & AWS
![Page 11: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/11.jpg)
11
![Page 12: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/12.jpg)
3 options
![Page 13: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/13.jpg)
MySQL on EC2
Rely on EBS
Full control: root access
Flexibility
Easy vertical scaling
Set your own replication
Backup & failover
Very latest MySQL, Percona
Fully control the database
![Page 14: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/14.jpg)
Virtual machine
AZ
![Page 15: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/15.jpg)
RDS MySQL
Managed service
(almost) 10 years old
Vertical scaling
Sync replication
Backup & point in time recovery
Other RDS engines available
Performance Insights
Managed and scalable MySQL
![Page 16: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/16.jpg)
Managed service
AZ
RDS
![Page 17: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/17.jpg)
Amazon Aurora
MySQL/PostgreSQL compatible
Vertical scaling
Proprietary technology
Automatically allocates storage
Automatic, six-way replication
Backtrack: turn back time
Multi-Master (preview)
built for the cloud, fully managed
![Page 18: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/18.jpg)
automation
![Page 19: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/19.jpg)
How you scale vertically an instance
size for the peak load?
![Page 20: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/20.jpg)
![Page 21: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/21.jpg)
![Page 22: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/22.jpg)
![Page 23: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/23.jpg)
fake autoscalingSDK
bash (CLI)
minor version
IOPSCPU
Lambda
storage latency
![Page 24: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/24.jpg)
Why are they not available out of the box?
![Page 25: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/25.jpg)
DBA
![Page 26: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/26.jpg)
![Page 27: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/27.jpg)
outage
![Page 28: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/28.jpg)
![Page 29: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/29.jpg)
29
![Page 30: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/30.jpg)
panic button?
too temptingcomplains
cto calling
db suffering
low costs
![Page 31: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/31.jpg)
31
Database frozen
![Page 32: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/32.jpg)
Cannot change it back. You are paying for it.
![Page 33: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/33.jpg)
Multiples changes
not simultaneously
order is hard to predict
multiple failovers
![Page 34: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/34.jpg)
db.m4.xlarge→ db.m4.2xlarge400 GB → 800 GB
- 12h (instance+storage)- 13m (instance)
- 11h 45m (storage)
![Page 35: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/35.jpg)
35Modifying...
![Page 36: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/36.jpg)
No risks? As good as before?
Really?
![Page 37: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/37.jpg)
RDS is running out of IOPS What can I do?
How do I know how long I can burst?
![Page 38: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/38.jpg)
Running out of IOPS
lower IOPS after burstlatency spike
burst
![Page 39: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/39.jpg)
![Page 40: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/40.jpg)
![Page 41: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/41.jpg)
Peak or sustained
traffic?
![Page 42: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/42.jpg)
42
![Page 43: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/43.jpg)
serverless
![Page 44: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/44.jpg)
RDSmemory
PIOPS
vCPU
memory
optimized
networking
35+ instance types
6 engines
burstable
standard
![Page 45: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/45.jpg)
![Page 46: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/46.jpg)
Aurora Serverless
Endpoint without instance size
Easy scaling
Pay-per-use
Auth IAM roles
MySQL 5.6 compatible (preview
Postgres)
GA since Aug 2018
JDBC / ODBC
auto-scaling configuration
![Page 47: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/47.jpg)
Aurora Serverless might not be able to find a
scaling point if you have long-running queries or
transactions in progress, or temporary tables or
table locks in use.
![Page 48: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/48.jpg)
Serverless Aurora or Autoscaling Aurora?
Aurora Serverless Data API (beta)
![Page 49: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/49.jpg)
super exciting?development/test
weekly reporting
unpredictable load
intermittent
![Page 50: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/50.jpg)
![Page 51: machines to cloud, from virtual serverless options MySQL ...€¦ · RDS MySQL Managed service (almost) 10 years old Vertical ... Managed service AZ RDS. Amazon Aurora MySQL/PostgreSQL](https://reader035.vdocuments.site/reader035/viewer/2022063004/5f7cdd9c06cd3c3ab57849a8/html5/thumbnails/51.jpg)
thanks!join at Slido.com with #devops2019
all pictures from author or Unsplash