MySQL Operator For InnoDB Cluster
July 30th, 2022
Mydbops Database Meetup -12
Kabilesh PR
Co-Founder, Mydbops
Interested in Open Source technologies
MySQL Certified Professional
Tech Speaker/Blogger 
AWS certified Database speciality
AWS community builder / SME
Co-Founder, Mydbops IT Solutions
Kabilesh PR
About Me
Mydbops Services
Consulting
Services
Managed
Services
Focuses on MySQL, MongoDB, PostgreSQL
Targeted
Engagement
24 x 7
DBA Team
Agenda
The Trend Shift
Need Of K8S Operator
Production Readiness
Oracle MySQL Operator
Trend Shift
Kubernetes:
The most popular open source project for container orchestration
Cloud native and K8S service available in AWS, Azure and GCP
Offer rapidly scalable approach on containers
Infrastructure as a code, Now being pushed to database systems as well (stateful)
Need Of Kubernetes Operator
Native K8S functions are more sophisticated for to run the stateless system
To run complex stateful system like database requires, Product knowledge
Making database containers on production requires a lot of design decisions  
Auto Node Provisioning
Fault Tolerance / High Availability 
Backups and Monitoring
Up Scaling, Down Scaling / Appropriate Traffic Distribution
Feature to support DB
Persistent Volume support
Initialization - Init
Healthcheck - Probes (readiness, Liveness)
Configmap - Custom configuration
Need Of Kubernetes Operator
Operator:
Extension of Kubernetes Controller API (Which Just Checks Service States)
Operator can be referenced as Application specific Controller 
Operator can be programmed to include application-specific knowledge to
automate the entire life cycle of the software it manages
Choose Your Operator Wisely
Operator Scope / Maturity Model
Reference: O'Reilly Kubernetes Operator Book
Oracle MySQL Operator
Services (LB)
Stateful Sets
Operator Maturity
Apache-2.0 License
 Operator maturity level, Stage 3
Based On GR / Innodb Cluster
Kubernetes version > 1.8
GA Release : May 2022
Last Commit: 18 days ago
Oracle InnoDB Cluster Operator - Architecture
source : dev.mysql.com
Oracle InnoDB Cluster Operator
Better documentation support (https://dev.mysql.com/doc/mysql-operator/en/)
Very few changes required to migrate
Provides auto node provision and node recovery through Clone
 GR, Provides Synchronous replication and Fault tolerance
MySQL Router takes care of load distribution and routing to live nodes
Backups are taken via mysqldump, possible to use clone plugin
8.0 Support Available
Production Readiness
Operational Expertise
Dev + Ops + DBE skills requried
Most common corner cases where Operator cannot self heal are
All DB nodes going on a crashed
Fixing of node in crash loop
Requests and Resources adjustments and Configuration changes
Production Readiness
Bugs in Operators can be deadly
Develop ability to customise and add features to exiting Operators
Clear benchmarks required, Performance drop is expected, Scale horizontally
Performance on BM > VM > Containers
Demo: Setting Up Oracle Operator
Thank You!
Reach Us : Info@mydbops.com
Thank You

MySQL-operator-for-InnoDB-Cluster - Kabilesh PR - Co-Founder, Mydbops

  • 1.
    MySQL Operator ForInnoDB Cluster July 30th, 2022 Mydbops Database Meetup -12 Kabilesh PR Co-Founder, Mydbops
  • 2.
    Interested in OpenSource technologies MySQL Certified Professional Tech Speaker/Blogger  AWS certified Database speciality AWS community builder / SME Co-Founder, Mydbops IT Solutions Kabilesh PR About Me
  • 3.
    Mydbops Services Consulting Services Managed Services Focuses onMySQL, MongoDB, PostgreSQL Targeted Engagement 24 x 7 DBA Team
  • 4.
    Agenda The Trend Shift NeedOf K8S Operator Production Readiness Oracle MySQL Operator
  • 5.
    Trend Shift Kubernetes: The mostpopular open source project for container orchestration Cloud native and K8S service available in AWS, Azure and GCP Offer rapidly scalable approach on containers Infrastructure as a code, Now being pushed to database systems as well (stateful)
  • 6.
    Need Of KubernetesOperator Native K8S functions are more sophisticated for to run the stateless system To run complex stateful system like database requires, Product knowledge Making database containers on production requires a lot of design decisions   Auto Node Provisioning Fault Tolerance / High Availability  Backups and Monitoring Up Scaling, Down Scaling / Appropriate Traffic Distribution
  • 7.
    Feature to supportDB Persistent Volume support Initialization - Init Healthcheck - Probes (readiness, Liveness) Configmap - Custom configuration
  • 8.
    Need Of KubernetesOperator Operator: Extension of Kubernetes Controller API (Which Just Checks Service States) Operator can be referenced as Application specific Controller  Operator can be programmed to include application-specific knowledge to automate the entire life cycle of the software it manages
  • 9.
    Choose Your OperatorWisely Operator Scope / Maturity Model Reference: O'Reilly Kubernetes Operator Book
  • 10.
    Oracle MySQL Operator Services(LB) Stateful Sets Operator Maturity Apache-2.0 License  Operator maturity level, Stage 3 Based On GR / Innodb Cluster Kubernetes version > 1.8 GA Release : May 2022 Last Commit: 18 days ago
  • 11.
    Oracle InnoDB ClusterOperator - Architecture source : dev.mysql.com
  • 12.
    Oracle InnoDB ClusterOperator Better documentation support (https://dev.mysql.com/doc/mysql-operator/en/) Very few changes required to migrate Provides auto node provision and node recovery through Clone  GR, Provides Synchronous replication and Fault tolerance MySQL Router takes care of load distribution and routing to live nodes Backups are taken via mysqldump, possible to use clone plugin 8.0 Support Available
  • 13.
    Production Readiness Operational Expertise Dev+ Ops + DBE skills requried Most common corner cases where Operator cannot self heal are All DB nodes going on a crashed Fixing of node in crash loop Requests and Resources adjustments and Configuration changes
  • 14.
    Production Readiness Bugs inOperators can be deadly Develop ability to customise and add features to exiting Operators Clear benchmarks required, Performance drop is expected, Scale horizontally Performance on BM > VM > Containers
  • 15.
    Demo: Setting Up OracleOperator Thank You!
  • 16.
    Reach Us :Info@mydbops.com Thank You