webinar slides: clustercontrol 1.4: the mysql replication & mongodb edition - live demo

27
Confidential ClusterControl 1.4.0 Feb 2016 Johan Andersson CTO, Severalnines johan@severalnines.com

Upload: severalnines

Post on 22-Jan-2018

179 views

Category:

Internet


0 download

TRANSCRIPT

Page 1: Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition - live demo

Confidential

ClusterControl 1.4.0

Feb 2016

Johan Andersson

CTO, Severalnines

[email protected]

Page 2: Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition - live demo

Confidential

Customers

2

Copyright Severalnines AB

Page 3: Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition - live demo

Confidential

What Problems do we Address?

3

Copyright 2012 Severalnines AB

Manage Scale

Monitor Deploy

Page 4: Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition - live demo

Confidential

Management - Beyond Monitoring

4

Copyright Severalnines AB

Page 5: Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition - live demo

Confidential

ClusterControl DSL - Automation Programs

5

Copyright Severalnines AB

Page 6: Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition - live demo

Confidential

What’s new in 1.4.0?

¤  MySQL Replication

¤  ProxySQL Support

¤  Group Replication (BETA)

¤  MongoDB

¤  ..and a number of other things

6

Copyright 2012 Severalnines AB

Page 7: Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition - live demo

Confidential

MySQL Replication

¤  Create Master – Slave, Multi-Master setups

¤  Automatic and Manual Failover

¤  Rebuild failed replication slaves

¤  Reconfiguration of the topology.

Copyright 2012 Severalnines AB

7

M1

S1 S2

Page 8: Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition - live demo

Confidential

MySQL Replication - Deploy

Copyright 2012 Severalnines AB

8

Data Center 1 Data Center 2

M1 M2

S1 S2

•  M1 is the active master and WRITABLE

•  S1 and S2 are read only slaves

•  M2 is a stand by in case DC1 fails hard. Read only.

Page 9: Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition - live demo

Confidential

ClusterControl - Tips

¤  Manual operations (outside ClusterControl): Disable Node/Cluster Recovery, Enter Maintenance Mode. ¤  Now you can do manual changes

¤  ClusterControl manages the Cluster (e.g read-only settings) ¤  If you want to manage the read-only settings

then set ‘auto_manage_readonly=0’ in /etc/cmon.d/cmon_x.cnf and restart cmon.

9

Copyright 2012 Severalnines AB

Page 10: Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition - live demo

Confidential

MySQL Replication - Failover

¤  Failover is automatic or manual ¤  Control with “Enable Cluster Recovery”

¤  On = Automatic ¤  Off = Manual

¤  One attempt to failover is made

¤  Checks for errant transactions ¤  Aborts failover if detected

¤  Elects a new master among the slave(s) ¤  Elect the slave with the least lag,

least problems, and most data. ¤  If no slave found, then failover will not happen.

Copyright 2012 Severalnines AB

10

M1

S1 S2

Page 11: Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition - live demo

Confidential

MySQL Replication – Failover – More Control!

¤  Fine tune the failover behavior: ¤  replication_stop_on_error = 1 (default)

Ignore errors like errant transactions and force the failover ¤  replication_failover_blacklist=<comma separated list of nodes>

Comma separated list of hostname:port pairs. Blacklisted servers will not be considered as a candidate during failover. Ignored if replication_failover_whitelist is set.

¤  replication_failover_whitelist=<comma separated list of nodes> Comma separated list of hostname:port pairs. Only whitelisted servers will be considered as a candidate during failover. Takes precedence over replication_failover_blacklist.

¤  replication_failover_wait_to_apply_timeout=-1 (Default), candidate will wait forever to try and apply outstanding transactions from another slave and relay log in case of failover. 0 means failover immediately, else specify a time limit in seconds.

¤  These options are set in /etc/cmon.d/cmon_x.cnf. Restart cmon.

Copyright 2012 Severalnines AB

11

Page 12: Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition - live demo

Confidential

MySQL Replication – Rebuild Slave

Copyright 2012 Severalnines AB

12

Data Center 1

M1

S1 S2

•  If a slave gets corrupted then it can be rebuilt by a user command

•  An xtrabackup is taken from the selected

server and streamed to the slave

•  The backup is applied on the slave

•  Replication is started (CHANGE MASTER, START SLAVE)

Page 13: Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition - live demo

Confidential

MySQL Replication – Topology Change

Copyright 2012 Severalnines AB

13

Data Center 1

M1

S1 S2

Data Center 1

M1

S1

S2

Page 14: Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition - live demo

Confidential

MySQL Replication – Topology Change (Switchover)

Copyright 2012 Severalnines AB

14

Data Center 1

M1

S1 S2

Data Center 1

S2

S1 M1

Page 15: Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition - live demo

Confidential

ProxySQL Support

¤  ProxySQL is a highly customizable, high performing load balancer for MySQL supporting MySQL Replication, Galera, Group Replication

¤  Integrates with ClusterControl-triggered failover of MySQL Replication

¤  Deployment

¤  Monitoring (phase 1)

Copyright 2012 Severalnines AB

15

Page 16: Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition - live demo

Confidential

ProxySQL – Deploy with Ease!

Copyright 2012 Severalnines AB

16

Page 17: Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition - live demo

Confidential

Group Replication (BETA)

¤  Create a Group Replication Cluster ¤  Similar to Galera with a

slight difference: ¤  One writable master, the

rest are super_read_only=true and read_only = true

¤  Add replication slaves

¤  Experimental support for ¤  Rebuilding failed group

replication servers ¤  Automatic failure

handling

Copyright 2012 Severalnines AB

17

Data Center 1

M1 S1 S2

Virtual synchronous (like Galera)

•  M1 writable (read_only=false super_read_only=false)

•  S1 read_only=true super_read_only=true

•  S2 read_only=true super_read_only=true

Page 18: Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition - live demo

Confidential

MongoDB

¤  Deploy in an automated and secure way ¤  Single node / Replica Set /Shard

¤  Scale ¤  Add nodes to the Replica Set ¤  Convert a Replica Set to a Sharded

Cluster ¤  Add / Remove Shards ¤  Add/ Remove Mongos/Routers to a

Sharded Cluster

¤  Additional features includes: ¤  Backup/Restore ¤  Step down or Freeze a node ¤  New Advisors

Copyright 2012 Severalnines AB

18

P

P – PRIMARY, Sx = SECONDARY

P

S1 S2

Page 19: Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition - live demo

Confidential

MongoDB - Convert a Replica Set to a Sharded Cluster

Copyright 2012 Severalnines AB

19

P

S1 S2

P – PRIMARY, Sx = SECONDARY

P

S1 S2 Config Servers

Mongos/Routers …

Page 20: Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition - live demo

Confidential

MongoDB – Scale With Shards

Copyright 2012 Severalnines AB

20

P – PRIMARY, Sx = SECONDARY

P

S1 S2 Config Servers

Mongos/Routers …

P

S1 S2

+

Page 21: Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition - live demo

Confidential

MongoDB - Advisors

Copyright 2012 Severalnines AB

21

Page 22: Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition - live demo

Confidential

MongoDb - Advisors

¤  Security ¤  Is Authentication enabled? ¤  Too Permissive passwords?

¤  Replication ¤  Is the Secondaries lagging?

¤  Connections ¤  Concurrency tickets ¤  # connections

¤  Sharding ¤  Are all collections sharded, and which ones are not?

Copyright 2012 Severalnines AB

22

Page 23: Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition - live demo

Confidential

Other

¤  Backup ¤  New Improved UI

¤  New Operational Report: ¤  Packages upgrade report ¤  Get information if there are new database packages and other

security packages available (MySQL based clusters)

¤  Activity Viewer

¤  Send Clear notification when Cluster Fail/Node Fails have been resolved.

¤  Maintenance Mode – Schedule maintenance. ¤  Silences alarm ¤  Best Practice: Disable Node/Cluster Recovery if you plan to make

manual changes.

23

Copyright 2012 Severalnines AB

Page 24: Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition - live demo

Confidential

24

Copyright 2012 Severalnines AB

Page 25: Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition - live demo

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 from the Controller to the DB nodes ¤  https://severalnines.com/download-clustercontrol-database-

management-system

25

Copyright Severalnines AB

Page 26: Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition - live demo

Confidential

QA

26

Copyright 2012 Severalnines AB

Page 27: Webinar slides: ClusterControl 1.4: The MySQL Replication & MongoDB Edition - live demo

Confidential

Resources

¤  ClusterControl product pages: https://severalnines.com/product/clustercontrol

¤  Download ClusterControl: https://severalnines.com/download-clustercontrol-database-management-system

¤  ClusterControl Documentation: https://severalnines.com/docs/

¤  Severalnines YouTube Channel: https://www.youtube.com/channel/UCIwrdGe5hOTmI9oG_ye8hOA

¤  Severalnines Blog: https://severalnines.com/blog

Copyright 2012 Severalnines AB

27