SlideShare uma empresa Scribd logo
1 de 32
Baixar para ler offline
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
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
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
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
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]
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
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
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

Mais conteúdo relacionado

Mais procurados

ProxySQL Tutorial - PLAM 2016
ProxySQL Tutorial - PLAM 2016ProxySQL Tutorial - PLAM 2016
ProxySQL Tutorial - PLAM 2016
Derek Downey
 
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
 

Mais procurados (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
 

Semelhante a 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 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
 

Semelhante a 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
 

Mais de 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
 
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
 
Webinar slides: Migrating to Galera Cluster for MySQL and MariaDB
Webinar slides: Migrating to Galera Cluster for MySQL and MariaDBWebinar slides: Migrating to Galera Cluster for MySQL and MariaDB
Webinar slides: Migrating to Galera Cluster for MySQL and MariaDB
Severalnines
 
Webinar slides: How to Measure Database Availability?
Webinar slides: How to Measure Database Availability?Webinar slides: How to Measure Database Availability?
Webinar slides: How to Measure Database Availability?
Severalnines
 
Webinar slides: Designing Open Source Databases for High Availability
Webinar slides: Designing Open Source Databases for High AvailabilityWebinar slides: Designing Open Source Databases for High Availability
Webinar slides: Designing Open Source Databases for High Availability
Severalnines
 

Mais de Severalnines (20)

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
 
Webinar slides: Our Guide to MySQL & MariaDB Performance Tuning
Webinar slides: Our Guide to MySQL & MariaDB Performance TuningWebinar slides: Our Guide to MySQL & MariaDB Performance Tuning
Webinar slides: Our Guide to MySQL & MariaDB Performance Tuning
 
Webinar slides: Migrating to Galera Cluster for MySQL and MariaDB
Webinar slides: Migrating to Galera Cluster for MySQL and MariaDBWebinar slides: Migrating to Galera Cluster for MySQL and MariaDB
Webinar slides: Migrating to Galera Cluster for MySQL and MariaDB
 
Webinar slides: How to Measure Database Availability?
Webinar slides: How to Measure Database Availability?Webinar slides: How to Measure Database Availability?
Webinar slides: How to Measure Database Availability?
 
Webinar slides: Designing Open Source Databases for High Availability
Webinar slides: Designing Open Source Databases for High AvailabilityWebinar slides: Designing Open Source Databases for High Availability
Webinar slides: Designing Open Source Databases for High Availability
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Último (20)

Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 

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