SlideShare ist ein Scribd-Unternehmen logo
1 von 19
Configuración de MySQL Federated y Cluster
Ambiente Federado Servidor 1 Servidor 2 Servidor 3
Servidor Remoto Servidor Local
Inicio del Servidor Local Habilitar el motor FEDERATED para acceder a bases de datos remotas Mysqld--federated
Misma estructura Servidor Remoto Servidor Local CreatetableUsers( idusuariointauto_increment, usernamevarchar(10), passwordvarchar(15), primarykey(idusuario)); CreatetableUsers( idusuariointauto_increment, usernamevarchar(10), passwordvarchar(15), primarykey(idusuario)) ENGINE=FEDERATED  CONNECTION= 'mysql://fed_user@remote_host:9306/federated/test_table’;
Al crear la tabla Formato de la Cadena de Conexión scheme://user_name[:password]@host_name[:port_num]/db_name/tbl_name  ENGINE=FEDERATED CONNECTION='mysql://fed_user@remote_host:9306/federated/test_table'
MySQLCluster Ambiente distribuido
Topología Clientes Mysql Datos Cliente  Management Datos Datos Management Api Datos
Management ndb_mgmd ndb_mgm Api mysqld --ndb Datos ndbd Datos ndbd
Supuestos Básicos 6nodos
Archivo my.ini de los nodos de datos # Optionsformysqldprocess: [mysqld]  ndbcluster # run NDB storageengine ndb-connectstring=192.168.0.10 # Optionsforndbdprocess: [mysql_cluster]  ndb-connectstring=192.168.0.10  Motor del management server Ubicación del management server
Debe estar localizado en la raíz del paquete
Archivo config.ini del nodo management # Options affecting ndbd processes on all data nodes: [ndbd default] NoOfReplicas=2 	# Number of replicas DataMemory=80M 	# How much memory to allocate for data storage  IndexMemory=18M 	# How much memory to allocate for index storage  # For DataMemory and IndexMemory, we have used the  # default values. Since the "world" database takes up  # only about 500KB, this should be more than enough for  # this example Cluster setup.  # TCP/IP options:  [tcp default]  portnumber=2202
# This the default; however, you can use any port that is free  # for all the hosts in the cluster  # Note: It is recommended that you do not specify the port  # number at all and allow the default value to be used instead # Management process options:  [ndb_mgmd] hostname=192.168.0.10 	# Hostname or IP address of management node  datadir=/var/lib/mysql-cluster 	# Directory for management node log files  # Options for data node "A":  [ndbd]  # (one [ndbd] section per data node)  hostname=192.168.0.30 # Hostname or IP address  datadir=/usr/local/mysql/data 	# Directory for this data node's data files
# Options for data node "B":  [ndbd]  hostname=192.168.0.40 # Hostname or IP address  datadir=/usr/local/mysql/data  # Directory for this data node's data files  # SQL node options:  [mysqld]  hostname=192.168.0.20  # Hostname or IP address  # (additional mysqld connections can be  # specified for this node for various  # purposes such as running ndb_restore)
Directorio de Trabajo
Iniciar ndb_mgmd en el nodo servidor ndbd-mgmd –config-file=archivo Iniciar ndbd en los nodos de datos Ndbd Iniciar ndb-mgm en el nodo interfaz ndb Iniciar mysqld en el nodo interfaz
Ndb-mgm Show  Startbackup Shutdown
Referencias ENGINE Federated http://dev.mysql.com/doc/refman/5.0/en/federated-storage-engine.html MySQLCluster http://mirror.atlanticmetro.net/mysql/doc/mysql-cluster-excerpt/5.1/en/index.html

Weitere ähnliche Inhalte

Was ist angesagt?

Puppet Camp Amsterdam 2015: Manifests of Future Past
Puppet Camp Amsterdam 2015: Manifests of Future PastPuppet Camp Amsterdam 2015: Manifests of Future Past
Puppet Camp Amsterdam 2015: Manifests of Future Past
Puppet
 

Was ist angesagt? (20)

mdpress(MarkDown Press)を使ったプレゼンテーション作成
mdpress(MarkDown Press)を使ったプレゼンテーション作成mdpress(MarkDown Press)を使ったプレゼンテーション作成
mdpress(MarkDown Press)を使ったプレゼンテーション作成
 
Bower introduction
Bower introductionBower introduction
Bower introduction
 
How to add user in system without useradd command
How to add user in system without useradd commandHow to add user in system without useradd command
How to add user in system without useradd command
 
Guide to compile your own 4.3.4 cataclysm server
Guide to compile your own 4.3.4 cataclysm serverGuide to compile your own 4.3.4 cataclysm server
Guide to compile your own 4.3.4 cataclysm server
 
Testing with MySQL embedded
Testing with MySQL embeddedTesting with MySQL embedded
Testing with MySQL embedded
 
Стажировка 2016-07-27 02 Денис Нелюбин. PostgreSQL и jsonb
Стажировка 2016-07-27 02 Денис Нелюбин. PostgreSQL и jsonbСтажировка 2016-07-27 02 Денис Нелюбин. PostgreSQL и jsonb
Стажировка 2016-07-27 02 Денис Нелюбин. PostgreSQL и jsonb
 
Build your own_map_by_yourself
Build your own_map_by_yourselfBuild your own_map_by_yourself
Build your own_map_by_yourself
 
MongoDB: How it Works
MongoDB: How it WorksMongoDB: How it Works
MongoDB: How it Works
 
System administration
System administrationSystem administration
System administration
 
Conexion php
Conexion phpConexion php
Conexion php
 
veracruz
veracruzveracruz
veracruz
 
Puppet Camp Amsterdam 2015: Manifests of Future Past
Puppet Camp Amsterdam 2015: Manifests of Future PastPuppet Camp Amsterdam 2015: Manifests of Future Past
Puppet Camp Amsterdam 2015: Manifests of Future Past
 
Raj mysql
Raj mysqlRaj mysql
Raj mysql
 
Tablespaces
TablespacesTablespaces
Tablespaces
 
macOS アプリで Swift Package Manager を使ってみる #love_swift #hakataswift
macOS アプリで Swift Package Manager を使ってみる #love_swift #hakataswiftmacOS アプリで Swift Package Manager を使ってみる #love_swift #hakataswift
macOS アプリで Swift Package Manager を使ってみる #love_swift #hakataswift
 
Redis - Usability and Use Cases
Redis - Usability and Use CasesRedis - Usability and Use Cases
Redis - Usability and Use Cases
 
MariaDB10.7_install_Ubuntu.docx
MariaDB10.7_install_Ubuntu.docxMariaDB10.7_install_Ubuntu.docx
MariaDB10.7_install_Ubuntu.docx
 
Couchdb
CouchdbCouchdb
Couchdb
 
Boosting MongoDB performance
Boosting MongoDB performanceBoosting MongoDB performance
Boosting MongoDB performance
 
Beginner guide to mysql command line
Beginner guide to mysql command lineBeginner guide to mysql command line
Beginner guide to mysql command line
 

Andere mochten auch

Orientation Human Services Program Fall 2012 Subterm 1
Orientation Human Services Program Fall 2012 Subterm 1Orientation Human Services Program Fall 2012 Subterm 1
Orientation Human Services Program Fall 2012 Subterm 1
Bluefield College
 
Team Marti Seller Presentation
Team Marti Seller PresentationTeam Marti Seller Presentation
Team Marti Seller Presentation
Marti Hampton
 

Andere mochten auch (9)

Orientation Human Services Program Fall 2012 Subterm 1
Orientation Human Services Program Fall 2012 Subterm 1Orientation Human Services Program Fall 2012 Subterm 1
Orientation Human Services Program Fall 2012 Subterm 1
 
Mangin
ManginMangin
Mangin
 
Assilah, MOROCCO
Assilah, MOROCCOAssilah, MOROCCO
Assilah, MOROCCO
 
La Mutuelle des Affaires Etrangères et Européennes réduit les délais de trait...
La Mutuelle des Affaires Etrangères et Européennes réduit les délais de trait...La Mutuelle des Affaires Etrangères et Européennes réduit les délais de trait...
La Mutuelle des Affaires Etrangères et Européennes réduit les délais de trait...
 
Salesforce Training Institutes in Pune MindScripts
Salesforce Training Institutes in Pune MindScriptsSalesforce Training Institutes in Pune MindScripts
Salesforce Training Institutes in Pune MindScripts
 
CoRePublisher - what's it for?
CoRePublisher - what's it for?CoRePublisher - what's it for?
CoRePublisher - what's it for?
 
What time is it
What time is itWhat time is it
What time is it
 
ibbackup vs mysqldump对比测试 - 20080718
ibbackup vs mysqldump对比测试 - 20080718ibbackup vs mysqldump对比测试 - 20080718
ibbackup vs mysqldump对比测试 - 20080718
 
Team Marti Seller Presentation
Team Marti Seller PresentationTeam Marti Seller Presentation
Team Marti Seller Presentation
 

Ähnlich wie Distribuido

Intrusion Detection System using Snort
Intrusion Detection System using Snort Intrusion Detection System using Snort
Intrusion Detection System using Snort
webhostingguy
 
Intrusion Detection System using Snort
Intrusion Detection System using Snort Intrusion Detection System using Snort
Intrusion Detection System using Snort
webhostingguy
 
Presentation iv implementasi 802x eap tls peap mscha pv2
Presentation iv implementasi  802x eap tls peap mscha pv2Presentation iv implementasi  802x eap tls peap mscha pv2
Presentation iv implementasi 802x eap tls peap mscha pv2
Hell19
 

Ähnlich wie Distribuido (20)

Multiple instances second method
Multiple instances second methodMultiple instances second method
Multiple instances second method
 
My sql administration
My sql administrationMy sql administration
My sql administration
 
My SQL 101
My SQL 101My SQL 101
My SQL 101
 
02 20180605 meetup_fdw_v1
02 20180605 meetup_fdw_v102 20180605 meetup_fdw_v1
02 20180605 meetup_fdw_v1
 
Intrusion Detection System using Snort
Intrusion Detection System using Snort Intrusion Detection System using Snort
Intrusion Detection System using Snort
 
Intrusion Detection System using Snort
Intrusion Detection System using Snort Intrusion Detection System using Snort
Intrusion Detection System using Snort
 
Sah
SahSah
Sah
 
MySQL Cluster Basics
MySQL Cluster BasicsMySQL Cluster Basics
MySQL Cluster Basics
 
Configuring MongoDB HA Replica Set on AWS EC2
Configuring MongoDB HA Replica Set on AWS EC2Configuring MongoDB HA Replica Set on AWS EC2
Configuring MongoDB HA Replica Set on AWS EC2
 
Mongodb workshop
Mongodb workshopMongodb workshop
Mongodb workshop
 
Service discovery and configuration provisioning
Service discovery and configuration provisioningService discovery and configuration provisioning
Service discovery and configuration provisioning
 
Webinar: MariaDB Provides the Solution to Ease Multi-Source Replication
Webinar: MariaDB Provides the Solution to Ease Multi-Source ReplicationWebinar: MariaDB Provides the Solution to Ease Multi-Source Replication
Webinar: MariaDB Provides the Solution to Ease Multi-Source Replication
 
Presentation iv implementasi 802x eap tls peap mscha pv2
Presentation iv implementasi  802x eap tls peap mscha pv2Presentation iv implementasi  802x eap tls peap mscha pv2
Presentation iv implementasi 802x eap tls peap mscha pv2
 
MariaDB, MySQL and Ansible: automating database infrastructures
MariaDB, MySQL and Ansible: automating database infrastructuresMariaDB, MySQL and Ansible: automating database infrastructures
MariaDB, MySQL and Ansible: automating database infrastructures
 
Architecting cloud
Architecting cloudArchitecting cloud
Architecting cloud
 
Passwordless login with unix auth_socket
Passwordless login with unix auth_socketPasswordless login with unix auth_socket
Passwordless login with unix auth_socket
 
TrinityCore server install guide
TrinityCore server install guideTrinityCore server install guide
TrinityCore server install guide
 
Cisco asa firewall command line technical guide
Cisco asa firewall command line technical guideCisco asa firewall command line technical guide
Cisco asa firewall command line technical guide
 
MySQL Shell for Database Engineers
MySQL Shell for Database EngineersMySQL Shell for Database Engineers
MySQL Shell for Database Engineers
 
Mysql administration
Mysql administrationMysql administration
Mysql administration
 

Kürzlich hochgeladen

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Kürzlich hochgeladen (20)

TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
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
 
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
 
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...
 
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...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
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
 
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
 
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
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
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
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
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
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
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
 
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
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
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
 
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...
 

Distribuido

  • 1. Configuración de MySQL Federated y Cluster
  • 2. Ambiente Federado Servidor 1 Servidor 2 Servidor 3
  • 4. Inicio del Servidor Local Habilitar el motor FEDERATED para acceder a bases de datos remotas Mysqld--federated
  • 5. Misma estructura Servidor Remoto Servidor Local CreatetableUsers( idusuariointauto_increment, usernamevarchar(10), passwordvarchar(15), primarykey(idusuario)); CreatetableUsers( idusuariointauto_increment, usernamevarchar(10), passwordvarchar(15), primarykey(idusuario)) ENGINE=FEDERATED CONNECTION= 'mysql://fed_user@remote_host:9306/federated/test_table’;
  • 6. Al crear la tabla Formato de la Cadena de Conexión scheme://user_name[:password]@host_name[:port_num]/db_name/tbl_name ENGINE=FEDERATED CONNECTION='mysql://fed_user@remote_host:9306/federated/test_table'
  • 8. Topología Clientes Mysql Datos Cliente Management Datos Datos Management Api Datos
  • 9. Management ndb_mgmd ndb_mgm Api mysqld --ndb Datos ndbd Datos ndbd
  • 11. Archivo my.ini de los nodos de datos # Optionsformysqldprocess: [mysqld] ndbcluster # run NDB storageengine ndb-connectstring=192.168.0.10 # Optionsforndbdprocess: [mysql_cluster] ndb-connectstring=192.168.0.10 Motor del management server Ubicación del management server
  • 12. Debe estar localizado en la raíz del paquete
  • 13. Archivo config.ini del nodo management # Options affecting ndbd processes on all data nodes: [ndbd default] NoOfReplicas=2 # Number of replicas DataMemory=80M # How much memory to allocate for data storage IndexMemory=18M # How much memory to allocate for index storage # For DataMemory and IndexMemory, we have used the # default values. Since the "world" database takes up # only about 500KB, this should be more than enough for # this example Cluster setup. # TCP/IP options: [tcp default] portnumber=2202
  • 14. # This the default; however, you can use any port that is free # for all the hosts in the cluster # Note: It is recommended that you do not specify the port # number at all and allow the default value to be used instead # Management process options: [ndb_mgmd] hostname=192.168.0.10 # Hostname or IP address of management node datadir=/var/lib/mysql-cluster # Directory for management node log files # Options for data node "A": [ndbd] # (one [ndbd] section per data node) hostname=192.168.0.30 # Hostname or IP address datadir=/usr/local/mysql/data # Directory for this data node's data files
  • 15. # Options for data node "B": [ndbd] hostname=192.168.0.40 # Hostname or IP address datadir=/usr/local/mysql/data # Directory for this data node's data files # SQL node options: [mysqld] hostname=192.168.0.20 # Hostname or IP address # (additional mysqld connections can be # specified for this node for various # purposes such as running ndb_restore)
  • 17. Iniciar ndb_mgmd en el nodo servidor ndbd-mgmd –config-file=archivo Iniciar ndbd en los nodos de datos Ndbd Iniciar ndb-mgm en el nodo interfaz ndb Iniciar mysqld en el nodo interfaz
  • 18. Ndb-mgm Show Startbackup Shutdown
  • 19. Referencias ENGINE Federated http://dev.mysql.com/doc/refman/5.0/en/federated-storage-engine.html MySQLCluster http://mirror.atlanticmetro.net/mysql/doc/mysql-cluster-excerpt/5.1/en/index.html