SlideShare a Scribd company logo
1 of 14
Download to read offline
10 Do's and Don'ts
    for MySQL Cluster




                Jonathon Coombes
              jon@cybersite.com.au
           http://www.cybersite.com.au

Slide: 1                                 Cybersite Consulting Pty Ltd
1. Don't Simply Transfer DB's
    Don't take an existing database on a single
     server or replicated system and directly
     transfer it onto a cluster.
    Issues arise from MyISAM or InnoDB
     coming across to cluster without
     consideration.
    NDB engine has it's own unique tweaks just
     as do the other engines.
    Even if it works (and it most likely won't!) it
     will under-perform compared to original
     setup.
Slide: 2                               Cybersite Consulting Pty Ltd
2. Do Plan Your Cluster
    Consider hardware, network/transport,
     schema, relations and data types carefully.
    Hardware will affect performance,
     particularly with memory capacity for in-
     memory cluster.
    Networking and transport can affect the
     performance in regards to latency in
     particular.
    Similarly data can affect performance.
    Planning avoids problems later on and helps
     in debugging problems at a logical level.
Slide: 3                            Cybersite Consulting Pty Ltd
3. Do Understand How NDB Works
    Understand nodes, groups, fragments etc.
    Know how the management nodes work
     and communicate with data nodes.
    Know how the api nodes work and how they
     relate to data nodes.
    Know your ndb engine properties and
     tweakings. Memory-based storage is very
     different to standard engine types here.




Slide: 4                          Cybersite Consulting Pty Ltd
4. Do Calculate Memory Use
    Don't just throw a number at it and expect
     it to work (except in the simplest of
     scenarios).
    Use the ndb_size.pl program to try and
     help calculate the size of your existing data.
    Don't forget to account for index sizes as
     well.
    The 5.1 version will allow disk use for data
     only at this stage, but will still require
     calculated usage to optimise performance.

Slide: 5                              Cybersite Consulting Pty Ltd
5. Don't Start Minimal and Expand
    Don't plan to start with a minimal setup and
     expand it as you grow.
    All architectures will require some capacity
     planning for future growth.
    Adding nodes once cluster is setup is not as
     easy as planning properly in the first place.
    Adding new nodes requires configuration
     changes, and rolling restarts of the cluster.




Slide: 6                              Cybersite Consulting Pty Ltd
6. Do Optimise Data Transfer
   Since data nodes will be passing data
    between them, plan for the best possible
    transport method available to your budget.
   Transport types include SCI and GigE.
   GigE allows quick use of existing hardware:
          Enable jumbo frames in Linux AND THE
           SWITCH!
   SCI will require a compilation to enable it
          2D or 3D torus architecture depending on HA
   Utilise the options available:
          engine-condition-pushdown=1

Slide: 7                                    Cybersite Consulting Pty Ltd
7. Don't Create Many Indexes
    Primary index is essential – if not supplied,
     ndb will create it automatically.
    Primary indexes are fast!
    Adding more indexes may not help. Even a
     full table scan in memory may be faster
     than managing extra indexes.
    If you are uncertain, do a test to check the
     performance.




Slide: 8                               Cybersite Consulting Pty Ltd
8. Do Avoid Joins
    Joins are more expensive in any engine.
    Avoiding the joins helps reduce extra
     workload on the ndb server and trying to
     share data between the different nodes.
    De-normalise data if suitable. This goes
     towards a data warehouse type model
     rather than true normalised form.




Slide: 9                            Cybersite Consulting Pty Ltd
9. Don't Assume Only HA Solution
    Many people assume that NDB cluster is the
     only option for obtaining high availability.
    HA can be obtained using other
     architectures or models such as:
           Scale out replication
           ultramonkey,redhat cluster
           Continuent's cluster software (multi-master)




Slide: 10                                    Cybersite Consulting Pty Ltd
10. Do Remember to Backup
    Backups are important for any model used!
    Backups from within the manager
     (ndb_mgm) can be restored quickly on
     rolling restarts with newly initialised data
     store areas.
    Redo and Undo logs should be backed up to
     allow for safe recovery if required.
    Remember, just because it is memory-
     based does not mean data loss on power
     failure!

Slide: 11                            Cybersite Consulting Pty Ltd
11. Do Remember to Communicate
    Give feedback on any problems that you
     come across.
    Make sure you search the bug database
     before reporting problems.
    File bug reports where appropriate.
    Give repeatable examples as well as trace
     logs and configurations to help the
     developers.




Slide: 12                           Cybersite Consulting Pty Ltd
Summary
    Remember that ndb cluster is still evolving
     and is relatively new software.
    MySQL Cluster is not always the best
     solution for your particular data needs.
    Plan your cluster rather than jumping in
     headlong and trying to work through it.
    Optimise data and schema for the engine
     type.
    Choose appropriate hardware, memory and
     transports to suit your needs.

Slide: 13                            Cybersite Consulting Pty Ltd
Questions and Answers?




                Jonathon Coombes
            Cybersite Consulting Pty Ltd
                   1800 1 LINUX
              info@cybersite.com.au
              www.cybersite.com.au




Slide: 14                                  Cybersite Consulting Pty Ltd

More Related Content

What's hot

Fujitsu - 27mai2011
Fujitsu - 27mai2011Fujitsu - 27mai2011
Fujitsu - 27mai2011
Agora Group
 

What's hot (9)

V9000 Data Sheet.PDF
V9000 Data Sheet.PDFV9000 Data Sheet.PDF
V9000 Data Sheet.PDF
 
S de2784 footprint-reduction-edge2015-v2
S de2784 footprint-reduction-edge2015-v2S de2784 footprint-reduction-edge2015-v2
S de2784 footprint-reduction-edge2015-v2
 
Fujitsu - 27mai2011
Fujitsu - 27mai2011Fujitsu - 27mai2011
Fujitsu - 27mai2011
 
Seminar
SeminarSeminar
Seminar
 
TECHNICAL BRIEF▶ NetBackup 7.6 Deduplication Technology
TECHNICAL BRIEF▶ NetBackup 7.6 Deduplication TechnologyTECHNICAL BRIEF▶ NetBackup 7.6 Deduplication Technology
TECHNICAL BRIEF▶ NetBackup 7.6 Deduplication Technology
 
The Cloud as a means of Recovery
The Cloud as a means of RecoveryThe Cloud as a means of Recovery
The Cloud as a means of Recovery
 
4 Ways To Save Big Money in Your Data Center and Private Cloud
4 Ways To Save Big Money in Your Data Center and Private Cloud4 Ways To Save Big Money in Your Data Center and Private Cloud
4 Ways To Save Big Money in Your Data Center and Private Cloud
 
Continuous data protection
Continuous data protectionContinuous data protection
Continuous data protection
 
IBM zEnterprise Strategy for the Private Cloud
IBM zEnterprise Strategy for the Private CloudIBM zEnterprise Strategy for the Private Cloud
IBM zEnterprise Strategy for the Private Cloud
 

Viewers also liked (6)

Database Management Systems (DBMS)
Database Management Systems (DBMS)Database Management Systems (DBMS)
Database Management Systems (DBMS)
 
Introduction to database
Introduction to databaseIntroduction to database
Introduction to database
 
Basic DBMS ppt
Basic DBMS pptBasic DBMS ppt
Basic DBMS ppt
 
Dbms slides
Dbms slidesDbms slides
Dbms slides
 
Database management system presentation
Database management system presentationDatabase management system presentation
Database management system presentation
 
Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01
 

Similar to 10 Do's and Don'ts for MySQL Cluster

“Five Things You Might Overlook on Your Next Vision-enabled Product Design,” ...
“Five Things You Might Overlook on Your Next Vision-enabled Product Design,” ...“Five Things You Might Overlook on Your Next Vision-enabled Product Design,” ...
“Five Things You Might Overlook on Your Next Vision-enabled Product Design,” ...
Edge AI and Vision Alliance
 

Similar to 10 Do's and Don'ts for MySQL Cluster (20)

Availability in a cloud native world v1.6 (Feb 2019)
Availability in a cloud native world v1.6 (Feb 2019)Availability in a cloud native world v1.6 (Feb 2019)
Availability in a cloud native world v1.6 (Feb 2019)
 
Management and Automation of MongoDB Clusters - Slides
Management and Automation of MongoDB Clusters - SlidesManagement and Automation of MongoDB Clusters - Slides
Management and Automation of MongoDB Clusters - Slides
 
Data Engineer's Lunch #85: Designing a Modern Data Stack
Data Engineer's Lunch #85: Designing a Modern Data StackData Engineer's Lunch #85: Designing a Modern Data Stack
Data Engineer's Lunch #85: Designing a Modern Data Stack
 
Big Data using NoSQL Technologies
Big Data using NoSQL TechnologiesBig Data using NoSQL Technologies
Big Data using NoSQL Technologies
 
Scaling Up vs. Scaling-out
Scaling Up vs. Scaling-outScaling Up vs. Scaling-out
Scaling Up vs. Scaling-out
 
Introducing Mache
Introducing MacheIntroducing Mache
Introducing Mache
 
Cluster Computers
Cluster ComputersCluster Computers
Cluster Computers
 
Os Solomon
Os SolomonOs Solomon
Os Solomon
 
Super Sizing Youtube with Python
Super Sizing Youtube with PythonSuper Sizing Youtube with Python
Super Sizing Youtube with Python
 
What's Your Data Worth?
What's Your Data Worth?What's Your Data Worth?
What's Your Data Worth?
 
Better Architecture for Data: Adaptable, Scalable, and Smart
Better Architecture for Data: Adaptable, Scalable, and SmartBetter Architecture for Data: Adaptable, Scalable, and Smart
Better Architecture for Data: Adaptable, Scalable, and Smart
 
Operationalizing the Value of MongoDB: The MetLife Experience
Operationalizing the Value of MongoDB: The MetLife ExperienceOperationalizing the Value of MongoDB: The MetLife Experience
Operationalizing the Value of MongoDB: The MetLife Experience
 
MySQL 8 Tips and Tricks from Symfony USA 2018, San Francisco
MySQL 8 Tips and Tricks from Symfony USA 2018, San FranciscoMySQL 8 Tips and Tricks from Symfony USA 2018, San Francisco
MySQL 8 Tips and Tricks from Symfony USA 2018, San Francisco
 
10 Best Practices for Reducing Spend in Azure
10 Best Practices for Reducing Spend in Azure10 Best Practices for Reducing Spend in Azure
10 Best Practices for Reducing Spend in Azure
 
Relational Databases - Benefits and Challenges
Relational Databases - Benefits and ChallengesRelational Databases - Benefits and Challenges
Relational Databases - Benefits and Challenges
 
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
 
“Five Things You Might Overlook on Your Next Vision-enabled Product Design,” ...
“Five Things You Might Overlook on Your Next Vision-enabled Product Design,” ...“Five Things You Might Overlook on Your Next Vision-enabled Product Design,” ...
“Five Things You Might Overlook on Your Next Vision-enabled Product Design,” ...
 
MySQL 8 Server Optimization Swanseacon 2018
MySQL 8 Server Optimization Swanseacon 2018MySQL 8 Server Optimization Swanseacon 2018
MySQL 8 Server Optimization Swanseacon 2018
 
Nt1310 Unit 3 Pc
Nt1310 Unit 3 PcNt1310 Unit 3 Pc
Nt1310 Unit 3 Pc
 
Practical Artificial Intelligence: Deep Learning Beyond Cats and Cars
Practical Artificial Intelligence: Deep Learning Beyond Cats and CarsPractical Artificial Intelligence: Deep Learning Beyond Cats and Cars
Practical Artificial Intelligence: Deep Learning Beyond Cats and Cars
 

More from elliando dias

Why you should be excited about ClojureScript
Why you should be excited about ClojureScriptWhy you should be excited about ClojureScript
Why you should be excited about ClojureScript
elliando dias
 
Nomenclatura e peças de container
Nomenclatura  e peças de containerNomenclatura  e peças de container
Nomenclatura e peças de container
elliando dias
 
Polyglot and Poly-paradigm Programming for Better Agility
Polyglot and Poly-paradigm Programming for Better AgilityPolyglot and Poly-paradigm Programming for Better Agility
Polyglot and Poly-paradigm Programming for Better Agility
elliando dias
 
Javascript Libraries
Javascript LibrariesJavascript Libraries
Javascript Libraries
elliando dias
 
How to Make an Eight Bit Computer and Save the World!
How to Make an Eight Bit Computer and Save the World!How to Make an Eight Bit Computer and Save the World!
How to Make an Eight Bit Computer and Save the World!
elliando dias
 
A Practical Guide to Connecting Hardware to the Web
A Practical Guide to Connecting Hardware to the WebA Practical Guide to Connecting Hardware to the Web
A Practical Guide to Connecting Hardware to the Web
elliando dias
 
Introdução ao Arduino
Introdução ao ArduinoIntrodução ao Arduino
Introdução ao Arduino
elliando dias
 
Incanter Data Sorcery
Incanter Data SorceryIncanter Data Sorcery
Incanter Data Sorcery
elliando dias
 
Fab.in.a.box - Fab Academy: Machine Design
Fab.in.a.box - Fab Academy: Machine DesignFab.in.a.box - Fab Academy: Machine Design
Fab.in.a.box - Fab Academy: Machine Design
elliando dias
 
Hadoop - Simple. Scalable.
Hadoop - Simple. Scalable.Hadoop - Simple. Scalable.
Hadoop - Simple. Scalable.
elliando dias
 
Hadoop and Hive Development at Facebook
Hadoop and Hive Development at FacebookHadoop and Hive Development at Facebook
Hadoop and Hive Development at Facebook
elliando dias
 
Multi-core Parallelization in Clojure - a Case Study
Multi-core Parallelization in Clojure - a Case StudyMulti-core Parallelization in Clojure - a Case Study
Multi-core Parallelization in Clojure - a Case Study
elliando dias
 

More from elliando dias (20)

Clojurescript slides
Clojurescript slidesClojurescript slides
Clojurescript slides
 
Why you should be excited about ClojureScript
Why you should be excited about ClojureScriptWhy you should be excited about ClojureScript
Why you should be excited about ClojureScript
 
Functional Programming with Immutable Data Structures
Functional Programming with Immutable Data StructuresFunctional Programming with Immutable Data Structures
Functional Programming with Immutable Data Structures
 
Nomenclatura e peças de container
Nomenclatura  e peças de containerNomenclatura  e peças de container
Nomenclatura e peças de container
 
Geometria Projetiva
Geometria ProjetivaGeometria Projetiva
Geometria Projetiva
 
Polyglot and Poly-paradigm Programming for Better Agility
Polyglot and Poly-paradigm Programming for Better AgilityPolyglot and Poly-paradigm Programming for Better Agility
Polyglot and Poly-paradigm Programming for Better Agility
 
Javascript Libraries
Javascript LibrariesJavascript Libraries
Javascript Libraries
 
How to Make an Eight Bit Computer and Save the World!
How to Make an Eight Bit Computer and Save the World!How to Make an Eight Bit Computer and Save the World!
How to Make an Eight Bit Computer and Save the World!
 
Ragel talk
Ragel talkRagel talk
Ragel talk
 
A Practical Guide to Connecting Hardware to the Web
A Practical Guide to Connecting Hardware to the WebA Practical Guide to Connecting Hardware to the Web
A Practical Guide to Connecting Hardware to the Web
 
Introdução ao Arduino
Introdução ao ArduinoIntrodução ao Arduino
Introdução ao Arduino
 
Minicurso arduino
Minicurso arduinoMinicurso arduino
Minicurso arduino
 
Incanter Data Sorcery
Incanter Data SorceryIncanter Data Sorcery
Incanter Data Sorcery
 
Rango
RangoRango
Rango
 
Fab.in.a.box - Fab Academy: Machine Design
Fab.in.a.box - Fab Academy: Machine DesignFab.in.a.box - Fab Academy: Machine Design
Fab.in.a.box - Fab Academy: Machine Design
 
The Digital Revolution: Machines that makes
The Digital Revolution: Machines that makesThe Digital Revolution: Machines that makes
The Digital Revolution: Machines that makes
 
Hadoop + Clojure
Hadoop + ClojureHadoop + Clojure
Hadoop + Clojure
 
Hadoop - Simple. Scalable.
Hadoop - Simple. Scalable.Hadoop - Simple. Scalable.
Hadoop - Simple. Scalable.
 
Hadoop and Hive Development at Facebook
Hadoop and Hive Development at FacebookHadoop and Hive Development at Facebook
Hadoop and Hive Development at Facebook
 
Multi-core Parallelization in Clojure - a Case Study
Multi-core Parallelization in Clojure - a Case StudyMulti-core Parallelization in Clojure - a Case Study
Multi-core Parallelization in Clojure - a Case Study
 

Recently uploaded

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 

Recently uploaded (20)

Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
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...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
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...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 

10 Do's and Don'ts for MySQL Cluster

  • 1. 10 Do's and Don'ts for MySQL Cluster Jonathon Coombes jon@cybersite.com.au http://www.cybersite.com.au Slide: 1 Cybersite Consulting Pty Ltd
  • 2. 1. Don't Simply Transfer DB's  Don't take an existing database on a single server or replicated system and directly transfer it onto a cluster.  Issues arise from MyISAM or InnoDB coming across to cluster without consideration.  NDB engine has it's own unique tweaks just as do the other engines.  Even if it works (and it most likely won't!) it will under-perform compared to original setup. Slide: 2 Cybersite Consulting Pty Ltd
  • 3. 2. Do Plan Your Cluster  Consider hardware, network/transport, schema, relations and data types carefully.  Hardware will affect performance, particularly with memory capacity for in- memory cluster.  Networking and transport can affect the performance in regards to latency in particular.  Similarly data can affect performance.  Planning avoids problems later on and helps in debugging problems at a logical level. Slide: 3 Cybersite Consulting Pty Ltd
  • 4. 3. Do Understand How NDB Works  Understand nodes, groups, fragments etc.  Know how the management nodes work and communicate with data nodes.  Know how the api nodes work and how they relate to data nodes.  Know your ndb engine properties and tweakings. Memory-based storage is very different to standard engine types here. Slide: 4 Cybersite Consulting Pty Ltd
  • 5. 4. Do Calculate Memory Use  Don't just throw a number at it and expect it to work (except in the simplest of scenarios).  Use the ndb_size.pl program to try and help calculate the size of your existing data.  Don't forget to account for index sizes as well.  The 5.1 version will allow disk use for data only at this stage, but will still require calculated usage to optimise performance. Slide: 5 Cybersite Consulting Pty Ltd
  • 6. 5. Don't Start Minimal and Expand  Don't plan to start with a minimal setup and expand it as you grow.  All architectures will require some capacity planning for future growth.  Adding nodes once cluster is setup is not as easy as planning properly in the first place.  Adding new nodes requires configuration changes, and rolling restarts of the cluster. Slide: 6 Cybersite Consulting Pty Ltd
  • 7. 6. Do Optimise Data Transfer  Since data nodes will be passing data between them, plan for the best possible transport method available to your budget.  Transport types include SCI and GigE.  GigE allows quick use of existing hardware:  Enable jumbo frames in Linux AND THE SWITCH!  SCI will require a compilation to enable it  2D or 3D torus architecture depending on HA  Utilise the options available:  engine-condition-pushdown=1 Slide: 7 Cybersite Consulting Pty Ltd
  • 8. 7. Don't Create Many Indexes  Primary index is essential – if not supplied, ndb will create it automatically.  Primary indexes are fast!  Adding more indexes may not help. Even a full table scan in memory may be faster than managing extra indexes.  If you are uncertain, do a test to check the performance. Slide: 8 Cybersite Consulting Pty Ltd
  • 9. 8. Do Avoid Joins  Joins are more expensive in any engine.  Avoiding the joins helps reduce extra workload on the ndb server and trying to share data between the different nodes.  De-normalise data if suitable. This goes towards a data warehouse type model rather than true normalised form. Slide: 9 Cybersite Consulting Pty Ltd
  • 10. 9. Don't Assume Only HA Solution  Many people assume that NDB cluster is the only option for obtaining high availability.  HA can be obtained using other architectures or models such as:  Scale out replication  ultramonkey,redhat cluster  Continuent's cluster software (multi-master) Slide: 10 Cybersite Consulting Pty Ltd
  • 11. 10. Do Remember to Backup  Backups are important for any model used!  Backups from within the manager (ndb_mgm) can be restored quickly on rolling restarts with newly initialised data store areas.  Redo and Undo logs should be backed up to allow for safe recovery if required.  Remember, just because it is memory- based does not mean data loss on power failure! Slide: 11 Cybersite Consulting Pty Ltd
  • 12. 11. Do Remember to Communicate  Give feedback on any problems that you come across.  Make sure you search the bug database before reporting problems.  File bug reports where appropriate.  Give repeatable examples as well as trace logs and configurations to help the developers. Slide: 12 Cybersite Consulting Pty Ltd
  • 13. Summary  Remember that ndb cluster is still evolving and is relatively new software.  MySQL Cluster is not always the best solution for your particular data needs.  Plan your cluster rather than jumping in headlong and trying to work through it.  Optimise data and schema for the engine type.  Choose appropriate hardware, memory and transports to suit your needs. Slide: 13 Cybersite Consulting Pty Ltd
  • 14. Questions and Answers? Jonathon Coombes Cybersite Consulting Pty Ltd 1800 1 LINUX info@cybersite.com.au www.cybersite.com.au Slide: 14 Cybersite Consulting Pty Ltd