SlideShare a Scribd company logo
Confidential
ClusterControl 1.2.9
March 2015
Johan Andersson
CTO, Severalnines
johan@severalnines.com
Confidential
About us
¤  Founded 2011
¤  Ex-MySQL/Sun/Oracle staff
¤  HQ in Stockholm, Sweden
¤  Focus: Cluster automation and management
¤  MySQL, Percona, MariaDB, MongoDB, TokuMX,
PostgreSQL
¤  Over 7000 deployed clusters
¤  Over 100 enterprise customers
2
Copyright 2012 Severalnines AB
Confidential
Customers
3
Copyright Severalnines AB
begin; select * from sbtest1 where id=4 for
update;
Confidential
What Problems do
we Address?
4
Copyright 2012 Severalnines AB
Manage Scale
MonitorDeploy

Recommended for you

MySQL Connectors 8.0.19 & DNS SRV
MySQL Connectors 8.0.19 & DNS SRVMySQL Connectors 8.0.19 & DNS SRV
MySQL Connectors 8.0.19 & DNS SRV

In MySQL 8.0.19, we introduced DNS-SRV support in the Connectors, which improves the integration with various service discovery services.

mysqldnsdns-srv
Cassandra Day London 2015: Securing Cassandra and DataStax Enterprise
Cassandra Day London 2015: Securing Cassandra and DataStax EnterpriseCassandra Day London 2015: Securing Cassandra and DataStax Enterprise
Cassandra Day London 2015: Securing Cassandra and DataStax Enterprise

Speaker(s): Johnny Miller, Cassandra Solutions Architect at DataStax This talk will introduce the various options around securing Cassandra and DataStax Enterprise. Attendees will gain an understanding of the various features and options available for protecting systems using Cassandra, OpsCenter and DataStax Enterprise.

apache cassandracassandra dayscalable database
Nginx dhruba mandal
Nginx dhruba mandalNginx dhruba mandal
Nginx dhruba mandal

Basic concept of nginx , Apache Vs Nginx , Nginx as Loadbalancer , Nginx as Reverse proxy , Configuration of nginx as load balancer and reverse proxy .

nginxloadbalancerreverseproxy
Confidential
Deployment
- Beyond Puppet or Chef
¤  Puppet/Chef are appropriate for a group of single-node
components
¤  E.g. web servers can be clones of each other..
¤  Distributed databases are complex
¤  Different node types & roles
¤  Orchestration of procedures in a specific order
¤  Using e.g. Chef for deploying a distributed database
¤  Yes, it is possible
¤  Not much Chef functionality is leveraged
¤  Prepare to write code
5
Copyright Severalnines AB
Confidential
Monitoring
- Beyond Nagios
¤  What do you do when the application is slow?
¤  Is it Disk? CPU? RAM? Badly written queries?
¤  What are the symptoms? (Replication queues, Page
Faults, locks, # connections, deadlocks …)
¤  How do you avoid problems?
¤  How do you plan for capacity?
6
Copyright Severalnines AB
Confidential
Management
- Beyond Monitoring
7
Copyright Severalnines AB
Confidential
Scaling
- Beyond Manual Operations
8
Copyright 2012 Severalnines AB

Recommended for you

MySQL Load Balancers - MaxScale, ProxySQL, HAProxy, MySQL Router & nginx - A ...
MySQL Load Balancers - MaxScale, ProxySQL, HAProxy, MySQL Router & nginx - A ...MySQL Load Balancers - MaxScale, ProxySQL, HAProxy, MySQL Router & nginx - A ...
MySQL Load Balancers - MaxScale, ProxySQL, HAProxy, MySQL Router & nginx - A ...

The document discusses various load balancing options for MySQL databases, including application connectors, reverse proxies, and SQL-aware proxies. It provides an overview of popular load balancers like HAProxy, MaxScale, ProxySQL, MySQL Router, and Nginx. These load balancers aim to improve high availability, performance, and scalability. They handle tasks like health checking, failover, read/write splitting, and query routing. The document analyzes the key features and limitations of each type of load balancer.

mysqlproxysqlhaproxy
ProxySQL Tutorial - PLAM 2016
ProxySQL Tutorial - PLAM 2016ProxySQL Tutorial - PLAM 2016
ProxySQL Tutorial - PLAM 2016

This document provides an overview of ProxySQL, a high performance proxy for MySQL. It discusses ProxySQL's main features such as query routing, caching, load balancing, and high availability capabilities including seamless failover. The document also describes ProxySQL's internal architecture including modules for queries processing, user authentication, hostgroup management, and more. Examples are given showing how hostgroups can be used for read/write splitting and replication topologies.

Nginx A High Performance Load Balancer, Web Server & Reverse Proxy
Nginx A High Performance Load Balancer, Web Server & Reverse ProxyNginx A High Performance Load Balancer, Web Server & Reverse Proxy
Nginx A High Performance Load Balancer, Web Server & Reverse Proxy

Nginx is a web server which can also be used as a reverse proxy, load balancer, mail proxy and HTTP cache

nginx configurationnginx load balancernginx reverse proxy server
Confidential
ClusterControl -
In a nutshell
9
Copyright 2012 Severalnines AB
Manage Scale
MonitorDeploy
Confidential
Configurators
¤  MongoDB / TokuMX Sharded Cluster
¤  MongoDB / TokuMX Replica Set
¤  MySQL Galera Cluster (Codership)
¤  Percona XtraDB Cluster
¤  MariaDB Cluster
¤  MySQL Cluster (NDB)
¤  MySQL Replication 5.6
10
Copyright 2012 Severalnines AB
Confidential
Deploy From
ClusterControl
¤  MongoDB ReplicaSet
¤  Percona XtraDB Cluster / MariaDB Cluster
¤  Standalone nodes (MongoDB, MySQL, MariaDB)
11
Copyright 2012 Severalnines AB
Confidential
Add Existing Clusters To
ClusterControl
¤  Galera Cluster (Codership/Percona/MariaDb)
¤  Single MySQL Server nodes
¤  MongoDB ReplicaSet
¤  Single PostgreSQL nodes
SSH access (pubkey auth) is required
from:
Controller -> Nodes
Controller -> Controller (itself)
12
Copyright 2012 Severalnines AB

Recommended for you

MySQL 8.0.21 - New Features Summary
MySQL 8.0.21 - New Features SummaryMySQL 8.0.21 - New Features Summary
MySQL 8.0.21 - New Features Summary

MySQL 8.0.21 includes several new features and enhancements: 1) It allows disabling of the InnoDB redo log at runtime to improve performance while loading initial data. 2) The JSON_VALUE function was added to extract scalar values from JSON documents. 3) CREATE TABLE...SELECT statements are now atomic and crash-safe operations. 4) Per-user comments and attributes can now be set when creating or updating MySQL user accounts.

8.0.21dbmsdocument store
High Availability with Galera Cluster - SkySQL Road Show 2013 in Berlin
High Availability with Galera Cluster - SkySQL Road Show 2013 in BerlinHigh Availability with Galera Cluster - SkySQL Road Show 2013 in Berlin
High Availability with Galera Cluster - SkySQL Road Show 2013 in Berlin

High Availability with Galera Cluster by Seppo Jaakkola, Codership at the SkySQL Road Show 2013 in Berlin 18.6.2013

mysqlskysqlcodership
Understanding DSE Search by Matt Stump
Understanding DSE Search by Matt StumpUnderstanding DSE Search by Matt Stump
Understanding DSE Search by Matt Stump

Petabyte search at scale: understand how DataStax Enterprise search enables complex real-time multi-dimensional queries on massive datasets. This talk will cover when and why to use DSE search, best practices, data modeling and performance tuning/optimization. Also covered will be a deep dive into how DSE Search operates, and the fundamentals of bitmap indexing.

datastax enterprisebig dataapache cassandra
Confidential
ClusterControl
Automation & Management
¤  Management
¤  Multi cluster/data-center
¤  Automate repair/recovery
¤  Database upgrades
¤  Backups
¤  Configuration management
¤  Cloning
¤  One-click scaling
13
Copyright Severalnines AB
Confidential 14
Copyright 2013 Severalnines AB
Confidential 15
Copyright Severalnines AB
Party Time!
Confidential
Getting Started
¤  Dedicated VM for the controller
¤  Specs
¤  2 CPU cores
¤  2-4GB RAM
¤  20GB diskspace
¤  No agents
¤  Host stats gathered via SSH
¤  Installation
¤  YUM/APT
¤  Setup SSH access to DB nodes
¤  http://repo.severalnines.com/
16
Copyright Severalnines AB

Recommended for you

lock, block & two smoking barrels
lock, block & two smoking barrelslock, block & two smoking barrels
lock, block & two smoking barrels

SQL Server is a high performance relational engine and provides a highly scalable database platform but due to its complexity, bad programming practices, poor indexing and configuration can be prone to serious concurrency problems, unexpected behaviors, lost updates and much more! In SQL Server 2005, two optimistic concurrency mechanisms were introduced and touted as the solution to all our problems. Now in SQL Server 2012 and SQL 2014 even more have followed including latch free data-structures, but many challenges and problems still remain. Let’s take a long look into the world of SQL Server concurrency and investigate Pessimistic and Optimistic isolation understanding how they work, when you should use them, and more importantly when they can go very wrong. Don't be staring down the wrong end of SQL Server's two Smoking Barrels and join me for this revealing and thought provoking presentation.

concurrencylockingblocking
Cassandra and security
Cassandra and securityCassandra and security
Cassandra and security

Security is often an afterthought; configured and applied at the last minute before rolling out a new system. Instaclustr has deployed Cassandra for customers with many different requirements. From deployments in Heroku requiring total public access through to private data centres, we will walk you through securing Cassandra the right way.

cassandrasummitinformation securitycassandra
Galera cluster for MySQL - Introduction Slides
Galera cluster for MySQL - Introduction SlidesGalera cluster for MySQL - Introduction Slides
Galera cluster for MySQL - Introduction Slides

This set of slides gives you an overview of Galera, configuration basics and deployment best practices. The following topics are covered: - Concepts - Node provisioning - Network partitioning - Configuration example - Benchmarks - Deployment best practices - Galera monitoring and management

synchronous replicationmysqlinnodb
Confidential
What’s new in 1.2.9?
¤  PostgreSQL Support
¤  Improved HAProxy support
¤  Hybrid Replication with Galera Clusters
¤  Galera Replication Traffic Encryption
¤  Encrypted communication between ClusterControl and MySQL-
based systems
¤  Improved Backup and Restore Database
¤  Galera: Bootstrap Cluster , Recover Non-Primary node.
¤  MySQL: Deadlock detection / Long Query
¤  MongoDb: Improved pagefault and locking inspection
17
Copyright 2012 Severalnines AB
Confidential
PostgreSQL
¤  Support for single PostgreSQL systems
¤  Version 9.x supported
¤  Add existing PostgreSQL servers to ClusterControl
¤  Process management / auto recovery of failed instance
¤  Backup
¤  Query Monitor
18
Copyright 2012 Severalnines AB
Confidential
Improved HAProxy
¤  Richer UI with built-in HAProxy stats
¤  View Stats
¤  Disable / Enable nodes part of the load balancer
¤  Powerful deployment capabilities
¤  Specify what DB servers to include on the backend
¤  Specify ACTIVE/BACKUP backend (DB) servers
¤  Tune timeouts
¤  Templated configuration:
/usr/share/cmon/templates/haproxy.cfg
/usr/share/cmon/templates/mysqlchk.*
/usr/share/cmon/templates/mysqlchk_xinetd
19
Copyright 2012 Severalnines AB
Confidential
Hybrid Replication
For Galera Clusters
¤  Allows user to add a
Replication Slave to a Galera
Cluster
¤  GTID and non-GTID replication
is support
¤  MariaDB GTID is not
currently supported
¤  Single click failover slave from
one master to another
¤  Requires to Masters
¤  Restage a slave with data from
master.
¤  Using xtrabackup
Copyright 2012 Severalnines AB
20
MySQL
[Slave]

Recommended for you

NGINX: Basics and Best Practices
NGINX: Basics and Best PracticesNGINX: Basics and Best Practices
NGINX: Basics and Best Practices

On-demand recording: nginx.com/resources/webinars/nginx-basics-best-practices You’ve heard of NGINX and the benefits it can provide to your web application, but maybe you’re not sure how to get started. There are a lot of tutorials online, but they can be outdated and contradict each other, making things more challenging. In this webinar we’ll cover the basics of NGINX to help you effectively begin using it as part of your existing or new web app. This webinar covers how to: * Install NGINX and verify it's properly running * Create NGINX configurations for reverse proxy, load balancer, etc. * Improve performance using keepalives and other NGINX directives * Debug and troubleshoot using NGINX logs

nginxsoftware load balancingcaching
Building better Node.js applications on MariaDB
Building better Node.js applications on MariaDBBuilding better Node.js applications on MariaDB
Building better Node.js applications on MariaDB

In this session, Diego Dupin teaches tips and tricks for using the new Node.js connector for MariaDB. Recent driver updates include exciting new features such as a promise-based API, pipelining and insert streaming. Targeted at beginner to intermediate Node.js developers, this session includes basics for getting started with Node.js before focusing on best practices and more advanced topics. The session finishes with an overview of integration with well-known Node.js frameworks, including the popular objection/relational mapping (ORM) frameworks.

MySQL Database Architectures - InnoDB ReplicaSet & Cluster
MySQL Database Architectures - InnoDB ReplicaSet & ClusterMySQL Database Architectures - InnoDB ReplicaSet & Cluster
MySQL Database Architectures - InnoDB ReplicaSet & Cluster

This document provides an overview and comparison of MySQL InnoDB Cluster and MySQL InnoDB ReplicaSet. It discusses the components, goals, and features of each solution. MySQL InnoDB Cluster uses Group Replication to provide high availability, automatic failover, and data consistency. MySQL InnoDB ReplicaSet uses asynchronous replication and provides availability and read scaling through manual primary/secondary configuration and failover. Both solutions integrate MySQL Shell, Router, and automatic member provisioning for easy management.

mysql
Confidential
Hybrid Replication
For Galera Clusters
¤  Allows user to add a Replication Slave to a Galera Cluster
¤  One Galera Server must be a Master:
¤  log-bin = binlog
¤  server-id = 100
¤  log-slave-updates=ON
For GTID replication (MariaDB GTID implementation is not yet supported).
¤  gtid_mode=ON
¤  enforce-gtid-consistency=ON
¤  UI - > Manage -> Configuration, change the my.cnf file on the
master node to be.
¤  Restart the MySQL server.
Copyright 2012 Severalnines AB
21
Confidential
Hybrid Replication
For Galera Clusters
¤  Create a tempate for the slave MySQL server
¤  UI -> Manage -> Configuration -> Create New Template
¤  The slave must have:
¤  server-id = 900
For GTID replication (MariaDB GTID implementation is not yet
supported).
¤  gtid_mode=ON
¤  log-slave-updates=ON
¤  enforce-gtid-consistency=ON
¤  log-bin = binlog
.. and NO wsrep variables!
22
Copyright 2012 Severalnines AB
Confidential
Hybrid Replication
For Galera Clusters
23
Copyright 2012 Severalnines AB
Confidential
Galera Replication
Traffic Encryption
¤  Setup secure communication between the Galera nodes
¤  Creates SSL certs
¤  1024, 2048 or 4096 bits encryption.
¤  s9s_galera --encrypt-replication –i <clusterid> -o enable|
disable|status
¤  SSL certs are stored in /etc/ssl/galera/
cluster_<clusterid> on the controller
¤  Cluster is stopped
¤  socket.ssl_cert= … and socket.ssl_key=… is set on in
wsrep_provider_options
¤  Cluster is started
¤  SSL certs are transferred automatically when adding nodes.
24
Copyright 2012 Severalnines AB

Recommended for you

MySQL High Availability Solutions - Avoid loss of service by reducing the r...
MySQL High Availability Solutions  -  Avoid loss of service by reducing the r...MySQL High Availability Solutions  -  Avoid loss of service by reducing the r...
MySQL High Availability Solutions - Avoid loss of service by reducing the r...

MySQL High Availability Solutions Avoid loss of service by reducing the risk of failures MySQL InnoDB Cluster Collection of products that work together to provide a complete High Availability solution for MySQL MySQL InnoDB ReplicaSet Administer a set of MySQL instances running asynchronous replication MySQL NDB Cluster A high-availability, high-redundancy version of MySQL adapted for the distributed computing environment

mysqlhigh availabilityinnodb cluster
MySQL replication best practices 105-232-931
MySQL replication best practices 105-232-931MySQL replication best practices 105-232-931
MySQL replication best practices 105-232-931

This document provides information about Baruch Osoveskiy and the services offered by dbaces.com. Baruch is a senior consultant and DBA with over 15 years of experience working with Linux, Oracle, MySQL, and unstructured data. Dbaces provides remote DBA services, consulting, training, and support for Oracle, Microsoft SQL Server, MySQL, and PostgreSQL. They host weekly webinars on database topics and offer replication monitoring and configuration services for MySQL databases.

Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition -...
Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition -...Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition -...
Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition -...

ClusterControl reduces complexity of managing your database infrastructure while adding support for new technologies; enabling you to truly automate multiple environments for next-level applications. This latest release further builds out the functionality of ClusterControl to allow you to manage and secure your 24/7, mission critical infrastructures. In this webinar, Johan demonstrated how ClusterControl increases your efficiency by giving you a single interface to deploy and operate your databases, instead of searching for and cobbling together a combination of open source tools, utilities and scripts that need constant updates and maintenance. Watch as ClusterControl demystifies the complexity associated with database high availability, load balancing, recovery and your other everyday struggles. To put it simply: learn how to be a database hero with ClusterControl! AGENDA - ClusterControl (1.4) Overview - ‘Always on Databases’ with enhanced MySQL Replication functions - ‘Safer NoSQL’ with MongoDB and larger sharded cluster deployments - ‘Enabling the DBA’ with ProxySQL, HAProxy and MaxScale - Backing up your open source databases - Live Demo - Q&A SPEAKER Johan Andersson, CTO, Severalnines - Johan's technical background and interest are in high performance computing as demonstrated by the work he did on main-memory clustered databases at Ericsson as well as his research on parallel Java Virtual Machines at Trinity College Dublin in Ireland. Prior to co-founding Severalnines, Johan was Principal Consultant and lead of the MySQL Clustering & High Availability consulting group at MySQL / Sun Microsystems / Oracle, where he designed and implemented large-scale MySQL systems for key customers. Johan is a regular speaker at MySQL User Conferences as well as other high profile community gatherings with popular talks and tutorials around architecting and tuning MySQL Clusters.

clustercontrolperconamysql
Confidential
Encrypted communication between
ClusterControl and MySQL-based
systems
¤  No tool to create the SSL certs (yet):
¤  https://dev.mysql.com/doc/refman/5.6/en/creating-ssl-
certs.html
¤  Store the master set of SSL certs on the controller, in:
¤  /etc/ssl/mysql/cluster_<clusterid>
¤  Copy SSL certs to MySQL Server nodes:
¤  mkdir /etc/mysql/certs
¤  Update my.cnf [mysqld]
ssl-ca=/etc/mysql/certs/ca.pem
ssl-cert=/etc/mysql/certs/server-cert.pem
ssl-key=/etc/mysql/certs/server-key.pem
25
Copyright 2012 Severalnines AB
Confidential
Encrypted communication between
ClusterControl and MySQL-based
systems
¤  In /etc/cmon.cnf set:
cluster_certs_store=/etc/ssl/mysql/cluster_1
cluster_ssl_key=/etc/ssl/mysql/cluster_1/client-key.pem
cluster_ssl_cert=/etc/ssl/mysql/cluster_1/client-cert.pem
cluster_ssl_ca=/etc/ssl/mysql/cluster_1/ca.pem
¤  GRANT the cmon user on the MySQL nodes:
GRANT ALL ON *.* TO ‘cmon’@’<cc server>’ IDENTIFIED BY ‘<cmon
password> REQUIRE SSL;
¤  You can also encrypt the communication between cmon and the
cmon db (mysql server), by setting:
¤  cmondb_ssl_key, cmondb_ssl_cert, cmondb_ssl_ca
¤  SSL certs are transferred automatically when adding nodes.
¤  cluster_certs_store must be set in cmon.cnf
26
Copyright 2012 Severalnines AB
Confidential
Restore Backup
27
Copyright 2012 Severalnines AB
Confidential
Galera: Bootstrap Cluster
¤  ClusterControl cannot always automatically recover a
cluster if it cannot determine the most advanced node
¤  E.g, X nodes maybe unreachable (by SSH)
¤  Filesystem may be corrupted on one or more nodes
¤  Administrator must make the decision which node to
bootstrap from
¤  Bootstrap Cluster creates a new Cluster based on one of
the nodes
¤  The other nodes will then recover from the Bootstrapped node.
28
Copyright 2012 Severalnines AB

Recommended for you

Mysql 8 vs Mariadb 10.4 Highload++ 2019
Mysql 8 vs Mariadb 10.4 Highload++ 2019Mysql 8 vs Mariadb 10.4 Highload++ 2019
Mysql 8 vs Mariadb 10.4 Highload++ 2019

At the moment MySQL 8 and MariaDB 10.4 are the latest versions of the corresponding database management systems. Each of these DBMSs has a unique set of features, unavailable in its analogue (MariaDB features might be unavailable in MySQL, and vice versa). In this presentation, we’ll cover these new features and provide recommendations re: which application will work best on which DBMS.

#mysql #mysql8 #mariadb #opensource #databases
MariaDB: Connect Storage Engine
MariaDB: Connect Storage EngineMariaDB: Connect Storage Engine
MariaDB: Connect Storage Engine

At OPEN'15, Serge Frezefond (Cloud Solutions Architect @ MariaDB), gave a presentation on Connect Storage Engine.

mysqlopen15mariadb
Scylla on Kubernetes: Introducing the Scylla Operator
Scylla on Kubernetes: Introducing the Scylla OperatorScylla on Kubernetes: Introducing the Scylla Operator
Scylla on Kubernetes: Introducing the Scylla Operator

The document introduces the Scylla Operator for Kubernetes, which provides a management layer for Scylla on Kubernetes. It addresses some limitations of using StatefulSets alone to run Scylla, such as safe scale down operations and tracking member identity. The operator implements the controller pattern with custom resources to deploy and manage Scylla clusters on Kubernetes. It handles tasks like cluster creation and scale up/down while addressing issues like local storage failures.

kubernetesscyllasummitscylladb
Confidential
Galera: Bootstrap Cluster
29
Copyright 2012 Severalnines AB
Confidential
Puppet Module and Chef Recipe
¤  Automate installation of ClusterControl
¤  http://severalnines.com/blog/devops-guide-database-
infrastructure-automation-ecommerce-replay-slides
¤  Puppet/Chef only used for initial deploy
¤  ClusterControl handles the management and automation
aspects.
30
Copyright 2012 Severalnines AB
Confidential 31
Copyright 2012 Severalnines AB
Confidential
QA
32
Copyright 2012 Severalnines AB

Recommended for you

The New MariaDB Offering: MariaDB 10, MaxScale and More
The New MariaDB Offering: MariaDB 10, MaxScale and MoreThe New MariaDB Offering: MariaDB 10, MaxScale and More
The New MariaDB Offering: MariaDB 10, MaxScale and More

The New MariaDB Offering: MariaDB 10, MaxScale and More by Serge Frezefond Presented 26.6.2014 at the MariaDB Roadshow in Paris, France.

mysqlmariadbmariadb enterprise
Less passwords, more security: unix socket authentication and other MariaDB h...
Less passwords, more security: unix socket authentication and other MariaDB h...Less passwords, more security: unix socket authentication and other MariaDB h...
Less passwords, more security: unix socket authentication and other MariaDB h...

This document discusses securing MariaDB installations through socket authentication and user account management. It recommends configuring MariaDB to use socket authentication for the root user instead of passwords to eliminate the need for root password management across servers. It also recommends creating individual user accounts with passwords for applications instead of shared accounts, restricting MariaDB to only listen on localhost, encrypting connections using SSL, and encrypting data at rest. The document provides configuration examples for implementing these recommendations in MariaDB.

devopsmariadbsalt
MySQL Database Replication - A Guide by RapidValue Solutions
MySQL Database Replication - A Guide by RapidValue SolutionsMySQL Database Replication - A Guide by RapidValue Solutions
MySQL Database Replication - A Guide by RapidValue Solutions

For many years, MySQL replication used to be based on binary log events. It was considered that all a slave knew was the exact event and the exact position it just read from the master. Any single transaction from a master could have ended in different binary logs, and also, in different positions in these logs. GTID was introduced along with MySQL 5.6. It has brought, along, some major changes in the way MySQL operates. Every transaction has a unique identifier which identifies it in a same way on every server. It’s not important, anymore, in which binary log position a transaction was recorded, all you need to know is the GTID. Database replication is used to handle multiple copies of data, automatically, from the master database server to slave database servers. If we have changed data or schema in the master database, it will, automatically, update the slave database. The main advantage of replication is that it prevents the data loss. If the master database server is crashed, the exact copy of data will be there in the slave server. In MySQL, you can use MySQL Utility for implementing database replication between master and slave. MySQL Utility is a package that is used for maintenance and administration of MySQL servers. You can install MySQL utility, along with MySQL Workbench, or install it as a stand-alone package. MySQL Replication. This article explains how it is implemented, with an example. In this example, two servers have been used – one master and one slave. Both servers are configured in the same manner with MySQL server and MySQL Utility.

mysql workbenchstages in database replicationsteps in mysql replication

More Related Content

What's hot

MySQL Load Balancers - Maxscale, ProxySQL, HAProxy, MySQL Router & nginx - A ...
MySQL Load Balancers - Maxscale, ProxySQL, HAProxy, MySQL Router & nginx - A ...MySQL Load Balancers - Maxscale, ProxySQL, HAProxy, MySQL Router & nginx - A ...
MySQL Load Balancers - Maxscale, ProxySQL, HAProxy, MySQL Router & nginx - A ...
Severalnines
 
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best PracticesMySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
Kenny Gryp
 
MariaDB Galera Cluster - Simple, Transparent, Highly Available
MariaDB Galera Cluster - Simple, Transparent, Highly AvailableMariaDB Galera Cluster - Simple, Transparent, Highly Available
MariaDB Galera Cluster - Simple, Transparent, Highly Available
MariaDB Corporation
 
MySQL Connectors 8.0.19 & DNS SRV
MySQL Connectors 8.0.19 & DNS SRVMySQL Connectors 8.0.19 & DNS SRV
MySQL Connectors 8.0.19 & DNS SRV
Kenny Gryp
 
Cassandra Day London 2015: Securing Cassandra and DataStax Enterprise
Cassandra Day London 2015: Securing Cassandra and DataStax EnterpriseCassandra Day London 2015: Securing Cassandra and DataStax Enterprise
Cassandra Day London 2015: Securing Cassandra and DataStax Enterprise
DataStax Academy
 
Nginx dhruba mandal
Nginx dhruba mandalNginx dhruba mandal
Nginx dhruba mandal
Dhrubaji Mandal ♛
 
MySQL Load Balancers - MaxScale, ProxySQL, HAProxy, MySQL Router & nginx - A ...
MySQL Load Balancers - MaxScale, ProxySQL, HAProxy, MySQL Router & nginx - A ...MySQL Load Balancers - MaxScale, ProxySQL, HAProxy, MySQL Router & nginx - A ...
MySQL Load Balancers - MaxScale, ProxySQL, HAProxy, MySQL Router & nginx - A ...
Severalnines
 
ProxySQL Tutorial - PLAM 2016
ProxySQL Tutorial - PLAM 2016ProxySQL Tutorial - PLAM 2016
ProxySQL Tutorial - PLAM 2016
Derek Downey
 
Nginx A High Performance Load Balancer, Web Server & Reverse Proxy
Nginx A High Performance Load Balancer, Web Server & Reverse ProxyNginx A High Performance Load Balancer, Web Server & Reverse Proxy
Nginx A High Performance Load Balancer, Web Server & Reverse Proxy
Amit Aggarwal
 
MySQL 8.0.21 - New Features Summary
MySQL 8.0.21 - New Features SummaryMySQL 8.0.21 - New Features Summary
MySQL 8.0.21 - New Features Summary
Olivier DASINI
 
High Availability with Galera Cluster - SkySQL Road Show 2013 in Berlin
High Availability with Galera Cluster - SkySQL Road Show 2013 in BerlinHigh Availability with Galera Cluster - SkySQL Road Show 2013 in Berlin
High Availability with Galera Cluster - SkySQL Road Show 2013 in Berlin
MariaDB Corporation
 
Understanding DSE Search by Matt Stump
Understanding DSE Search by Matt StumpUnderstanding DSE Search by Matt Stump
Understanding DSE Search by Matt Stump
DataStax
 
lock, block & two smoking barrels
lock, block & two smoking barrelslock, block & two smoking barrels
lock, block & two smoking barrels
Mark Broadbent
 
Cassandra and security
Cassandra and securityCassandra and security
Cassandra and security
Ben Bromhead
 
Galera cluster for MySQL - Introduction Slides
Galera cluster for MySQL - Introduction SlidesGalera cluster for MySQL - Introduction Slides
Galera cluster for MySQL - Introduction Slides
Severalnines
 
NGINX: Basics and Best Practices
NGINX: Basics and Best PracticesNGINX: Basics and Best Practices
NGINX: Basics and Best Practices
NGINX, Inc.
 
Building better Node.js applications on MariaDB
Building better Node.js applications on MariaDBBuilding better Node.js applications on MariaDB
Building better Node.js applications on MariaDB
MariaDB plc
 
MySQL Database Architectures - InnoDB ReplicaSet & Cluster
MySQL Database Architectures - InnoDB ReplicaSet & ClusterMySQL Database Architectures - InnoDB ReplicaSet & Cluster
MySQL Database Architectures - InnoDB ReplicaSet & Cluster
Kenny Gryp
 
MySQL High Availability Solutions - Avoid loss of service by reducing the r...
MySQL High Availability Solutions  -  Avoid loss of service by reducing the r...MySQL High Availability Solutions  -  Avoid loss of service by reducing the r...
MySQL High Availability Solutions - Avoid loss of service by reducing the r...
Olivier DASINI
 
MySQL replication best practices 105-232-931
MySQL replication best practices 105-232-931MySQL replication best practices 105-232-931
MySQL replication best practices 105-232-931
Baruch Osoveskiy
 

What's hot (20)

MySQL Load Balancers - Maxscale, ProxySQL, HAProxy, MySQL Router & nginx - A ...
MySQL Load Balancers - Maxscale, ProxySQL, HAProxy, MySQL Router & nginx - A ...MySQL Load Balancers - Maxscale, ProxySQL, HAProxy, MySQL Router & nginx - A ...
MySQL Load Balancers - Maxscale, ProxySQL, HAProxy, MySQL Router & nginx - A ...
 
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best PracticesMySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
 
MariaDB Galera Cluster - Simple, Transparent, Highly Available
MariaDB Galera Cluster - Simple, Transparent, Highly AvailableMariaDB Galera Cluster - Simple, Transparent, Highly Available
MariaDB Galera Cluster - Simple, Transparent, Highly Available
 
MySQL Connectors 8.0.19 & DNS SRV
MySQL Connectors 8.0.19 & DNS SRVMySQL Connectors 8.0.19 & DNS SRV
MySQL Connectors 8.0.19 & DNS SRV
 
Cassandra Day London 2015: Securing Cassandra and DataStax Enterprise
Cassandra Day London 2015: Securing Cassandra and DataStax EnterpriseCassandra Day London 2015: Securing Cassandra and DataStax Enterprise
Cassandra Day London 2015: Securing Cassandra and DataStax Enterprise
 
Nginx dhruba mandal
Nginx dhruba mandalNginx dhruba mandal
Nginx dhruba mandal
 
MySQL Load Balancers - MaxScale, ProxySQL, HAProxy, MySQL Router & nginx - A ...
MySQL Load Balancers - MaxScale, ProxySQL, HAProxy, MySQL Router & nginx - A ...MySQL Load Balancers - MaxScale, ProxySQL, HAProxy, MySQL Router & nginx - A ...
MySQL Load Balancers - MaxScale, ProxySQL, HAProxy, MySQL Router & nginx - A ...
 
ProxySQL Tutorial - PLAM 2016
ProxySQL Tutorial - PLAM 2016ProxySQL Tutorial - PLAM 2016
ProxySQL Tutorial - PLAM 2016
 
Nginx A High Performance Load Balancer, Web Server & Reverse Proxy
Nginx A High Performance Load Balancer, Web Server & Reverse ProxyNginx A High Performance Load Balancer, Web Server & Reverse Proxy
Nginx A High Performance Load Balancer, Web Server & Reverse Proxy
 
MySQL 8.0.21 - New Features Summary
MySQL 8.0.21 - New Features SummaryMySQL 8.0.21 - New Features Summary
MySQL 8.0.21 - New Features Summary
 
High Availability with Galera Cluster - SkySQL Road Show 2013 in Berlin
High Availability with Galera Cluster - SkySQL Road Show 2013 in BerlinHigh Availability with Galera Cluster - SkySQL Road Show 2013 in Berlin
High Availability with Galera Cluster - SkySQL Road Show 2013 in Berlin
 
Understanding DSE Search by Matt Stump
Understanding DSE Search by Matt StumpUnderstanding DSE Search by Matt Stump
Understanding DSE Search by Matt Stump
 
lock, block & two smoking barrels
lock, block & two smoking barrelslock, block & two smoking barrels
lock, block & two smoking barrels
 
Cassandra and security
Cassandra and securityCassandra and security
Cassandra and security
 
Galera cluster for MySQL - Introduction Slides
Galera cluster for MySQL - Introduction SlidesGalera cluster for MySQL - Introduction Slides
Galera cluster for MySQL - Introduction Slides
 
NGINX: Basics and Best Practices
NGINX: Basics and Best PracticesNGINX: Basics and Best Practices
NGINX: Basics and Best Practices
 
Building better Node.js applications on MariaDB
Building better Node.js applications on MariaDBBuilding better Node.js applications on MariaDB
Building better Node.js applications on MariaDB
 
MySQL Database Architectures - InnoDB ReplicaSet & Cluster
MySQL Database Architectures - InnoDB ReplicaSet & ClusterMySQL Database Architectures - InnoDB ReplicaSet & Cluster
MySQL Database Architectures - InnoDB ReplicaSet & Cluster
 
MySQL High Availability Solutions - Avoid loss of service by reducing the r...
MySQL High Availability Solutions  -  Avoid loss of service by reducing the r...MySQL High Availability Solutions  -  Avoid loss of service by reducing the r...
MySQL High Availability Solutions - Avoid loss of service by reducing the r...
 
MySQL replication best practices 105-232-931
MySQL replication best practices 105-232-931MySQL replication best practices 105-232-931
MySQL replication best practices 105-232-931
 

Similar to Slides: Introducing the new ClusterControl 1.2.9 - with live demo

Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition -...
Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition -...Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition -...
Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition -...
Severalnines
 
Mysql 8 vs Mariadb 10.4 Highload++ 2019
Mysql 8 vs Mariadb 10.4 Highload++ 2019Mysql 8 vs Mariadb 10.4 Highload++ 2019
Mysql 8 vs Mariadb 10.4 Highload++ 2019
Alkin Tezuysal
 
MariaDB: Connect Storage Engine
MariaDB: Connect Storage EngineMariaDB: Connect Storage Engine
MariaDB: Connect Storage Engine
Kangaroot
 
Scylla on Kubernetes: Introducing the Scylla Operator
Scylla on Kubernetes: Introducing the Scylla OperatorScylla on Kubernetes: Introducing the Scylla Operator
Scylla on Kubernetes: Introducing the Scylla Operator
ScyllaDB
 
The New MariaDB Offering: MariaDB 10, MaxScale and More
The New MariaDB Offering: MariaDB 10, MaxScale and MoreThe New MariaDB Offering: MariaDB 10, MaxScale and More
The New MariaDB Offering: MariaDB 10, MaxScale and More
MariaDB Corporation
 
Less passwords, more security: unix socket authentication and other MariaDB h...
Less passwords, more security: unix socket authentication and other MariaDB h...Less passwords, more security: unix socket authentication and other MariaDB h...
Less passwords, more security: unix socket authentication and other MariaDB h...
Otto Kekäläinen
 
MySQL Database Replication - A Guide by RapidValue Solutions
MySQL Database Replication - A Guide by RapidValue SolutionsMySQL Database Replication - A Guide by RapidValue Solutions
MySQL Database Replication - A Guide by RapidValue Solutions
RapidValue
 
Galera Cluster 3.0 Features
Galera Cluster 3.0 FeaturesGalera Cluster 3.0 Features
Galera Cluster 3.0 Features
Codership Oy - Creators of Galera Cluster
 
Mysql 8 vs Mariadb 10.4 Webinar 2020 Feb
Mysql 8 vs Mariadb 10.4 Webinar 2020 FebMysql 8 vs Mariadb 10.4 Webinar 2020 Feb
Mysql 8 vs Mariadb 10.4 Webinar 2020 Feb
Alkin Tezuysal
 
High performance WordPress
High performance WordPressHigh performance WordPress
High performance WordPress
Mikel King
 
MaxScale - The Pluggibale Router MariaDB Roadshow 2014 Paris
MaxScale - The Pluggibale Router MariaDB Roadshow 2014 ParisMaxScale - The Pluggibale Router MariaDB Roadshow 2014 Paris
MaxScale - The Pluggibale Router MariaDB Roadshow 2014 Paris
MariaDB Corporation
 
MySQL database replication
MySQL database replicationMySQL database replication
MySQL database replication
PoguttuezhiniVP
 
Webinar slides: ClusterControl New Features Webinar
Webinar slides: ClusterControl New Features Webinar Webinar slides: ClusterControl New Features Webinar
Webinar slides: ClusterControl New Features Webinar
Severalnines
 
Linux Experience for Herman
Linux Experience for HermanLinux Experience for Herman
Linux Experience for Herman
Hin Yeung Herman LEUNG
 
MaxScale - The Pluggable Router
MaxScale - The Pluggable RouterMaxScale - The Pluggable Router
MaxScale - The Pluggable Router
MariaDB Corporation
 
MySQL Scalability and Reliability for Replicated Environment
MySQL Scalability and Reliability for Replicated EnvironmentMySQL Scalability and Reliability for Replicated Environment
MySQL Scalability and Reliability for Replicated Environment
Jean-François Gagné
 
Engineering an Encrypted Storage Engine
Engineering an Encrypted Storage EngineEngineering an Encrypted Storage Engine
Engineering an Encrypted Storage Engine
MongoDB
 
Xen Virtualization 2008
Xen Virtualization 2008Xen Virtualization 2008
Xen Virtualization 2008
mwlang88
 
The New MariaDB Offering - MariaDB 10, MaxScale and more
The New MariaDB Offering - MariaDB 10, MaxScale and moreThe New MariaDB Offering - MariaDB 10, MaxScale and more
The New MariaDB Offering - MariaDB 10, MaxScale and more
MariaDB Corporation
 
Under the Hood 11g Identity Management
Under the Hood  11g Identity ManagementUnder the Hood  11g Identity Management
Under the Hood 11g Identity Management
InSync Conference
 

Similar to Slides: Introducing the new ClusterControl 1.2.9 - with live demo (20)

Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition -...
Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition -...Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition -...
Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition -...
 
Mysql 8 vs Mariadb 10.4 Highload++ 2019
Mysql 8 vs Mariadb 10.4 Highload++ 2019Mysql 8 vs Mariadb 10.4 Highload++ 2019
Mysql 8 vs Mariadb 10.4 Highload++ 2019
 
MariaDB: Connect Storage Engine
MariaDB: Connect Storage EngineMariaDB: Connect Storage Engine
MariaDB: Connect Storage Engine
 
Scylla on Kubernetes: Introducing the Scylla Operator
Scylla on Kubernetes: Introducing the Scylla OperatorScylla on Kubernetes: Introducing the Scylla Operator
Scylla on Kubernetes: Introducing the Scylla Operator
 
The New MariaDB Offering: MariaDB 10, MaxScale and More
The New MariaDB Offering: MariaDB 10, MaxScale and MoreThe New MariaDB Offering: MariaDB 10, MaxScale and More
The New MariaDB Offering: MariaDB 10, MaxScale and More
 
Less passwords, more security: unix socket authentication and other MariaDB h...
Less passwords, more security: unix socket authentication and other MariaDB h...Less passwords, more security: unix socket authentication and other MariaDB h...
Less passwords, more security: unix socket authentication and other MariaDB h...
 
MySQL Database Replication - A Guide by RapidValue Solutions
MySQL Database Replication - A Guide by RapidValue SolutionsMySQL Database Replication - A Guide by RapidValue Solutions
MySQL Database Replication - A Guide by RapidValue Solutions
 
Galera Cluster 3.0 Features
Galera Cluster 3.0 FeaturesGalera Cluster 3.0 Features
Galera Cluster 3.0 Features
 
Mysql 8 vs Mariadb 10.4 Webinar 2020 Feb
Mysql 8 vs Mariadb 10.4 Webinar 2020 FebMysql 8 vs Mariadb 10.4 Webinar 2020 Feb
Mysql 8 vs Mariadb 10.4 Webinar 2020 Feb
 
High performance WordPress
High performance WordPressHigh performance WordPress
High performance WordPress
 
MaxScale - The Pluggibale Router MariaDB Roadshow 2014 Paris
MaxScale - The Pluggibale Router MariaDB Roadshow 2014 ParisMaxScale - The Pluggibale Router MariaDB Roadshow 2014 Paris
MaxScale - The Pluggibale Router MariaDB Roadshow 2014 Paris
 
MySQL database replication
MySQL database replicationMySQL database replication
MySQL database replication
 
Webinar slides: ClusterControl New Features Webinar
Webinar slides: ClusterControl New Features Webinar Webinar slides: ClusterControl New Features Webinar
Webinar slides: ClusterControl New Features Webinar
 
Linux Experience for Herman
Linux Experience for HermanLinux Experience for Herman
Linux Experience for Herman
 
MaxScale - The Pluggable Router
MaxScale - The Pluggable RouterMaxScale - The Pluggable Router
MaxScale - The Pluggable Router
 
MySQL Scalability and Reliability for Replicated Environment
MySQL Scalability and Reliability for Replicated EnvironmentMySQL Scalability and Reliability for Replicated Environment
MySQL Scalability and Reliability for Replicated Environment
 
Engineering an Encrypted Storage Engine
Engineering an Encrypted Storage EngineEngineering an Encrypted Storage Engine
Engineering an Encrypted Storage Engine
 
Xen Virtualization 2008
Xen Virtualization 2008Xen Virtualization 2008
Xen Virtualization 2008
 
The New MariaDB Offering - MariaDB 10, MaxScale and more
The New MariaDB Offering - MariaDB 10, MaxScale and moreThe New MariaDB Offering - MariaDB 10, MaxScale and more
The New MariaDB Offering - MariaDB 10, MaxScale and more
 
Under the Hood 11g Identity Management
Under the Hood  11g Identity ManagementUnder the Hood  11g Identity Management
Under the Hood 11g Identity Management
 

More from Severalnines

WEBINAR SLIDES: CCX for Cloud Service Providers
WEBINAR SLIDES: CCX for Cloud Service ProvidersWEBINAR SLIDES: CCX for Cloud Service Providers
WEBINAR SLIDES: CCX for Cloud Service Providers
Severalnines
 
LIVE DEMO: CCX for CSPs, a drop-in DBaaS solution
LIVE DEMO: CCX for CSPs, a drop-in DBaaS solutionLIVE DEMO: CCX for CSPs, a drop-in DBaaS solution
LIVE DEMO: CCX for CSPs, a drop-in DBaaS solution
Severalnines
 
Kubernetes at Scale: Going Multi-Cluster with Istio
Kubernetes at Scale:  Going Multi-Cluster  with IstioKubernetes at Scale:  Going Multi-Cluster  with Istio
Kubernetes at Scale: Going Multi-Cluster with Istio
Severalnines
 
DIY DBaaS: A guide to building your own full-featured DBaaS
DIY DBaaS: A guide to building your own full-featured DBaaSDIY DBaaS: A guide to building your own full-featured DBaaS
DIY DBaaS: A guide to building your own full-featured DBaaS
Severalnines
 
Cloud's future runs through Sovereign DBaaS
Cloud's future runs through Sovereign DBaaSCloud's future runs through Sovereign DBaaS
Cloud's future runs through Sovereign DBaaS
Severalnines
 
Tips to drive maria db cluster performance for nextcloud
Tips to drive maria db cluster performance for nextcloudTips to drive maria db cluster performance for nextcloud
Tips to drive maria db cluster performance for nextcloud
Severalnines
 
Working with the Moodle Database: The Basics
Working with the Moodle Database: The BasicsWorking with the Moodle Database: The Basics
Working with the Moodle Database: The Basics
Severalnines
 
SysAdmin Working from Home? Tips to Automate MySQL, MariaDB, Postgres & MongoDB
SysAdmin Working from Home? Tips to Automate MySQL, MariaDB, Postgres & MongoDBSysAdmin Working from Home? Tips to Automate MySQL, MariaDB, Postgres & MongoDB
SysAdmin Working from Home? Tips to Automate MySQL, MariaDB, Postgres & MongoDB
Severalnines
 
(slides) Polyglot persistence: utilizing open source databases as a Swiss poc...
(slides) Polyglot persistence: utilizing open source databases as a Swiss poc...(slides) Polyglot persistence: utilizing open source databases as a Swiss poc...
(slides) Polyglot persistence: utilizing open source databases as a Swiss poc...
Severalnines
 
Webinar slides: How to Migrate from Oracle DB to MariaDB
Webinar slides: How to Migrate from Oracle DB to MariaDBWebinar slides: How to Migrate from Oracle DB to MariaDB
Webinar slides: How to Migrate from Oracle DB to MariaDB
Severalnines
 
Webinar slides: How to Automate & Manage PostgreSQL with ClusterControl
Webinar slides: How to Automate & Manage PostgreSQL with ClusterControlWebinar slides: How to Automate & Manage PostgreSQL with ClusterControl
Webinar slides: How to Automate & Manage PostgreSQL with ClusterControl
Severalnines
 
Webinar slides: How to Manage Replication Failover Processes for MySQL, Maria...
Webinar slides: How to Manage Replication Failover Processes for MySQL, Maria...Webinar slides: How to Manage Replication Failover Processes for MySQL, Maria...
Webinar slides: How to Manage Replication Failover Processes for MySQL, Maria...
Severalnines
 
Webinar slides: Backup Management for MySQL, MariaDB, PostgreSQL & MongoDB wi...
Webinar slides: Backup Management for MySQL, MariaDB, PostgreSQL & MongoDB wi...Webinar slides: Backup Management for MySQL, MariaDB, PostgreSQL & MongoDB wi...
Webinar slides: Backup Management for MySQL, MariaDB, PostgreSQL & MongoDB wi...
Severalnines
 
Disaster Recovery Planning for MySQL & MariaDB
Disaster Recovery Planning for MySQL & MariaDBDisaster Recovery Planning for MySQL & MariaDB
Disaster Recovery Planning for MySQL & MariaDB
Severalnines
 
MariaDB Performance Tuning Crash Course
MariaDB Performance Tuning Crash CourseMariaDB Performance Tuning Crash Course
MariaDB Performance Tuning Crash Course
Severalnines
 
Performance Tuning Cheat Sheet for MongoDB
Performance Tuning Cheat Sheet for MongoDBPerformance Tuning Cheat Sheet for MongoDB
Performance Tuning Cheat Sheet for MongoDB
Severalnines
 
Advanced MySql Data-at-Rest Encryption in Percona Server
Advanced MySql Data-at-Rest Encryption in Percona ServerAdvanced MySql Data-at-Rest Encryption in Percona Server
Advanced MySql Data-at-Rest Encryption in Percona Server
Severalnines
 
Polyglot Persistence Utilizing Open Source Databases as a Swiss Pocket Knife
Polyglot Persistence Utilizing Open Source Databases as a Swiss Pocket KnifePolyglot Persistence Utilizing Open Source Databases as a Swiss Pocket Knife
Polyglot Persistence Utilizing Open Source Databases as a Swiss Pocket Knife
Severalnines
 
Webinar slides: Free Monitoring (on Steroids) for MySQL, MariaDB, PostgreSQL ...
Webinar slides: Free Monitoring (on Steroids) for MySQL, MariaDB, PostgreSQL ...Webinar slides: Free Monitoring (on Steroids) for MySQL, MariaDB, PostgreSQL ...
Webinar slides: Free Monitoring (on Steroids) for MySQL, MariaDB, PostgreSQL ...
Severalnines
 
Webinar slides: An Introduction to Performance Monitoring for PostgreSQL
Webinar slides: An Introduction to Performance Monitoring for PostgreSQLWebinar slides: An Introduction to Performance Monitoring for PostgreSQL
Webinar slides: An Introduction to Performance Monitoring for PostgreSQL
Severalnines
 

More from Severalnines (20)

WEBINAR SLIDES: CCX for Cloud Service Providers
WEBINAR SLIDES: CCX for Cloud Service ProvidersWEBINAR SLIDES: CCX for Cloud Service Providers
WEBINAR SLIDES: CCX for Cloud Service Providers
 
LIVE DEMO: CCX for CSPs, a drop-in DBaaS solution
LIVE DEMO: CCX for CSPs, a drop-in DBaaS solutionLIVE DEMO: CCX for CSPs, a drop-in DBaaS solution
LIVE DEMO: CCX for CSPs, a drop-in DBaaS solution
 
Kubernetes at Scale: Going Multi-Cluster with Istio
Kubernetes at Scale:  Going Multi-Cluster  with IstioKubernetes at Scale:  Going Multi-Cluster  with Istio
Kubernetes at Scale: Going Multi-Cluster with Istio
 
DIY DBaaS: A guide to building your own full-featured DBaaS
DIY DBaaS: A guide to building your own full-featured DBaaSDIY DBaaS: A guide to building your own full-featured DBaaS
DIY DBaaS: A guide to building your own full-featured DBaaS
 
Cloud's future runs through Sovereign DBaaS
Cloud's future runs through Sovereign DBaaSCloud's future runs through Sovereign DBaaS
Cloud's future runs through Sovereign DBaaS
 
Tips to drive maria db cluster performance for nextcloud
Tips to drive maria db cluster performance for nextcloudTips to drive maria db cluster performance for nextcloud
Tips to drive maria db cluster performance for nextcloud
 
Working with the Moodle Database: The Basics
Working with the Moodle Database: The BasicsWorking with the Moodle Database: The Basics
Working with the Moodle Database: The Basics
 
SysAdmin Working from Home? Tips to Automate MySQL, MariaDB, Postgres & MongoDB
SysAdmin Working from Home? Tips to Automate MySQL, MariaDB, Postgres & MongoDBSysAdmin Working from Home? Tips to Automate MySQL, MariaDB, Postgres & MongoDB
SysAdmin Working from Home? Tips to Automate MySQL, MariaDB, Postgres & MongoDB
 
(slides) Polyglot persistence: utilizing open source databases as a Swiss poc...
(slides) Polyglot persistence: utilizing open source databases as a Swiss poc...(slides) Polyglot persistence: utilizing open source databases as a Swiss poc...
(slides) Polyglot persistence: utilizing open source databases as a Swiss poc...
 
Webinar slides: How to Migrate from Oracle DB to MariaDB
Webinar slides: How to Migrate from Oracle DB to MariaDBWebinar slides: How to Migrate from Oracle DB to MariaDB
Webinar slides: How to Migrate from Oracle DB to MariaDB
 
Webinar slides: How to Automate & Manage PostgreSQL with ClusterControl
Webinar slides: How to Automate & Manage PostgreSQL with ClusterControlWebinar slides: How to Automate & Manage PostgreSQL with ClusterControl
Webinar slides: How to Automate & Manage PostgreSQL with ClusterControl
 
Webinar slides: How to Manage Replication Failover Processes for MySQL, Maria...
Webinar slides: How to Manage Replication Failover Processes for MySQL, Maria...Webinar slides: How to Manage Replication Failover Processes for MySQL, Maria...
Webinar slides: How to Manage Replication Failover Processes for MySQL, Maria...
 
Webinar slides: Backup Management for MySQL, MariaDB, PostgreSQL & MongoDB wi...
Webinar slides: Backup Management for MySQL, MariaDB, PostgreSQL & MongoDB wi...Webinar slides: Backup Management for MySQL, MariaDB, PostgreSQL & MongoDB wi...
Webinar slides: Backup Management for MySQL, MariaDB, PostgreSQL & MongoDB wi...
 
Disaster Recovery Planning for MySQL & MariaDB
Disaster Recovery Planning for MySQL & MariaDBDisaster Recovery Planning for MySQL & MariaDB
Disaster Recovery Planning for MySQL & MariaDB
 
MariaDB Performance Tuning Crash Course
MariaDB Performance Tuning Crash CourseMariaDB Performance Tuning Crash Course
MariaDB Performance Tuning Crash Course
 
Performance Tuning Cheat Sheet for MongoDB
Performance Tuning Cheat Sheet for MongoDBPerformance Tuning Cheat Sheet for MongoDB
Performance Tuning Cheat Sheet for MongoDB
 
Advanced MySql Data-at-Rest Encryption in Percona Server
Advanced MySql Data-at-Rest Encryption in Percona ServerAdvanced MySql Data-at-Rest Encryption in Percona Server
Advanced MySql Data-at-Rest Encryption in Percona Server
 
Polyglot Persistence Utilizing Open Source Databases as a Swiss Pocket Knife
Polyglot Persistence Utilizing Open Source Databases as a Swiss Pocket KnifePolyglot Persistence Utilizing Open Source Databases as a Swiss Pocket Knife
Polyglot Persistence Utilizing Open Source Databases as a Swiss Pocket Knife
 
Webinar slides: Free Monitoring (on Steroids) for MySQL, MariaDB, PostgreSQL ...
Webinar slides: Free Monitoring (on Steroids) for MySQL, MariaDB, PostgreSQL ...Webinar slides: Free Monitoring (on Steroids) for MySQL, MariaDB, PostgreSQL ...
Webinar slides: Free Monitoring (on Steroids) for MySQL, MariaDB, PostgreSQL ...
 
Webinar slides: An Introduction to Performance Monitoring for PostgreSQL
Webinar slides: An Introduction to Performance Monitoring for PostgreSQLWebinar slides: An Introduction to Performance Monitoring for PostgreSQL
Webinar slides: An Introduction to Performance Monitoring for PostgreSQL
 

Recently uploaded

Pigging Solutions Sustainability brochure.pdf
Pigging Solutions Sustainability brochure.pdfPigging Solutions Sustainability brochure.pdf
Pigging Solutions Sustainability brochure.pdf
Pigging Solutions
 
20240702 QFM021 Machine Intelligence Reading List June 2024
20240702 QFM021 Machine Intelligence Reading List June 202420240702 QFM021 Machine Intelligence Reading List June 2024
20240702 QFM021 Machine Intelligence Reading List June 2024
Matthew Sinclair
 
Best Practices for Effectively Running dbt in Airflow.pdf
Best Practices for Effectively Running dbt in Airflow.pdfBest Practices for Effectively Running dbt in Airflow.pdf
Best Practices for Effectively Running dbt in Airflow.pdf
Tatiana Al-Chueyr
 
The Increasing Use of the National Research Platform by the CSU Campuses
The Increasing Use of the National Research Platform by the CSU CampusesThe Increasing Use of the National Research Platform by the CSU Campuses
The Increasing Use of the National Research Platform by the CSU Campuses
Larry Smarr
 
[Talk] Moving Beyond Spaghetti Infrastructure [AOTB] 2024-07-04.pdf
[Talk] Moving Beyond Spaghetti Infrastructure [AOTB] 2024-07-04.pdf[Talk] Moving Beyond Spaghetti Infrastructure [AOTB] 2024-07-04.pdf
[Talk] Moving Beyond Spaghetti Infrastructure [AOTB] 2024-07-04.pdf
Kief Morris
 
Understanding Insider Security Threats: Types, Examples, Effects, and Mitigat...
Understanding Insider Security Threats: Types, Examples, Effects, and Mitigat...Understanding Insider Security Threats: Types, Examples, Effects, and Mitigat...
Understanding Insider Security Threats: Types, Examples, Effects, and Mitigat...
Bert Blevins
 
20240704 QFM023 Engineering Leadership Reading List June 2024
20240704 QFM023 Engineering Leadership Reading List June 202420240704 QFM023 Engineering Leadership Reading List June 2024
20240704 QFM023 Engineering Leadership Reading List June 2024
Matthew Sinclair
 
The Rise of Supernetwork Data Intensive Computing
The Rise of Supernetwork Data Intensive ComputingThe Rise of Supernetwork Data Intensive Computing
The Rise of Supernetwork Data Intensive Computing
Larry Smarr
 
20240705 QFM024 Irresponsible AI Reading List June 2024
20240705 QFM024 Irresponsible AI Reading List June 202420240705 QFM024 Irresponsible AI Reading List June 2024
20240705 QFM024 Irresponsible AI Reading List June 2024
Matthew Sinclair
 
Best Programming Language for Civil Engineers
Best Programming Language for Civil EngineersBest Programming Language for Civil Engineers
Best Programming Language for Civil Engineers
Awais Yaseen
 
Quantum Communications Q&A with Gemini LLM
Quantum Communications Q&A with Gemini LLMQuantum Communications Q&A with Gemini LLM
Quantum Communications Q&A with Gemini LLM
Vijayananda Mohire
 
Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...
Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...
Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...
Chris Swan
 
Scaling Connections in PostgreSQL Postgres Bangalore(PGBLR) Meetup-2 - Mydbops
Scaling Connections in PostgreSQL Postgres Bangalore(PGBLR) Meetup-2 - MydbopsScaling Connections in PostgreSQL Postgres Bangalore(PGBLR) Meetup-2 - Mydbops
Scaling Connections in PostgreSQL Postgres Bangalore(PGBLR) Meetup-2 - Mydbops
Mydbops
 
INDIAN AIR FORCE FIGHTER PLANES LIST.pdf
INDIAN AIR FORCE FIGHTER PLANES LIST.pdfINDIAN AIR FORCE FIGHTER PLANES LIST.pdf
INDIAN AIR FORCE FIGHTER PLANES LIST.pdf
jackson110191
 
Cookies program to display the information though cookie creation
Cookies program to display the information though cookie creationCookies program to display the information though cookie creation
Cookies program to display the information though cookie creation
shanthidl1
 
What's New in Copilot for Microsoft365 May 2024.pptx
What's New in Copilot for Microsoft365 May 2024.pptxWhat's New in Copilot for Microsoft365 May 2024.pptx
What's New in Copilot for Microsoft365 May 2024.pptx
Stephanie Beckett
 
Research Directions for Cross Reality Interfaces
Research Directions for Cross Reality InterfacesResearch Directions for Cross Reality Interfaces
Research Directions for Cross Reality Interfaces
Mark Billinghurst
 
Active Inference is a veryyyyyyyyyyyyyyyyyyyyyyyy
Active Inference is a veryyyyyyyyyyyyyyyyyyyyyyyyActive Inference is a veryyyyyyyyyyyyyyyyyyyyyyyy
Active Inference is a veryyyyyyyyyyyyyyyyyyyyyyyy
RaminGhanbari2
 
Observability For You and Me with OpenTelemetry
Observability For You and Me with OpenTelemetryObservability For You and Me with OpenTelemetry
Observability For You and Me with OpenTelemetry
Eric D. Schabell
 
What’s New in Teams Calling, Meetings and Devices May 2024
What’s New in Teams Calling, Meetings and Devices May 2024What’s New in Teams Calling, Meetings and Devices May 2024
What’s New in Teams Calling, Meetings and Devices May 2024
Stephanie Beckett
 

Recently uploaded (20)

Pigging Solutions Sustainability brochure.pdf
Pigging Solutions Sustainability brochure.pdfPigging Solutions Sustainability brochure.pdf
Pigging Solutions Sustainability brochure.pdf
 
20240702 QFM021 Machine Intelligence Reading List June 2024
20240702 QFM021 Machine Intelligence Reading List June 202420240702 QFM021 Machine Intelligence Reading List June 2024
20240702 QFM021 Machine Intelligence Reading List June 2024
 
Best Practices for Effectively Running dbt in Airflow.pdf
Best Practices for Effectively Running dbt in Airflow.pdfBest Practices for Effectively Running dbt in Airflow.pdf
Best Practices for Effectively Running dbt in Airflow.pdf
 
The Increasing Use of the National Research Platform by the CSU Campuses
The Increasing Use of the National Research Platform by the CSU CampusesThe Increasing Use of the National Research Platform by the CSU Campuses
The Increasing Use of the National Research Platform by the CSU Campuses
 
[Talk] Moving Beyond Spaghetti Infrastructure [AOTB] 2024-07-04.pdf
[Talk] Moving Beyond Spaghetti Infrastructure [AOTB] 2024-07-04.pdf[Talk] Moving Beyond Spaghetti Infrastructure [AOTB] 2024-07-04.pdf
[Talk] Moving Beyond Spaghetti Infrastructure [AOTB] 2024-07-04.pdf
 
Understanding Insider Security Threats: Types, Examples, Effects, and Mitigat...
Understanding Insider Security Threats: Types, Examples, Effects, and Mitigat...Understanding Insider Security Threats: Types, Examples, Effects, and Mitigat...
Understanding Insider Security Threats: Types, Examples, Effects, and Mitigat...
 
20240704 QFM023 Engineering Leadership Reading List June 2024
20240704 QFM023 Engineering Leadership Reading List June 202420240704 QFM023 Engineering Leadership Reading List June 2024
20240704 QFM023 Engineering Leadership Reading List June 2024
 
The Rise of Supernetwork Data Intensive Computing
The Rise of Supernetwork Data Intensive ComputingThe Rise of Supernetwork Data Intensive Computing
The Rise of Supernetwork Data Intensive Computing
 
20240705 QFM024 Irresponsible AI Reading List June 2024
20240705 QFM024 Irresponsible AI Reading List June 202420240705 QFM024 Irresponsible AI Reading List June 2024
20240705 QFM024 Irresponsible AI Reading List June 2024
 
Best Programming Language for Civil Engineers
Best Programming Language for Civil EngineersBest Programming Language for Civil Engineers
Best Programming Language for Civil Engineers
 
Quantum Communications Q&A with Gemini LLM
Quantum Communications Q&A with Gemini LLMQuantum Communications Q&A with Gemini LLM
Quantum Communications Q&A with Gemini LLM
 
Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...
Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...
Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...
 
Scaling Connections in PostgreSQL Postgres Bangalore(PGBLR) Meetup-2 - Mydbops
Scaling Connections in PostgreSQL Postgres Bangalore(PGBLR) Meetup-2 - MydbopsScaling Connections in PostgreSQL Postgres Bangalore(PGBLR) Meetup-2 - Mydbops
Scaling Connections in PostgreSQL Postgres Bangalore(PGBLR) Meetup-2 - Mydbops
 
INDIAN AIR FORCE FIGHTER PLANES LIST.pdf
INDIAN AIR FORCE FIGHTER PLANES LIST.pdfINDIAN AIR FORCE FIGHTER PLANES LIST.pdf
INDIAN AIR FORCE FIGHTER PLANES LIST.pdf
 
Cookies program to display the information though cookie creation
Cookies program to display the information though cookie creationCookies program to display the information though cookie creation
Cookies program to display the information though cookie creation
 
What's New in Copilot for Microsoft365 May 2024.pptx
What's New in Copilot for Microsoft365 May 2024.pptxWhat's New in Copilot for Microsoft365 May 2024.pptx
What's New in Copilot for Microsoft365 May 2024.pptx
 
Research Directions for Cross Reality Interfaces
Research Directions for Cross Reality InterfacesResearch Directions for Cross Reality Interfaces
Research Directions for Cross Reality Interfaces
 
Active Inference is a veryyyyyyyyyyyyyyyyyyyyyyyy
Active Inference is a veryyyyyyyyyyyyyyyyyyyyyyyyActive Inference is a veryyyyyyyyyyyyyyyyyyyyyyyy
Active Inference is a veryyyyyyyyyyyyyyyyyyyyyyyy
 
Observability For You and Me with OpenTelemetry
Observability For You and Me with OpenTelemetryObservability For You and Me with OpenTelemetry
Observability For You and Me with OpenTelemetry
 
What’s New in Teams Calling, Meetings and Devices May 2024
What’s New in Teams Calling, Meetings and Devices May 2024What’s New in Teams Calling, Meetings and Devices May 2024
What’s New in Teams Calling, Meetings and Devices May 2024
 

Slides: Introducing the new ClusterControl 1.2.9 - with live demo

  • 1. Confidential ClusterControl 1.2.9 March 2015 Johan Andersson CTO, Severalnines johan@severalnines.com
  • 2. Confidential About us ¤  Founded 2011 ¤  Ex-MySQL/Sun/Oracle staff ¤  HQ in Stockholm, Sweden ¤  Focus: Cluster automation and management ¤  MySQL, Percona, MariaDB, MongoDB, TokuMX, PostgreSQL ¤  Over 7000 deployed clusters ¤  Over 100 enterprise customers 2 Copyright 2012 Severalnines AB
  • 3. Confidential Customers 3 Copyright Severalnines AB begin; select * from sbtest1 where id=4 for update;
  • 4. Confidential What Problems do we Address? 4 Copyright 2012 Severalnines AB Manage Scale MonitorDeploy
  • 5. Confidential Deployment - Beyond Puppet or Chef ¤  Puppet/Chef are appropriate for a group of single-node components ¤  E.g. web servers can be clones of each other.. ¤  Distributed databases are complex ¤  Different node types & roles ¤  Orchestration of procedures in a specific order ¤  Using e.g. Chef for deploying a distributed database ¤  Yes, it is possible ¤  Not much Chef functionality is leveraged ¤  Prepare to write code 5 Copyright Severalnines AB
  • 6. Confidential Monitoring - Beyond Nagios ¤  What do you do when the application is slow? ¤  Is it Disk? CPU? RAM? Badly written queries? ¤  What are the symptoms? (Replication queues, Page Faults, locks, # connections, deadlocks …) ¤  How do you avoid problems? ¤  How do you plan for capacity? 6 Copyright Severalnines AB
  • 8. Confidential Scaling - Beyond Manual Operations 8 Copyright 2012 Severalnines AB
  • 9. Confidential ClusterControl - In a nutshell 9 Copyright 2012 Severalnines AB Manage Scale MonitorDeploy
  • 10. Confidential Configurators ¤  MongoDB / TokuMX Sharded Cluster ¤  MongoDB / TokuMX Replica Set ¤  MySQL Galera Cluster (Codership) ¤  Percona XtraDB Cluster ¤  MariaDB Cluster ¤  MySQL Cluster (NDB) ¤  MySQL Replication 5.6 10 Copyright 2012 Severalnines AB
  • 11. Confidential Deploy From ClusterControl ¤  MongoDB ReplicaSet ¤  Percona XtraDB Cluster / MariaDB Cluster ¤  Standalone nodes (MongoDB, MySQL, MariaDB) 11 Copyright 2012 Severalnines AB
  • 12. Confidential Add Existing Clusters To ClusterControl ¤  Galera Cluster (Codership/Percona/MariaDb) ¤  Single MySQL Server nodes ¤  MongoDB ReplicaSet ¤  Single PostgreSQL nodes SSH access (pubkey auth) is required from: Controller -> Nodes Controller -> Controller (itself) 12 Copyright 2012 Severalnines AB
  • 13. Confidential ClusterControl Automation & Management ¤  Management ¤  Multi cluster/data-center ¤  Automate repair/recovery ¤  Database upgrades ¤  Backups ¤  Configuration management ¤  Cloning ¤  One-click scaling 13 Copyright Severalnines AB
  • 16. Confidential Getting Started ¤  Dedicated VM for the controller ¤  Specs ¤  2 CPU cores ¤  2-4GB RAM ¤  20GB diskspace ¤  No agents ¤  Host stats gathered via SSH ¤  Installation ¤  YUM/APT ¤  Setup SSH access to DB nodes ¤  http://repo.severalnines.com/ 16 Copyright Severalnines AB
  • 17. Confidential What’s new in 1.2.9? ¤  PostgreSQL Support ¤  Improved HAProxy support ¤  Hybrid Replication with Galera Clusters ¤  Galera Replication Traffic Encryption ¤  Encrypted communication between ClusterControl and MySQL- based systems ¤  Improved Backup and Restore Database ¤  Galera: Bootstrap Cluster , Recover Non-Primary node. ¤  MySQL: Deadlock detection / Long Query ¤  MongoDb: Improved pagefault and locking inspection 17 Copyright 2012 Severalnines AB
  • 18. Confidential PostgreSQL ¤  Support for single PostgreSQL systems ¤  Version 9.x supported ¤  Add existing PostgreSQL servers to ClusterControl ¤  Process management / auto recovery of failed instance ¤  Backup ¤  Query Monitor 18 Copyright 2012 Severalnines AB
  • 19. Confidential Improved HAProxy ¤  Richer UI with built-in HAProxy stats ¤  View Stats ¤  Disable / Enable nodes part of the load balancer ¤  Powerful deployment capabilities ¤  Specify what DB servers to include on the backend ¤  Specify ACTIVE/BACKUP backend (DB) servers ¤  Tune timeouts ¤  Templated configuration: /usr/share/cmon/templates/haproxy.cfg /usr/share/cmon/templates/mysqlchk.* /usr/share/cmon/templates/mysqlchk_xinetd 19 Copyright 2012 Severalnines AB
  • 20. Confidential Hybrid Replication For Galera Clusters ¤  Allows user to add a Replication Slave to a Galera Cluster ¤  GTID and non-GTID replication is support ¤  MariaDB GTID is not currently supported ¤  Single click failover slave from one master to another ¤  Requires to Masters ¤  Restage a slave with data from master. ¤  Using xtrabackup Copyright 2012 Severalnines AB 20 MySQL [Slave]
  • 21. Confidential Hybrid Replication For Galera Clusters ¤  Allows user to add a Replication Slave to a Galera Cluster ¤  One Galera Server must be a Master: ¤  log-bin = binlog ¤  server-id = 100 ¤  log-slave-updates=ON For GTID replication (MariaDB GTID implementation is not yet supported). ¤  gtid_mode=ON ¤  enforce-gtid-consistency=ON ¤  UI - > Manage -> Configuration, change the my.cnf file on the master node to be. ¤  Restart the MySQL server. Copyright 2012 Severalnines AB 21
  • 22. Confidential Hybrid Replication For Galera Clusters ¤  Create a tempate for the slave MySQL server ¤  UI -> Manage -> Configuration -> Create New Template ¤  The slave must have: ¤  server-id = 900 For GTID replication (MariaDB GTID implementation is not yet supported). ¤  gtid_mode=ON ¤  log-slave-updates=ON ¤  enforce-gtid-consistency=ON ¤  log-bin = binlog .. and NO wsrep variables! 22 Copyright 2012 Severalnines AB
  • 23. Confidential Hybrid Replication For Galera Clusters 23 Copyright 2012 Severalnines AB
  • 24. Confidential Galera Replication Traffic Encryption ¤  Setup secure communication between the Galera nodes ¤  Creates SSL certs ¤  1024, 2048 or 4096 bits encryption. ¤  s9s_galera --encrypt-replication –i <clusterid> -o enable| disable|status ¤  SSL certs are stored in /etc/ssl/galera/ cluster_<clusterid> on the controller ¤  Cluster is stopped ¤  socket.ssl_cert= … and socket.ssl_key=… is set on in wsrep_provider_options ¤  Cluster is started ¤  SSL certs are transferred automatically when adding nodes. 24 Copyright 2012 Severalnines AB
  • 25. Confidential Encrypted communication between ClusterControl and MySQL-based systems ¤  No tool to create the SSL certs (yet): ¤  https://dev.mysql.com/doc/refman/5.6/en/creating-ssl- certs.html ¤  Store the master set of SSL certs on the controller, in: ¤  /etc/ssl/mysql/cluster_<clusterid> ¤  Copy SSL certs to MySQL Server nodes: ¤  mkdir /etc/mysql/certs ¤  Update my.cnf [mysqld] ssl-ca=/etc/mysql/certs/ca.pem ssl-cert=/etc/mysql/certs/server-cert.pem ssl-key=/etc/mysql/certs/server-key.pem 25 Copyright 2012 Severalnines AB
  • 26. Confidential Encrypted communication between ClusterControl and MySQL-based systems ¤  In /etc/cmon.cnf set: cluster_certs_store=/etc/ssl/mysql/cluster_1 cluster_ssl_key=/etc/ssl/mysql/cluster_1/client-key.pem cluster_ssl_cert=/etc/ssl/mysql/cluster_1/client-cert.pem cluster_ssl_ca=/etc/ssl/mysql/cluster_1/ca.pem ¤  GRANT the cmon user on the MySQL nodes: GRANT ALL ON *.* TO ‘cmon’@’<cc server>’ IDENTIFIED BY ‘<cmon password> REQUIRE SSL; ¤  You can also encrypt the communication between cmon and the cmon db (mysql server), by setting: ¤  cmondb_ssl_key, cmondb_ssl_cert, cmondb_ssl_ca ¤  SSL certs are transferred automatically when adding nodes. ¤  cluster_certs_store must be set in cmon.cnf 26 Copyright 2012 Severalnines AB
  • 28. Confidential Galera: Bootstrap Cluster ¤  ClusterControl cannot always automatically recover a cluster if it cannot determine the most advanced node ¤  E.g, X nodes maybe unreachable (by SSH) ¤  Filesystem may be corrupted on one or more nodes ¤  Administrator must make the decision which node to bootstrap from ¤  Bootstrap Cluster creates a new Cluster based on one of the nodes ¤  The other nodes will then recover from the Bootstrapped node. 28 Copyright 2012 Severalnines AB
  • 30. Confidential Puppet Module and Chef Recipe ¤  Automate installation of ClusterControl ¤  http://severalnines.com/blog/devops-guide-database- infrastructure-automation-ecommerce-replay-slides ¤  Puppet/Chef only used for initial deploy ¤  ClusterControl handles the management and automation aspects. 30 Copyright 2012 Severalnines AB