SlideShare une entreprise Scribd logo
1  sur  22
Télécharger pour lire hors ligne
Tango Meeting
Tango database & MySQL cluster                                                  26­27/05/2005




                                 Tango Database
                                       &
                                 MySQL Cluster
                           Claudio Scafuri claudio.scafuri@elettra.trieste.it




Claudio Scafuri, Elettra
Tango Meeting
Tango database & MySQL cluster             26­27/05/2005




                            Topics


      ●   news & experiences
      ●   considerations
      ●   presentation of “deliverables”




Claudio Scafuri, Elettra
Tango Meeting
Tango database & MySQL cluster                                    26­27/05/2005




                              Where we left ....
                           HostA                         HostB


                              Databaseds       Databaseds



                                   mysqld       mysqld
                                    API           API




                                          DB   DB
                                                                 MGM


Claudio Scafuri, Elettra
Tango Meeting
Tango database & MySQL cluster                                     26­27/05/2005




                                         News
           –   MySQL max 4.1.12 . Clustering is “stable”
           –   improved documentation
                 ●   but refers to MySQL 5 ! They are pushing in that direction
                 ●   still some gray area ...
           –   forums & mailing list by MySQL with precious 
               informations




Claudio Scafuri, Elettra
Tango Meeting
Tango database & MySQL cluster                     26­27/05/2005




                           “Crashes” explained
 Conservative design: 
      save DB from corruption and inconsitencies


 Not crashes but shut­down of storage nodes!




Claudio Scafuri, Elettra
Tango Meeting
Tango database & MySQL cluster                            26­27/05/2005




                           “Crashes” explained
      ●   lack of memory
      ●   disk space
      ●   network connectivity
                  Tests were carried on “low end” PCs !




Claudio Scafuri, Elettra
Tango Meeting
Tango database & MySQL cluster                                 26­27/05/2005




                             “Crashes” explained
      ●   lack of memory:
              98 devices
            895 properties
            176 attribute properties


                           –  ndbd  : 427 MB Virtual / 27 MB Resident




Claudio Scafuri, Elettra
Tango Meeting
Tango database & MySQL cluster                       26­27/05/2005




                             “Crashes” explained
      ●   disk space:
              98 devices
            895 properties
            176 attribute properties
                           – 314 MB on Master node
                           – 236 MB on Slave node
            –   plus logs... 


Claudio Scafuri, Elettra
Tango Meeting
Tango database & MySQL cluster                            26­27/05/2005




                             “Crashes” explained
      ●   network connectivity:
             must avoid “split brain” syndrome: 2 different commits 
              on the same rows/tables.
            ­ majority of storage node must “see” each other
                  or
            –   storage nodes can  see an “arbitrator”:
                           – MGM node
                           – myqld node

Claudio Scafuri, Elettra
Tango Meeting
Tango database & MySQL cluster                     26­27/05/2005




                           Cluster Configuration
      ­ MySQL strongly reccomends to have a single 
        management node in the cluster. It works as 
        arbitrator.
      In principle it is possible to have multiple 
        mangement nodes by assigning an arbitration 
        rank. But :“the configuration has not been 
        completely tested.”


Claudio Scafuri, Elettra
Tango Meeting
Tango database & MySQL cluster                           26­27/05/2005




                           Cluster Configuration
        HostA                                                 HostB
                                     HostC
              Databaseds                            Databaseds
                                      MGM


                 mysqld                              mysqld
                   API                                 API




                           DB                       DB
                                 Switched Network


Claudio Scafuri, Elettra
Tango Meeting
Tango database & MySQL cluster                              26­27/05/2005




                                Failure scenarios
        HostA                                                    HostB
                                        HostC
              Databaseds                               Databaseds
                                         MGM


                 mysqld                                 mysqld
                   API                                    API




                           DB                          DB
                                    Switched Network


Claudio Scafuri, Elettra
Tango Meeting
Tango database & MySQL cluster                              26­27/05/2005




                                Failure scenarios
        HostA                                                    HostB
                                        HostC
              Databaseds                               Databaseds
                                         MGM


                 mysqld                                 mysqld
                   API                                    API




                           DB                          DB
                                    Switched Network


Claudio Scafuri, Elettra
Tango Meeting
Tango database & MySQL cluster                              26­27/05/2005




                                Failure scenarios
        HostA                                                    HostB
                                        HostC
              Databaseds                               Databaseds
                                         MGM


                 mysqld                                 mysqld
                   API                                    API




                           DB                          DB
                                    Switched Network


Claudio Scafuri, Elettra
Tango Meeting
Tango database & MySQL cluster                              26­27/05/2005




                                Failure scenarios
        HostA                                                    HostB
                                        HostC
              Databaseds                               Databaseds
                                         MGM


                 mysqld                                 mysqld
                   API                                    API




                           DB                          DB
                                    Switched Network


Claudio Scafuri, Elettra
Tango Meeting
Tango database & MySQL cluster                                  26­27/05/2005




                           Failure scenarios
        HostA                                           HostB
                                HostC
           Databaseds           MGM           Databaseds

              mysqld                           mysqld
                API                              API


                     DB                       DB
                           Switched Network


          According to MySQL this should trigger a shutdown of the
          cluster. But it may keep working...



Claudio Scafuri, Elettra
Tango Meeting
Tango database & MySQL cluster                                    26­27/05/2005




                           Failure scenarios
      ­ “failures” never led to data loss or corruption
      ­ lack of explicit notification
                  You have to check the logs and the status of the processes




Claudio Scafuri, Elettra
Tango Meeting
Tango database & MySQL cluster                            26­27/05/2005




                           Considerations
      ●   excelent tool, does its job
            –   but keep in mind it design and goals
      ●   redundancy does not come for free
            –   3 or more servers , lots of memory, disk space
            –   non­trivial management (compared to base MySQL)
            –   network failure to be dealt with by othe means



Claudio Scafuri, Elettra
Tango Meeting
Tango database & MySQL cluster                          26­27/05/2005




                           Deliverables
      ­ configuration files
            my.cnf : MySQL general configuration file with 
             cluster support enabled
            config.ini: cluster configuartion file.
            Describes the minimal cluster showed in the slides
      ­ database creation sql script
            create-db.sql: creates the TANGO schema with 
             cluster enabled tables. Preloads 2 instances of 
             Database: sys/database/2 , sys/database/4
Claudio Scafuri, Elettra
Tango Meeting
Tango database & MySQL cluster                                     26­27/05/2005




                                    Deliverables
      extra bonus!
            2 HOW­TOs retrieved from the web :
                   cluster-howto-1.pdf
                           by A. Davies. Official MySQL document


                   cluster-howto-2.pdf
                           courtesy of LOD Communications, Inc.
                           http://www.lod.com




Claudio Scafuri, Elettra
Tango Meeting
Tango database & MySQL cluster                          26­27/05/2005




                           To be done:
      ●   testing of deliverables by other institutes
      ●   choose how (if) to distribute the deliverables
      ●   decide whether to add support for multiple tango 
          host in Java:
            TANGO_HOST=myhost:10000,otherhost:1000
            now it is understood only by C++ thanks to omniORB.




Claudio Scafuri, Elettra
Tango Meeting
Tango database & MySQL cluster                             26­27/05/2005




                           To be done:
      ●   tuning of db parameters (lots of them!)
      ●   testing of backup and recovery
      ●   trying to break and then recover the database.




Claudio Scafuri, Elettra

Contenu connexe

Tendances

NewSQL: The Best of Both "OldSQL" and "NoSQL"
NewSQL: The Best of Both "OldSQL" and "NoSQL"NewSQL: The Best of Both "OldSQL" and "NoSQL"
NewSQL: The Best of Both "OldSQL" and "NoSQL"Sushant Choudhary
 
NewSQL vs NoSQL for New OLTP
NewSQL vs NoSQL for New OLTPNewSQL vs NoSQL for New OLTP
NewSQL vs NoSQL for New OLTPDATAVERSITY
 
keyvi the key value index @ Cliqz
keyvi the key value index @ Cliqzkeyvi the key value index @ Cliqz
keyvi the key value index @ CliqzHendrik Muhs
 
Mirantis OpenStack-DC-Meetup 17 Sept 2014
Mirantis OpenStack-DC-Meetup 17 Sept 2014Mirantis OpenStack-DC-Meetup 17 Sept 2014
Mirantis OpenStack-DC-Meetup 17 Sept 2014Mirantis
 
Architecture Openstack for the Enterprise
Architecture Openstack for the EnterpriseArchitecture Openstack for the Enterprise
Architecture Openstack for the EnterpriseKeith Tobin
 
Mirantis OpenStack 5.0 Overview
Mirantis OpenStack 5.0 OverviewMirantis OpenStack 5.0 Overview
Mirantis OpenStack 5.0 OverviewMirantis
 
C* Summit 2013: No Whistling Required: Cabs, Cassandra, and Hailo by Dave Gar...
C* Summit 2013: No Whistling Required: Cabs, Cassandra, and Hailo by Dave Gar...C* Summit 2013: No Whistling Required: Cabs, Cassandra, and Hailo by Dave Gar...
C* Summit 2013: No Whistling Required: Cabs, Cassandra, and Hailo by Dave Gar...DataStax Academy
 
Vancouver open stack meetup presentation
Vancouver open stack meetup presentationVancouver open stack meetup presentation
Vancouver open stack meetup presentationSean Winn
 
My sql fabric webinar tw2
My sql fabric webinar tw2My sql fabric webinar tw2
My sql fabric webinar tw2Ivan Tu
 
Openstack training material
Openstack training materialOpenstack training material
Openstack training materialchenvi123
 
OpenStack Telco Architecture: OpenStack Summit Boston 2017
OpenStack Telco Architecture: OpenStack Summit Boston 2017OpenStack Telco Architecture: OpenStack Summit Boston 2017
OpenStack Telco Architecture: OpenStack Summit Boston 2017Christian "kiko" Reis
 
Growing in the wild. The story by cubrid database developers (Esen Sagynov, E...
Growing in the wild. The story by cubrid database developers (Esen Sagynov, E...Growing in the wild. The story by cubrid database developers (Esen Sagynov, E...
Growing in the wild. The story by cubrid database developers (Esen Sagynov, E...Ontico
 
EGI TF 2013 / Cloud Interoperability Week – Hands-On Tutorial
EGI TF 2013 / Cloud Interoperability Week – Hands-On TutorialEGI TF 2013 / Cloud Interoperability Week – Hands-On Tutorial
EGI TF 2013 / Cloud Interoperability Week – Hands-On TutorialOpenNebula Project
 
Getting started with OpenStack
Getting started with OpenStackGetting started with OpenStack
Getting started with OpenStackKnoldus Inc.
 
NewSQL - The Future of Databases?
NewSQL - The Future of Databases?NewSQL - The Future of Databases?
NewSQL - The Future of Databases?Elvis Saravia
 

Tendances (20)

NewSQL: The Best of Both "OldSQL" and "NoSQL"
NewSQL: The Best of Both "OldSQL" and "NoSQL"NewSQL: The Best of Both "OldSQL" and "NoSQL"
NewSQL: The Best of Both "OldSQL" and "NoSQL"
 
NewSQL vs NoSQL for New OLTP
NewSQL vs NoSQL for New OLTPNewSQL vs NoSQL for New OLTP
NewSQL vs NoSQL for New OLTP
 
keyvi the key value index @ Cliqz
keyvi the key value index @ Cliqzkeyvi the key value index @ Cliqz
keyvi the key value index @ Cliqz
 
OpenStack 101
OpenStack 101OpenStack 101
OpenStack 101
 
Mirantis OpenStack-DC-Meetup 17 Sept 2014
Mirantis OpenStack-DC-Meetup 17 Sept 2014Mirantis OpenStack-DC-Meetup 17 Sept 2014
Mirantis OpenStack-DC-Meetup 17 Sept 2014
 
Architecture Openstack for the Enterprise
Architecture Openstack for the EnterpriseArchitecture Openstack for the Enterprise
Architecture Openstack for the Enterprise
 
OpenStack 101 @ ENEI 2014
OpenStack 101 @ ENEI 2014OpenStack 101 @ ENEI 2014
OpenStack 101 @ ENEI 2014
 
Mirantis OpenStack 5.0 Overview
Mirantis OpenStack 5.0 OverviewMirantis OpenStack 5.0 Overview
Mirantis OpenStack 5.0 Overview
 
C* Summit 2013: No Whistling Required: Cabs, Cassandra, and Hailo by Dave Gar...
C* Summit 2013: No Whistling Required: Cabs, Cassandra, and Hailo by Dave Gar...C* Summit 2013: No Whistling Required: Cabs, Cassandra, and Hailo by Dave Gar...
C* Summit 2013: No Whistling Required: Cabs, Cassandra, and Hailo by Dave Gar...
 
Vancouver open stack meetup presentation
Vancouver open stack meetup presentationVancouver open stack meetup presentation
Vancouver open stack meetup presentation
 
My sql fabric webinar tw2
My sql fabric webinar tw2My sql fabric webinar tw2
My sql fabric webinar tw2
 
SFScon16 - Michele Baldessari: "OpenStack – An introduction"
SFScon16 - Michele Baldessari: "OpenStack – An introduction"SFScon16 - Michele Baldessari: "OpenStack – An introduction"
SFScon16 - Michele Baldessari: "OpenStack – An introduction"
 
Openstack 101
Openstack 101Openstack 101
Openstack 101
 
Openstack training material
Openstack training materialOpenstack training material
Openstack training material
 
OpenStack Telco Architecture: OpenStack Summit Boston 2017
OpenStack Telco Architecture: OpenStack Summit Boston 2017OpenStack Telco Architecture: OpenStack Summit Boston 2017
OpenStack Telco Architecture: OpenStack Summit Boston 2017
 
Growing in the wild. The story by cubrid database developers (Esen Sagynov, E...
Growing in the wild. The story by cubrid database developers (Esen Sagynov, E...Growing in the wild. The story by cubrid database developers (Esen Sagynov, E...
Growing in the wild. The story by cubrid database developers (Esen Sagynov, E...
 
EGI TF 2013 / Cloud Interoperability Week – Hands-On Tutorial
EGI TF 2013 / Cloud Interoperability Week – Hands-On TutorialEGI TF 2013 / Cloud Interoperability Week – Hands-On Tutorial
EGI TF 2013 / Cloud Interoperability Week – Hands-On Tutorial
 
Open stack
Open stackOpen stack
Open stack
 
Getting started with OpenStack
Getting started with OpenStackGetting started with OpenStack
Getting started with OpenStack
 
NewSQL - The Future of Databases?
NewSQL - The Future of Databases?NewSQL - The Future of Databases?
NewSQL - The Future of Databases?
 

Similaire à Tango Database & MySQL Cluster

UKOUG 2011: MySQL Architectures for Oracle DBA's
UKOUG 2011: MySQL Architectures for Oracle DBA'sUKOUG 2011: MySQL Architectures for Oracle DBA's
UKOUG 2011: MySQL Architectures for Oracle DBA'sFromDual GmbH
 
豆瓣技术架构的发展历程
豆瓣技术架构的发展历程豆瓣技术架构的发展历程
豆瓣技术架构的发展历程George Ang
 
豆瓣 Qcon2009 Beijing
豆瓣 Qcon2009 Beijing豆瓣 Qcon2009 Beijing
豆瓣 Qcon2009 Beijingyiditushe
 
Drupal Con My Sql Ha 2008 08 29
Drupal Con My Sql Ha 2008 08 29Drupal Con My Sql Ha 2008 08 29
Drupal Con My Sql Ha 2008 08 29liufabin 66688
 
My sql 56_roadmap_april2012_zht2
My sql 56_roadmap_april2012_zht2My sql 56_roadmap_april2012_zht2
My sql 56_roadmap_april2012_zht2Ivan Tu
 
MySQL For Oracle DBA's and Developers
MySQL For Oracle DBA's and DevelopersMySQL For Oracle DBA's and Developers
MySQL For Oracle DBA's and DevelopersRonald Bradford
 
The OSSCube MySQL High Availability Tutorial
The OSSCube MySQL High Availability TutorialThe OSSCube MySQL High Availability Tutorial
The OSSCube MySQL High Availability TutorialOSSCube
 
My SQL Portal Database (Cluster)
My SQL Portal Database (Cluster)My SQL Portal Database (Cluster)
My SQL Portal Database (Cluster)Nicholas Adu Gyamfi
 
2012.10.20 OSC 2012 Hiroshima
2012.10.20 OSC 2012 Hiroshima2012.10.20 OSC 2012 Hiroshima
2012.10.20 OSC 2012 HiroshimaRyusuke Kajiyama
 
MySQL Ecosystem in 2020
MySQL Ecosystem in 2020MySQL Ecosystem in 2020
MySQL Ecosystem in 2020Alkin Tezuysal
 
MySQL NDB Cluster 8.0
MySQL NDB Cluster 8.0MySQL NDB Cluster 8.0
MySQL NDB Cluster 8.0Ted Wennmark
 
豆瓣技术架构的发展历程 @ QCon Beijing 2009
豆瓣技术架构的发展历程 @ QCon Beijing 2009豆瓣技术架构的发展历程 @ QCon Beijing 2009
豆瓣技术架构的发展历程 @ QCon Beijing 2009Qiangning Hong
 
Vote NO for MySQL
Vote NO for MySQLVote NO for MySQL
Vote NO for MySQLUlf Wendel
 
Introduction to Galera
Introduction to GaleraIntroduction to Galera
Introduction to GaleraHenrik Ingo
 
The MySQL Server ecosystem in 2016
The MySQL Server ecosystem in 2016The MySQL Server ecosystem in 2016
The MySQL Server ecosystem in 2016sys army
 

Similaire à Tango Database & MySQL Cluster (20)

UKOUG 2011: MySQL Architectures for Oracle DBA's
UKOUG 2011: MySQL Architectures for Oracle DBA'sUKOUG 2011: MySQL Architectures for Oracle DBA's
UKOUG 2011: MySQL Architectures for Oracle DBA's
 
豆瓣技术架构的发展历程
豆瓣技术架构的发展历程豆瓣技术架构的发展历程
豆瓣技术架构的发展历程
 
豆瓣 Qcon2009 Beijing
豆瓣 Qcon2009 Beijing豆瓣 Qcon2009 Beijing
豆瓣 Qcon2009 Beijing
 
Drupal Con My Sql Ha 2008 08 29
Drupal Con My Sql Ha 2008 08 29Drupal Con My Sql Ha 2008 08 29
Drupal Con My Sql Ha 2008 08 29
 
My sql 56_roadmap_april2012_zht2
My sql 56_roadmap_april2012_zht2My sql 56_roadmap_april2012_zht2
My sql 56_roadmap_april2012_zht2
 
MySQL For Oracle DBA's and Developers
MySQL For Oracle DBA's and DevelopersMySQL For Oracle DBA's and Developers
MySQL For Oracle DBA's and Developers
 
The OSSCube MySQL High Availability Tutorial
The OSSCube MySQL High Availability TutorialThe OSSCube MySQL High Availability Tutorial
The OSSCube MySQL High Availability Tutorial
 
My SQL Portal Database (Cluster)
My SQL Portal Database (Cluster)My SQL Portal Database (Cluster)
My SQL Portal Database (Cluster)
 
My sql tutorial-oscon-2012
My sql tutorial-oscon-2012My sql tutorial-oscon-2012
My sql tutorial-oscon-2012
 
Oss4b - pxc introduction
Oss4b   - pxc introductionOss4b   - pxc introduction
Oss4b - pxc introduction
 
2012.10.20 OSC 2012 Hiroshima
2012.10.20 OSC 2012 Hiroshima2012.10.20 OSC 2012 Hiroshima
2012.10.20 OSC 2012 Hiroshima
 
MySQL Cluster
MySQL ClusterMySQL Cluster
MySQL Cluster
 
MySQL Ecosystem in 2020
MySQL Ecosystem in 2020MySQL Ecosystem in 2020
MySQL Ecosystem in 2020
 
NoSQL with MySQL
NoSQL with MySQLNoSQL with MySQL
NoSQL with MySQL
 
MySQL NDB Cluster 8.0
MySQL NDB Cluster 8.0MySQL NDB Cluster 8.0
MySQL NDB Cluster 8.0
 
豆瓣技术架构的发展历程 @ QCon Beijing 2009
豆瓣技术架构的发展历程 @ QCon Beijing 2009豆瓣技术架构的发展历程 @ QCon Beijing 2009
豆瓣技术架构的发展历程 @ QCon Beijing 2009
 
Vote NO for MySQL
Vote NO for MySQLVote NO for MySQL
Vote NO for MySQL
 
Introduction to Galera
Introduction to GaleraIntroduction to Galera
Introduction to Galera
 
MySQL高可用
MySQL高可用MySQL高可用
MySQL高可用
 
The MySQL Server ecosystem in 2016
The MySQL Server ecosystem in 2016The MySQL Server ecosystem in 2016
The MySQL Server ecosystem in 2016
 

Plus de elliando dias

Clojurescript slides
Clojurescript slidesClojurescript slides
Clojurescript slideselliando 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 ClojureScriptelliando dias
 
Functional Programming with Immutable Data Structures
Functional Programming with Immutable Data StructuresFunctional Programming with Immutable Data Structures
Functional Programming with Immutable Data Structureselliando dias
 
Nomenclatura e peças de container
Nomenclatura  e peças de containerNomenclatura  e peças de container
Nomenclatura e peças de containerelliando 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 Agilityelliando dias
 
Javascript Libraries
Javascript LibrariesJavascript Libraries
Javascript Librarieselliando 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 Webelliando dias
 
Introdução ao Arduino
Introdução ao ArduinoIntrodução ao Arduino
Introdução ao Arduinoelliando dias
 
Incanter Data Sorcery
Incanter Data SorceryIncanter Data Sorcery
Incanter Data Sorceryelliando 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 Designelliando dias
 
The Digital Revolution: Machines that makes
The Digital Revolution: Machines that makesThe Digital Revolution: Machines that makes
The Digital Revolution: Machines that makeselliando 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 Facebookelliando 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 Studyelliando dias
 

Plus de 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
 

Dernier

A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
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.pptxMalak Abu Hammad
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
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...apidays
 
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 2024Rafal Los
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
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 MenDelhi Call girls
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
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 2024The Digital Insurer
 
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 RobisonAnna Loughnan Colquhoun
 
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 AutomationSafe Software
 
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...Drew Madelung
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 

Dernier (20)

A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
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
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
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...
 
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
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
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
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
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
 
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
 
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
 
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...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 

Tango Database & MySQL Cluster

  • 1. Tango Meeting Tango database & MySQL cluster 26­27/05/2005 Tango Database & MySQL Cluster Claudio Scafuri claudio.scafuri@elettra.trieste.it Claudio Scafuri, Elettra
  • 2. Tango Meeting Tango database & MySQL cluster 26­27/05/2005 Topics ● news & experiences ● considerations ● presentation of “deliverables” Claudio Scafuri, Elettra
  • 3. Tango Meeting Tango database & MySQL cluster 26­27/05/2005 Where we left .... HostA HostB Databaseds Databaseds mysqld mysqld API API DB DB MGM Claudio Scafuri, Elettra
  • 4. Tango Meeting Tango database & MySQL cluster 26­27/05/2005 News – MySQL max 4.1.12 . Clustering is “stable” – improved documentation ● but refers to MySQL 5 ! They are pushing in that direction ● still some gray area ... – forums & mailing list by MySQL with precious  informations Claudio Scafuri, Elettra
  • 5. Tango Meeting Tango database & MySQL cluster 26­27/05/2005 “Crashes” explained Conservative design:  save DB from corruption and inconsitencies Not crashes but shut­down of storage nodes! Claudio Scafuri, Elettra
  • 6. Tango Meeting Tango database & MySQL cluster 26­27/05/2005 “Crashes” explained ● lack of memory ● disk space ● network connectivity Tests were carried on “low end” PCs ! Claudio Scafuri, Elettra
  • 7. Tango Meeting Tango database & MySQL cluster 26­27/05/2005 “Crashes” explained ● lack of memory:   98 devices 895 properties 176 attribute properties –  ndbd  : 427 MB Virtual / 27 MB Resident Claudio Scafuri, Elettra
  • 8. Tango Meeting Tango database & MySQL cluster 26­27/05/2005 “Crashes” explained ● disk space:   98 devices 895 properties 176 attribute properties – 314 MB on Master node – 236 MB on Slave node – plus logs...  Claudio Scafuri, Elettra
  • 9. Tango Meeting Tango database & MySQL cluster 26­27/05/2005 “Crashes” explained ● network connectivity:  must avoid “split brain” syndrome: 2 different commits  on the same rows/tables. ­ majority of storage node must “see” each other or – storage nodes can  see an “arbitrator”: – MGM node – myqld node Claudio Scafuri, Elettra
  • 10. Tango Meeting Tango database & MySQL cluster 26­27/05/2005 Cluster Configuration ­ MySQL strongly reccomends to have a single  management node in the cluster. It works as  arbitrator. In principle it is possible to have multiple  mangement nodes by assigning an arbitration  rank. But :“the configuration has not been  completely tested.” Claudio Scafuri, Elettra
  • 11. Tango Meeting Tango database & MySQL cluster 26­27/05/2005 Cluster Configuration HostA HostB HostC Databaseds Databaseds MGM mysqld mysqld API API DB DB Switched Network Claudio Scafuri, Elettra
  • 12. Tango Meeting Tango database & MySQL cluster 26­27/05/2005 Failure scenarios HostA HostB HostC Databaseds Databaseds MGM mysqld mysqld API API DB DB Switched Network Claudio Scafuri, Elettra
  • 13. Tango Meeting Tango database & MySQL cluster 26­27/05/2005 Failure scenarios HostA HostB HostC Databaseds Databaseds MGM mysqld mysqld API API DB DB Switched Network Claudio Scafuri, Elettra
  • 14. Tango Meeting Tango database & MySQL cluster 26­27/05/2005 Failure scenarios HostA HostB HostC Databaseds Databaseds MGM mysqld mysqld API API DB DB Switched Network Claudio Scafuri, Elettra
  • 15. Tango Meeting Tango database & MySQL cluster 26­27/05/2005 Failure scenarios HostA HostB HostC Databaseds Databaseds MGM mysqld mysqld API API DB DB Switched Network Claudio Scafuri, Elettra
  • 16. Tango Meeting Tango database & MySQL cluster 26­27/05/2005 Failure scenarios HostA HostB HostC Databaseds MGM Databaseds mysqld mysqld API API DB DB Switched Network According to MySQL this should trigger a shutdown of the cluster. But it may keep working... Claudio Scafuri, Elettra
  • 17. Tango Meeting Tango database & MySQL cluster 26­27/05/2005 Failure scenarios ­ “failures” never led to data loss or corruption ­ lack of explicit notification You have to check the logs and the status of the processes Claudio Scafuri, Elettra
  • 18. Tango Meeting Tango database & MySQL cluster 26­27/05/2005 Considerations ● excelent tool, does its job – but keep in mind it design and goals ● redundancy does not come for free – 3 or more servers , lots of memory, disk space – non­trivial management (compared to base MySQL) – network failure to be dealt with by othe means Claudio Scafuri, Elettra
  • 19. Tango Meeting Tango database & MySQL cluster 26­27/05/2005 Deliverables ­ configuration files my.cnf : MySQL general configuration file with  cluster support enabled config.ini: cluster configuartion file. Describes the minimal cluster showed in the slides ­ database creation sql script create-db.sql: creates the TANGO schema with  cluster enabled tables. Preloads 2 instances of  Database: sys/database/2 , sys/database/4 Claudio Scafuri, Elettra
  • 20. Tango Meeting Tango database & MySQL cluster 26­27/05/2005 Deliverables extra bonus! 2 HOW­TOs retrieved from the web : cluster-howto-1.pdf by A. Davies. Official MySQL document cluster-howto-2.pdf courtesy of LOD Communications, Inc. http://www.lod.com Claudio Scafuri, Elettra
  • 21. Tango Meeting Tango database & MySQL cluster 26­27/05/2005 To be done: ● testing of deliverables by other institutes ● choose how (if) to distribute the deliverables ● decide whether to add support for multiple tango  host in Java: TANGO_HOST=myhost:10000,otherhost:1000 now it is understood only by C++ thanks to omniORB. Claudio Scafuri, Elettra
  • 22. Tango Meeting Tango database & MySQL cluster 26­27/05/2005 To be done: ● tuning of db parameters (lots of them!) ● testing of backup and recovery ● trying to break and then recover the database. Claudio Scafuri, Elettra