How to make MySQL for the Cloud
Lixun Peng Staff Database Engineer @ Alibaba Cloud Senior Engineer @ MariaDB Foundation
How to make MySQL for the Cloud Lixun Peng Staff Database Engineer - - PowerPoint PPT Presentation
How to make MySQL for the Cloud Lixun Peng Staff Database Engineer @ Alibaba Cloud Senior Engineer @ MariaDB Foundation Agenda Our Architecture in the Cloud The Challenge of MySQL in the Cloud The Requirement of MySQL in the
How to make MySQL for the Cloud
Lixun Peng Staff Database Engineer @ Alibaba Cloud Senior Engineer @ MariaDB Foundation
2
Agenda
Proxy, Authentication, Failover, Read-Only Instance, etc.
4
Architecture Overview
5
Access Architecture
6
Next Generation
Situation, Problems etc.
8
Situation in the Cloud
9
Problems
Proxy-related, Multi-UserGroup, Implicit Primary Key, Thread Minitor, Flashback, etc.
11
Change User
users, so we need to change the user.
normal user.
12
Reset Connection
13
Bypass User IP
14
Multi-UserGroup
15
Multi-UserGroup
unlimited connection, all privileges.
16
Implicit Primary Key
17
Implicit Primary Key
the first unique key to find the row.
18
Implicit Primary Key
auto_increment column and create an index on it.
column, then create an auto_increment column and create an index on it.
19
Implicit Primary Key
Delay Delay
Without IPK With IPK
20
Thread Monitor
for the threads.
threads used the most of memory, which thread should be killed to release the resource.
21
Thread Monitor
22
Flashback
soon as possible. Then we need a way to recover the data from the correct snapshot, and if possible, do it online and fast.
incremental binary logs, but if a user’s database is too huge, it could take a while!
that needs to be modified, but we still need to recover the whole database.
23
Flashback
faster than recovery from a full backup.
very important for the Cloud users.
ability to achieve this.
24
Flashback
then the flashback is more benefit.
Data Size Mishandled Data Size Flashback Full Backup Set 10 GB 1 GB 1 Hour 30 Mins 10 GB 1 MB 5 Mins 30 Mins 1 TB 1 GB 1 Hour 1 Day 1 TB 1 MB 5 Mins 1 Day
25
IO Monitor
users
more than innodb_io_latency_warning us, then print this IO in the error log.
26
IO Monitor
27
AliSQL
28
PengLiXun@gmail.com