Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |Copyright © 2015, Oracle and/or its affiliates. All ...
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Safe Harbor Statement
The following is intended to ...
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Program Agenda
Introduction
Durability: Logging and...
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Who’s Using MySQL Cluster?
Copyright (c) 2016 Oracl...
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 5
MySQL Cluster
mysqld
ndb SE
Data
node
Data
node
D...
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Partitioning
6Copyright (c) 2016 Oracle and/or its ...
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Local Checkpoint
LCP start
TIME
T1 commits T2 commi...
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Global Checkpoint (GCP)
8
2 X
3 X
4 x
1 X
REDO LOGS...
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Durability Mechanisms
TIME
T5 commitsT4 commits T6 ...
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Recovery during Node Restart
Copyright (c) 2016 Ora...
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
LCP Restore and Log Replay
LCP start
TIME
T1 commit...
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Backup and Restore Tools
• ndb_mgm : client to star...
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Demo
Copyright (c) 2016 Oracle and/or its affiliate...
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Upcoming SlideShare
Loading in …5
×

Backup and Recovery in MySQL Cluster

265 views

Published on

Durability and recovery mechanisms, Backup and restore tools

Published in: Software
  • Be the first to comment

  • Be the first to like this

Backup and Recovery in MySQL Cluster

  1. 1. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Backup and Restore in MySQL Cluster Priyanka Sangam Senior Member Technical Staf MySQL Cluster July 29, 2016 Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved. 1
  2. 2. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Safe Harbor Statement The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle. 2Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved.
  3. 3. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Program Agenda Introduction Durability: Logging and Checkpointing Recovery during Node Restart Backup and Restore Demo of Backup and Restore 1 2 3 4 5 3
  4. 4. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Who’s Using MySQL Cluster? Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved. 4
  5. 5. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 5 MySQL Cluster mysqld ndb SE Data node Data node Data node Data Nodemysql client mysqld ndb SE CLUSTER mysql client mysql client mysql client Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved.
  6. 6. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Partitioning 6Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved.
  7. 7. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Local Checkpoint LCP start TIME T1 commits T2 commits T3 commits T4 commits T5 commits T6 commits LCP end undo log redo log LCP = snapshot of data on disk Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved. 7
  8. 8. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Global Checkpoint (GCP) 8 2 X 3 X 4 x 1 X REDO LOGS N O D E S Epoch  GCP_COMMIT = find consistent point in parallel transaction streams  GCP_SAVE = redo logs flushed to disk  GCP executed every few seconds  Each redo log element has GCP ID  GCP ID and frag info saved to sysfile Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved.
  9. 9. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Durability Mechanisms TIME T5 commitsT4 commits T6 commits GCP 4 undo log redo log T4 and T5 persistent, T6 not persistent Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved. 9
  10. 10. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Recovery during Node Restart Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved. 10 METADATA COPY LCP RESTORE + LOG REPLAY LCP ONLINE FRAGMENT COPY
  11. 11. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | LCP Restore and Log Replay LCP start TIME T1 commits T2 commits T3 commits T4 commits T5 commits T6 commits LCP end undo log redo log LCP = snapshot of data on disk GCP 4 replay undo log till LCP start point replay redo log till GCP Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved. 11
  12. 12. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Backup and Restore Tools • ndb_mgm : client to start backup • ndb_restore : tool to restore data – Metadata :  ndb_restore -m : once on any node  ndb_restore –disable-indexes : before restoring all data  ndb_restore –rebuild-indexes : after restoring all data – Data  ndb_restore -r : once for each node Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved. 12
  13. 13. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Demo Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved. 13
  14. 14. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

×