MySQL HeatWave Implementation Associate
MySQL HeatWave Implementation Associate
MySQL HeatWave Implementation Associate
Exam 1Z0-915-1
Alexandre Fagundes
[email protected]
Cloud Architect, Oracle Latin America
Copyright © 2024, Oracle and/or its affiliates
Exam 1Z0-915-1: MySQL HeatWave Implementation Associate
https://education.oracle.com/mysql-heatwave-implementation-associate-rel1/pexam_1Z0-915-1
OLTP DB
Increased costs
OLAP Applications
Social, eCommerce, gaming, healthcare, fintech, IoT apps. Analytics and ML tools.
Queries Results
Database
Analytics Autopilot exports
OLTP In-database ML
High Availability
Read Replicas
Backup
Query Acceleration
HeatWave AutoML
HeatWave Lakehouse
No ETL duplication
Transactional
applications
Unmatched performance, at a
fraction of the cost
Analytics tools and InnoDB HeatWave
applications storage analytics Real-time analytics
engine cluster
Improved security
Social Voice
Devices
Object Store
Events
Sensors
1. System Setup
Run MySQL Autopilot on object store to determine cluster size and schema mapping
Execute DDLs generated by Autopilot
• Flexible cluster size up to • Provision cluster in less than • Load performance scales with
512 HeatWave nodes 16 mins for up to 512 nodes cluster size
• Scale to any size based on • Pause & resume cluster to • Query performance scales
workload and performance minimize cost with cluster size
requirements
• Retention Period
• When to Backup
• Full or Incremental
• Point-in-Time Recovery (only non-HA DB Systems)
• SLA 99.99%
• Automatic failover
• Zero Data Loss during failure event
• Option to manually switch-over
• Rolling upgrades during maintenance
When using Read Replicas a Load Balancer Endpoint is automatically provisioned in your DB System.
• Managed by the service
• Materializes as a Read-Only endpoint
• Round robins traffic across Read Replicas
• Manages Read Replica backends automatically
Amazon RDS
Redshift ML does NOT provide in-database ML; exports data to SageMaker via Amazon S3
OLTP Analytics
Applications Tools
Social
Real-time
Real-time ML
analytics on
recommendations
trends
ECommerce
FinTech
SaaS
Dataset
Data preprocessing
Regulatory compliance
Algorithm selection
Tuned model
• On-premises:
• Database management: provisioning, configuration, backup, HA, patching, security & more
• Operating system management: installation, patching, upgrades...
• Infrastructure management: purchase and maintenance of servers, storage
• Data center management: space, power, cooling, disaster recovery & more
Provision right
Analyze DB schemas/tables cluster size
MySQL
Guess a cluster size
Iterate
HeatWave
Nodes
Adaptive Sampling
Datasets Accuracy in memory prediction 0.01%
Error %
0.1%
TPCH 1024G 98.4%
TPCDS 1024G 96.9%
Cust A 98.3%
Sample Size
Cust B 96.9%
< 0.1% of data scanned for prediction
31 Copyright © 2024, Oracle and/or its affiliates
Auto provisioning with MySQL HeatWave Lakehouse
How to determine the right cluster size required for processing data in object store?
Node Statistics
⨝ A 70 ∪
B 150
A⨝B 1000
C …
⨝ C ⨝ D
A⨝B⨝ C …
Runtime statistics
A B A B
P1 P2 P1 P2
∑ ∑
P3 P4 Aggregated stats P3 P4 Aggregated stats
2. Fetch
local stats
3. Write
1. Aggregate aggregated
C1 C2 C1 C2 C1 C2
statistics – N1 C1 C2 statistics
N1 N1 N1
N1
C3 …… CN C3 … CN C3 … CN
C3 CN
Copyright © 2024, Oracle and/or its affiliates
Auto Scheduling
Reduces wait time for mixed (OLTP + OLAP) workloads
BASELINE
• Automatically loads tables or columns into HeatWave to optimize performance of user workload
• Automatically unloads tables less frequently used than other tables to optimize performance without
increasing cost
MySQL HeatWave
Database Cluster
LOAD
Admission control
✘ Blocked TXs create resource contention on ✓ Allowing fewer TXs reduces resource contention
executing TXs
Copyright © 2024, Oracle and/or its affiliates
Auto Shape Prediction
Determines the optimal instance type
Workload
Shape: Shape:
MySQL 2.16 MySQL
Shape 4.32
Core Core Core Core Core Core
Heavy change Light
I/O I/O
InnoDB 16 GB InnoDB 32 GB Memory
Memory
index
CREATE /
DROP
Indexes
Tables
MySQL HeatWave
• Data doesn’t leave AWS – saves egress cost, and avoids compliance approvals
• Easier migration from other databases (e.g., Amazon Aurora, Redshift, Snowflake)
Console
MySQL user
Control plane
Customer AWS Account
cloud.mysql.com Data
Applications
Transaction Lakehouse
Processing
Machine Warehoue
Data plane Learning Analytics
AWS S3
Advanced security*
* Auto thread pooling and auto shape prediction in MySQL Autopilot as well as the MySQL HeatWave database firewall will be available soon on OCI.
• Collaborative support
https://www.oracle.com/cloud/azure/oracle-database-for-azure
Cross-region replication
• DB System to DB System
Live Migrations
• Minimize downtime
Hybrid deployments
• On-premises and other cloud vendors
• Disaster Recovery
• Capacity bursting
• HeatWave for Analytics, ML, Lakehouse
While migrating one may need to filter some traffic out from the replication stream.
• Ignoring a schema that will remain on premise
• Ignoring custom system objects from other cloud providers
Noteworthy:
• Supports MySQL replication filters
• Console contains handy filter templates
• CLI, SDK and Terraform support