mysql in k8s - perconaflocker quobyte portworx volume dell emc scaleio vmware vsphere volume....

35
RUNNING MYSQL IN K8S Version: 03.10.19

Upload: others

Post on 30-May-2020

13 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: MySQL in k8s - PerconaFlocker Quobyte Portworx Volume Dell EMC ScaleIO VMware vSphere Volume. PERSISTENCY PersistentVolumeClaim Automatic emptyDir Automatic hostPath . PERSISTENCY

RUNNING MYSQL IN K8SVersion: 03.10.19

Page 2: MySQL in k8s - PerconaFlocker Quobyte Portworx Volume Dell EMC ScaleIO VMware vSphere Volume. PERSISTENCY PersistentVolumeClaim Automatic emptyDir Automatic hostPath . PERSISTENCY

Mykola Marzhan

Has been developing deployment, update and monitoring systems since 2004.

Page 3: MySQL in k8s - PerconaFlocker Quobyte Portworx Volume Dell EMC ScaleIO VMware vSphere Volume. PERSISTENCY PersistentVolumeClaim Automatic emptyDir Automatic hostPath . PERSISTENCY

WHAT IS AN OPERATOR?

Page 4: MySQL in k8s - PerconaFlocker Quobyte Portworx Volume Dell EMC ScaleIO VMware vSphere Volume. PERSISTENCY PersistentVolumeClaim Automatic emptyDir Automatic hostPath . PERSISTENCY
Page 5: MySQL in k8s - PerconaFlocker Quobyte Portworx Volume Dell EMC ScaleIO VMware vSphere Volume. PERSISTENCY PersistentVolumeClaim Automatic emptyDir Automatic hostPath . PERSISTENCY

OPERATORS

Page 6: MySQL in k8s - PerconaFlocker Quobyte Portworx Volume Dell EMC ScaleIO VMware vSphere Volume. PERSISTENCY PersistentVolumeClaim Automatic emptyDir Automatic hostPath . PERSISTENCY

WHAT IF IT FAILS?

Page 7: MySQL in k8s - PerconaFlocker Quobyte Portworx Volume Dell EMC ScaleIO VMware vSphere Volume. PERSISTENCY PersistentVolumeClaim Automatic emptyDir Automatic hostPath . PERSISTENCY

PRESSLABS OPERATOR

Page 8: MySQL in k8s - PerconaFlocker Quobyte Portworx Volume Dell EMC ScaleIO VMware vSphere Volume. PERSISTENCY PersistentVolumeClaim Automatic emptyDir Automatic hostPath . PERSISTENCY

PRESSLABS OPERATOR

Page 9: MySQL in k8s - PerconaFlocker Quobyte Portworx Volume Dell EMC ScaleIO VMware vSphere Volume. PERSISTENCY PersistentVolumeClaim Automatic emptyDir Automatic hostPath . PERSISTENCY

MYSQL OPERATOR

Page 10: MySQL in k8s - PerconaFlocker Quobyte Portworx Volume Dell EMC ScaleIO VMware vSphere Volume. PERSISTENCY PersistentVolumeClaim Automatic emptyDir Automatic hostPath . PERSISTENCY

MYSQL OPERATOR

Page 11: MySQL in k8s - PerconaFlocker Quobyte Portworx Volume Dell EMC ScaleIO VMware vSphere Volume. PERSISTENCY PersistentVolumeClaim Automatic emptyDir Automatic hostPath . PERSISTENCY

PERCONA XTRADB CLUSTER

Page 12: MySQL in k8s - PerconaFlocker Quobyte Portworx Volume Dell EMC ScaleIO VMware vSphere Volume. PERSISTENCY PersistentVolumeClaim Automatic emptyDir Automatic hostPath . PERSISTENCY

PERCONA XTRADB CLUSTER

Page 13: MySQL in k8s - PerconaFlocker Quobyte Portworx Volume Dell EMC ScaleIO VMware vSphere Volume. PERSISTENCY PersistentVolumeClaim Automatic emptyDir Automatic hostPath . PERSISTENCY

WHAT ABOUT PERSISTENCY?

Page 14: MySQL in k8s - PerconaFlocker Quobyte Portworx Volume Dell EMC ScaleIO VMware vSphere Volume. PERSISTENCY PersistentVolumeClaim Automatic emptyDir Automatic hostPath . PERSISTENCY

PERSISTENT VOLUME CLAIM PROVISIONER

AWS EBS, AWS EFS Google Cloud PD Azure Disk, Azure File Digital Ocean Ceph Glusterfs NFS iSCSI OpenEBS

OpenStack Cinder StorageOS Flex Flocker Quobyte Portworx Volume Dell EMC ScaleIO VMware vSphere Volume

Page 15: MySQL in k8s - PerconaFlocker Quobyte Portworx Volume Dell EMC ScaleIO VMware vSphere Volume. PERSISTENCY PersistentVolumeClaim Automatic emptyDir Automatic hostPath . PERSISTENCY

PERSISTENCY

PersistentVolumeClaim

Automatic emptyDir

Automatic hostPath

Page 16: MySQL in k8s - PerconaFlocker Quobyte Portworx Volume Dell EMC ScaleIO VMware vSphere Volume. PERSISTENCY PersistentVolumeClaim Automatic emptyDir Automatic hostPath . PERSISTENCY

PERSISTENCY

PersistentVolumeClaim

Automatic emptyDir

Automatic hostPath

PersistentVolumeClaim

Manual ReadWriteMany

Page 17: MySQL in k8s - PerconaFlocker Quobyte Portworx Volume Dell EMC ScaleIO VMware vSphere Volume. PERSISTENCY PersistentVolumeClaim Automatic emptyDir Automatic hostPath . PERSISTENCY

PERSISTENCY

PersistentVolumeClaim

Automatic emptyDir

Automatic hostPath

PersistentVolumeClaim

Manual ReadWriteMany

PersistentVolumeClaim

Automatic emptyDir

Automatic hostPath

Page 18: MySQL in k8s - PerconaFlocker Quobyte Portworx Volume Dell EMC ScaleIO VMware vSphere Volume. PERSISTENCY PersistentVolumeClaim Automatic emptyDir Automatic hostPath . PERSISTENCY

CAN I SCALE UP/DOWN?

Page 19: MySQL in k8s - PerconaFlocker Quobyte Portworx Volume Dell EMC ScaleIO VMware vSphere Volume. PERSISTENCY PersistentVolumeClaim Automatic emptyDir Automatic hostPath . PERSISTENCY

HOW CAN I RUN

MULTI-REGION CLUSTER?

Page 20: MySQL in k8s - PerconaFlocker Quobyte Portworx Volume Dell EMC ScaleIO VMware vSphere Volume. PERSISTENCY PersistentVolumeClaim Automatic emptyDir Automatic hostPath . PERSISTENCY

WHEN IS TRANSACTION FINISH?

All nodes certified Majority of nodes certified Finished on master

Page 21: MySQL in k8s - PerconaFlocker Quobyte Portworx Volume Dell EMC ScaleIO VMware vSphere Volume. PERSISTENCY PersistentVolumeClaim Automatic emptyDir Automatic hostPath . PERSISTENCY

PFFF, SO, IN SHORT HOW CAN I RUN A MULTI-REGION

CLUSTER?

Page 22: MySQL in k8s - PerconaFlocker Quobyte Portworx Volume Dell EMC ScaleIO VMware vSphere Volume. PERSISTENCY PersistentVolumeClaim Automatic emptyDir Automatic hostPath . PERSISTENCY

WHAT ABOUT BACKUPS?

Page 23: MySQL in k8s - PerconaFlocker Quobyte Portworx Volume Dell EMC ScaleIO VMware vSphere Volume. PERSISTENCY PersistentVolumeClaim Automatic emptyDir Automatic hostPath . PERSISTENCY

BACKUP DESTINATION

S3 compatible storage

PersistentVolumeClaim

Page 24: MySQL in k8s - PerconaFlocker Quobyte Portworx Volume Dell EMC ScaleIO VMware vSphere Volume. PERSISTENCY PersistentVolumeClaim Automatic emptyDir Automatic hostPath . PERSISTENCY

BACKUP DESTINATION

S3 compatible storage

PersistentVolumeClaim

S3 compatible storage

Page 25: MySQL in k8s - PerconaFlocker Quobyte Portworx Volume Dell EMC ScaleIO VMware vSphere Volume. PERSISTENCY PersistentVolumeClaim Automatic emptyDir Automatic hostPath . PERSISTENCY

BACKUP DESTINATION

S3 compatible storage

PersistentVolumeClaim

S3 compatible storage S3 compatible storage

Google Cloud Storage

Azure Blob Storage

Page 26: MySQL in k8s - PerconaFlocker Quobyte Portworx Volume Dell EMC ScaleIO VMware vSphere Volume. PERSISTENCY PersistentVolumeClaim Automatic emptyDir Automatic hostPath . PERSISTENCY

BACKUP TOOL

Percona XtraBackup

direct streaming

mysqldump

direct streaming

Percona XtraBackup

save and stream

Page 27: MySQL in k8s - PerconaFlocker Quobyte Portworx Volume Dell EMC ScaleIO VMware vSphere Volume. PERSISTENCY PersistentVolumeClaim Automatic emptyDir Automatic hostPath . PERSISTENCY

WHAT ABOUT RESTORE?

Page 28: MySQL in k8s - PerconaFlocker Quobyte Portworx Volume Dell EMC ScaleIO VMware vSphere Volume. PERSISTENCY PersistentVolumeClaim Automatic emptyDir Automatic hostPath . PERSISTENCY

RESTORE SOURCE

S3 compatible storage

Persistent Volume

S3 compatible storage S3 compatible storage

Google Cloud Storage

Azure Blob Storage

HTTP URL

Page 29: MySQL in k8s - PerconaFlocker Quobyte Portworx Volume Dell EMC ScaleIO VMware vSphere Volume. PERSISTENCY PersistentVolumeClaim Automatic emptyDir Automatic hostPath . PERSISTENCY

WHAT ABOUT MONITORING?

Page 30: MySQL in k8s - PerconaFlocker Quobyte Portworx Volume Dell EMC ScaleIO VMware vSphere Volume. PERSISTENCY PersistentVolumeClaim Automatic emptyDir Automatic hostPath . PERSISTENCY

MONITORING

Percona Monitoring and Management

Prometheus

MySQL Enterprise Monitor

Prometheus

Orchestrator

Page 31: MySQL in k8s - PerconaFlocker Quobyte Portworx Volume Dell EMC ScaleIO VMware vSphere Volume. PERSISTENCY PersistentVolumeClaim Automatic emptyDir Automatic hostPath . PERSISTENCY

WHAT ABOUT ENCRYPTION?

Page 32: MySQL in k8s - PerconaFlocker Quobyte Portworx Volume Dell EMC ScaleIO VMware vSphere Volume. PERSISTENCY PersistentVolumeClaim Automatic emptyDir Automatic hostPath . PERSISTENCY

ENCRYPTION

TLS for client-server

TLS for replication

keyring is disabled

TLS for client-server

TLS for replication

keyring is disabled

No TLS for client-server

No TLS for replication

keyring is disabled

Page 33: MySQL in k8s - PerconaFlocker Quobyte Portworx Volume Dell EMC ScaleIO VMware vSphere Volume. PERSISTENCY PersistentVolumeClaim Automatic emptyDir Automatic hostPath . PERSISTENCY

WHAT ABOUT EASY BUTTON?

Page 34: MySQL in k8s - PerconaFlocker Quobyte Portworx Volume Dell EMC ScaleIO VMware vSphere Volume. PERSISTENCY PersistentVolumeClaim Automatic emptyDir Automatic hostPath . PERSISTENCY

Persistency

Proxying

Multi-Region

Backups

Monitoring

Encryption

Service Broker

Page 35: MySQL in k8s - PerconaFlocker Quobyte Portworx Volume Dell EMC ScaleIO VMware vSphere Volume. PERSISTENCY PersistentVolumeClaim Automatic emptyDir Automatic hostPath . PERSISTENCY

Mykola [email protected]