SlideShare uma empresa Scribd logo
1 de 24
Baixar para ler offline
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.1
A MySQL Odyssey - a
Blackhole crossover
Keith Hollman
MySQL Principal Sales Consultant EMEA
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.3
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 remain at the sole discretion of Oracle.
Safe Harbor Statement
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.4
Agenda
MySQL Replication: the crossover.
From
Dev…
…thru’ the
BLACK
HOLE…
Knowledge
is key
Non-
implosion
non-
destructive
…into Pre /
Production
Windows
¿Why?
Oracle Linux
The
Future
Nebulae
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.5
¿Why?
 Sharing how to automate a cross-platform data transfer with
MySQL, applying data filters at the same time.
 Small, quick and easy to setup, minimizing performance & resource
overheads.
 Maneuvering the High Availability door to other possibilities, such as
Security control, Auditing, horizontal & vertical scalability, read-write
segregations.
What’s this all about:
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.6
¿Why?
 A Developer using MySQL on Win (Testing).
 Need to export & import data / schema definition into DBA’s /
Sys.Admin’s Linux environment (Pre-Prod, UAT, Production).
 Certain changes are required and it has to be easy, and unobtrusive.
 And data sensitive columns?
Wouldn’t it be nice if I could have it all transferred directly, automatically
and not have to worry about platform differences?
Just “a” Scenario
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.7
¿Why?
The Setup
“Dev” pc
Win.7 Pro SP1 Intel i5 2.67GHz 8Gb RAM 64bit
CREATE TABLE `crossover` …… ENGINE=InnoDB;
“BLACKHOLE” env
Oracle Linux 6.3 UEK 2.6.39 VM 1xCPU 512Mb RAM 32bit 5Gb disk
ALTER TABLE `crossover` ENGINE=BLACKHOLE;
“Prod” env
SLES 11 SP2 3.0.74 VM 1xCPU 1Gb RAM 10Gb disk
ALTER TABLE `crossover` ENGINE=InnoDB;
MySQL 5.6.11 EE
Replication Setup
using GTID’s:
Master (Win)
-> Slave / Master (OL)
-> Slave (SLES)
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.8
¿Why?
 BLACKHOLE storage engine:
“.. accepts data but throws it away and does not store it. Retrievals always return an empty
result”
– Row Based Replication best (vs Statement, autoinc & PK’s)
– UPDATE’s & DELETE’s triggers aren’t activated: will break replication.
– All operations on BLACKHOLE will be replicated to SLES slave.1
 Others:
– Replicating with lower_case_table_names=1.
– replicate-ignore-db, replicate-do-table, replicate-wild-*.
– Double check FW (iptables –F for easiness).
MySQL BLACKHOLE & Other Awareness
1 Should we be tempted to temporarily ‘fix’
replication by changing SE and back.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.9
The BLACKHOLE
Crossover
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.10
From Dev… thru’ the BLACKHOLE…
 Logical Dump of the master database “sakila” from Win to OL:
[mysql@ol63uek01 ~]$ mysqldump -uroot -poracle -h 192.168.56.101 -P3307 -B sakila 
--master-data=2 | mysql -uroot
ol63 10:40 sakila> show databases;
 Set Replication up…
 … and make sure we only replicate “sakila”:
[mysql@ol63uek01 ~]$ vi /etc/my.cnf : [mysqld] replicate-do-db =sakila
 Check it’s working:
ol63 11:00 sakila> show slave statusG
Win 11:00 sakila> call BlackholeInsert (1000); ..& look for the “*–relay.bin*” logs.
[ From Win to Oracle Linux ]
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.11
Win 11:01 sakila> select count(*) from crossover;
 Stepping into the BLACKHOLE:
ol63 11:02 sakila> select count(*) from crossover;
ol63 11:02 sakila> show create table crossover;
ol63 11:02 sakila> alter table crossover engine=blackhole;
Query OK, 1001 rows affected (0.16 sec)
Records: 1001 Duplicates: 0 Warnings: 0
 Confirming:
ol63 11:02 sakila> show create table crossover;
ol63 11:03 sakila> select count(*) from crossover;
From Dev… thru’ the BLACKHOLE…
Continued…
+----------+
| count(*) |
+----------+
| 1001 |
+----------+
1 row in set (0.00 sec)
+----------+
| count(*) |
+----------+
| 1001 |
+----------+
1 row in set (0.00 sec)
| crossover | CREATE TABLE
`crossover` (
`ID` int(7) NOT NULL
AUTO_INCREMENT,
`Name` char(20) NOT NULL
DEFAULT '',
PRIMARY KEY (`ID`)
) ENGINE=InnoDB
AUTO_INCREMENT=1002 DEFAULT
CHARSET=utf8 |
1 row in set (0.00 sec)
| crossover | CREATE TABLE
`crossover` (
`ID` int(7) NOT NULL
AUTO_INCREMENT,
`Name` char(20) NOT NULL
DEFAULT '',
PRIMARY KEY (`ID`)
) ENGINE=BLACKHOLE DEFAULT
CHARSET=utf8 |
1 row in set (0.00 sec)
+----------+
| count(*) |
+----------+
| 0 |
+----------+
1 row in set (0.00 sec)
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.12
… thru’ the BLACKHOLE… into Prod.
 Logical dump of ol63uek BLACKHOLE table to SLES Production env:
[mysql@suse01 ~]$ mysqldump -uroot -p -h 192.168.56.102 -B sakila --master-data=2 
| mysql -uroot
suse01 11:11 sakila> show databases;
 Set Replication up… again (ol63 is our Master now) & check it works:
suse01 11:12 sakila> show slave statusG
 Coming out of the BLACKHOLE, into InnoDB@SLES:
suse01 11:12 sakila> alter table crossover engine=InnoDB;
 Pull data from Win into SLES (non-blackhole tables):
[mysql@suse01 ~]$ mysqldump -uroot –p –h 192.168.56.101 -P3307 --no-create-info 
--no-create-db –B sakila | mysql -uroot
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.13
Non-Implosion and Non-
Destructive.
http://ourwikiworld.blogspot.com.es/2011/04/amazing-physics-stunning-building.html
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.14
Non-implosion & non-destructive
 Truncate table crossover;
 Bulk INSERT’s.
 DDL modifications.
 Finer Replication capabilities.
 Schema manoeuvrability.
 Performance analysis.
 Located on same Master server.
 Isolated env’s & modular.
! UPDATE & DELETE triggers.
! Added Operational commitments.
! Data models, PK & Autoinc cols.
! IO monitoring / impact evaluation
removed.
! Infrastructure becomes inter-
dependent (replication).
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.15
Non-implosion & non-destructive cont.
Win ol63uek SLES
OBJECT_NAME crossover Diff vs orig. crossover diff crossover diff
COUNT_STAR 10,002 -1 10,001 0 40,007 -20,004
SUM_TIMER_WAIT 231,905,415,096 -26,335,040 7,504,322,436 0 3,783,883,427,646 -9,161,505,807
MIN_TIMER_WAIT 11,728,944 0 22,464 0 24,384 0
AVG_TIMER_WAIT 23,185,664 -376 750,087 0 94,580,202 94,127,574
MAX_TIMER_WAIT 50,530,335,064 0 426,302,487 0 428,082,829,761 0
COUNT_READ 1 -1 0 0 30,006 -20,004
SUM_TIMER_READ 26,335,040 -26,335,040 0 0 15,641,005,167 -9,161,505,807
MIN_TIMER_READ 26,335,040 -26,335,040 0 0 24,384 0
AVG_TIMER_READ 26,335,040 -26,335,040 0 0 521,208 126,492
MAX_TIMER_READ 26,335,040 -26,335,040 0 0 374,708,547 0
COUNT_WRITE 10,001 0 10,001 0 10,001 0
SUM_TIMER_WRITE 231,879,080,056 0 7,504,322,436 0 3,768,242,422,479 0
MIN_TIMER_WRITE 11,728,944 0 22,464 0 24,384 0
AVG_TIMER_WRITE 23,185,288 0 750,087 0 376,786,521 0
MAX_TIMER_WRITE 50,530,335,064 0 426,302,487 0 428,082,829,761 0
COUNT_FETCH 1 -1 0 0 30,006 -20,004
SUM_TIMER_FETCH 26,335,040 -26,335,040 0 0 15,641,005,167 -9,161,505,807
MIN_TIMER_FETCH 26,335,040 -26,335,040 0 0 24,384 0
AVG_TIMER_FETCH 26,335,040 -26,335,040 0 0 521,208 126,492
MAX_TIMER_FETCH 26,335,040 -26,335,040 0 0 374,708,547 0
COUNT_INSERT 10,001 0 10,001 0 10,001 0
SUM_TIMER_INSERT 231,879,080,056 0 7,504,322,436 0 3,768,242,422,479 0
MIN_TIMER_INSERT 11,728,944 0 22,464 0 24,384 0
AVG_TIMER_INSERT 23,185,288 0 750,087 0 376,786,521 0
MAX_TIMER_INSERT 50,530,335,064 0 426,302,487 0 428,082,829,761 0
COUNT_UPDATE 0 0 0 0 0 0
We could use
common O.S. activity
measuring tools.
Using MySQL’s own
Performance_Schema:
After a:
truncate table crossover;
Obtained via a:
select *
from
table_io_waits_summary_by
_table
where
object_schema ='sakila'
and
object_name = 'crossover‘
G
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.16
Knowledge & The Future
http://ourwikiworld.blogspot.com.es/2011/04/amazing-physics-stunning-building.html
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.17
 mysql CLI & plenty of commands.
 MySQL Workbench Utilities.
– mysqldbcopy, mysqlfailover,
mysqlreplicate, mysqlrpladmin,
mysqlrplcheck, etc.
 MySQL Performance_Schema.
 MySQL Enterprise Monitor.
– Replication Advisor
– Query Analyzer
Knowledge is key: Monitoring & Utilities.
MySQL Solutions
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.18
The Future Nebulae
 Existing / inherited Applications.
– eg.Using CSV type tables, from Win to Linux or vice-versa.(Address books, User
provisioning, etc.)
 Cloud / Virtualization platforms.
– HA Potential: Replication, 1x Blackhole for 10+ slaves) & MySQL Cluster.
– Column filtering / Replication filtering / Triggers from Blackhole.
 Eliminate sensitive or un-required columns.
 Create a number of slaves from BLACKHOLE each with it’s own dataset.
 Big Data / BI / custom solutions.
– Repeat bulk loads for troubleshooting / performance comparisons.
– Analyze binlogs on BLACKHOLE / backup strategies, etc.
Who can benefit?
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.19
Reference material
 The BLACKHOLE Storage Engine (ref.man.)
 MySQL Replication Tutorial (TWP)
 The CSV Storage Engine (ref.man.)
 MySQL Workbench download. (documentation)
 Download Utilities without Workbench: http://dev.mysql.com/downloads/tools/utilities/1.3.html
 MySQL Enterprise Monitor:
– Trial 30 day evaluation http://edelivery.oracle.com
 Performance Schema documentation. (table_io_waits_summary_by_table descr.)
 Oracle Linux & Unbreakable Enterprise Kernel (Getting Started).
 SUSE Linux Enterprise Server 11 SP2 for x86 included packages.
 Advanced Linux Command Mastery
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.20
keith.hollman@oracle.com
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.21
Efxaristo OSC13, SUSE, Thessaloniki, everyone.
(Thank you)
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.22
Graphic Section Divider
 Keynotes
 Conferences Sessions
 Hands-on Labs
 Birds-of-a-feather sessions
 Tutorials
 Receptions
 Demo Pods
 Exhibition Hall
San Francisco, September 21-23
Additional Day of Tutorials
Oracle.com/mysqlconnect
Early Bird
Discount: Register
by July 19 and Save
US$500!
Email to partner-engagement_ww@oracle.com for
exhibition and sponsorship opportunities
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.23
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.24

Mais conteúdo relacionado

Mais procurados

Performance schema and_ps_helper
Performance schema and_ps_helperPerformance schema and_ps_helper
Performance schema and_ps_helperMark Leith
 
2012 summarytables
2012 summarytables2012 summarytables
2012 summarytablessqlhjalp
 
Parallel Query on Exadata
Parallel Query on ExadataParallel Query on Exadata
Parallel Query on ExadataEnkitec
 
MySQL sys schema deep dive
MySQL sys schema deep diveMySQL sys schema deep dive
MySQL sys schema deep diveMark Leith
 
MySQL Enterprise Backup: PITR Partial Online Recovery
MySQL Enterprise Backup: PITR Partial Online RecoveryMySQL Enterprise Backup: PITR Partial Online Recovery
MySQL Enterprise Backup: PITR Partial Online RecoveryKeith Hollman
 
Embracing Database Diversity: The New Oracle / MySQL DBA - UKOUG
Embracing Database Diversity: The New Oracle / MySQL DBA -   UKOUGEmbracing Database Diversity: The New Oracle / MySQL DBA -   UKOUG
Embracing Database Diversity: The New Oracle / MySQL DBA - UKOUGKeith Hollman
 
Think Exa!
Think Exa!Think Exa!
Think Exa!Enkitec
 
Managing Exadata in the Real World
Managing Exadata in the Real WorldManaging Exadata in the Real World
Managing Exadata in the Real WorldEnkitec
 
Rhel asmlib to_udev
Rhel asmlib to_udevRhel asmlib to_udev
Rhel asmlib to_udevMohsen B
 
Part1 create sequence,dual table
Part1 create sequence,dual tablePart1 create sequence,dual table
Part1 create sequence,dual tableGirija Muscut
 
Extending MySQL Enterprise Monitor
Extending MySQL Enterprise MonitorExtending MySQL Enterprise Monitor
Extending MySQL Enterprise MonitorMark Leith
 
Posscon my sql56
Posscon my sql56Posscon my sql56
Posscon my sql56Dave Stokes
 
MySQL Administration and Monitoring
MySQL Administration and MonitoringMySQL Administration and Monitoring
MySQL Administration and MonitoringMark Leith
 
In Memory Database In Action by Tanel Poder and Kerry Osborne
In Memory Database In Action by Tanel Poder and Kerry OsborneIn Memory Database In Action by Tanel Poder and Kerry Osborne
In Memory Database In Action by Tanel Poder and Kerry OsborneEnkitec
 
MySQL Replication: Demo Réplica en Español
MySQL Replication: Demo Réplica en EspañolMySQL Replication: Demo Réplica en Español
MySQL Replication: Demo Réplica en EspañolKeith Hollman
 
Summary tables with flexviews
Summary tables with flexviewsSummary tables with flexviews
Summary tables with flexviewsJustin Swanhart
 
What's New MySQL 8.0?
What's New MySQL 8.0?What's New MySQL 8.0?
What's New MySQL 8.0?OracleMySQL
 
Developing Information Schema Plugins
Developing Information Schema PluginsDeveloping Information Schema Plugins
Developing Information Schema PluginsMark Leith
 

Mais procurados (20)

Performance schema and_ps_helper
Performance schema and_ps_helperPerformance schema and_ps_helper
Performance schema and_ps_helper
 
2012 summarytables
2012 summarytables2012 summarytables
2012 summarytables
 
Parallel Query on Exadata
Parallel Query on ExadataParallel Query on Exadata
Parallel Query on Exadata
 
MySQL sys schema deep dive
MySQL sys schema deep diveMySQL sys schema deep dive
MySQL sys schema deep dive
 
MySQL Enterprise Backup: PITR Partial Online Recovery
MySQL Enterprise Backup: PITR Partial Online RecoveryMySQL Enterprise Backup: PITR Partial Online Recovery
MySQL Enterprise Backup: PITR Partial Online Recovery
 
Embracing Database Diversity: The New Oracle / MySQL DBA - UKOUG
Embracing Database Diversity: The New Oracle / MySQL DBA -   UKOUGEmbracing Database Diversity: The New Oracle / MySQL DBA -   UKOUG
Embracing Database Diversity: The New Oracle / MySQL DBA - UKOUG
 
Think Exa!
Think Exa!Think Exa!
Think Exa!
 
Managing Exadata in the Real World
Managing Exadata in the Real WorldManaging Exadata in the Real World
Managing Exadata in the Real World
 
Oracle Exadata X2-8: A Critical Review
Oracle Exadata X2-8: A Critical ReviewOracle Exadata X2-8: A Critical Review
Oracle Exadata X2-8: A Critical Review
 
Rhel asmlib to_udev
Rhel asmlib to_udevRhel asmlib to_udev
Rhel asmlib to_udev
 
Part1 create sequence,dual table
Part1 create sequence,dual tablePart1 create sequence,dual table
Part1 create sequence,dual table
 
Extending MySQL Enterprise Monitor
Extending MySQL Enterprise MonitorExtending MySQL Enterprise Monitor
Extending MySQL Enterprise Monitor
 
Posscon my sql56
Posscon my sql56Posscon my sql56
Posscon my sql56
 
MySQL Administration and Monitoring
MySQL Administration and MonitoringMySQL Administration and Monitoring
MySQL Administration and Monitoring
 
In Memory Database In Action by Tanel Poder and Kerry Osborne
In Memory Database In Action by Tanel Poder and Kerry OsborneIn Memory Database In Action by Tanel Poder and Kerry Osborne
In Memory Database In Action by Tanel Poder and Kerry Osborne
 
Oracle AFD
Oracle AFDOracle AFD
Oracle AFD
 
MySQL Replication: Demo Réplica en Español
MySQL Replication: Demo Réplica en EspañolMySQL Replication: Demo Réplica en Español
MySQL Replication: Demo Réplica en Español
 
Summary tables with flexviews
Summary tables with flexviewsSummary tables with flexviews
Summary tables with flexviews
 
What's New MySQL 8.0?
What's New MySQL 8.0?What's New MySQL 8.0?
What's New MySQL 8.0?
 
Developing Information Schema Plugins
Developing Information Schema PluginsDeveloping Information Schema Plugins
Developing Information Schema Plugins
 

Destaque

Dwarf planets
Dwarf planetsDwarf planets
Dwarf planetsjoverba
 
Pluto The Dwarf Planet
Pluto The Dwarf PlanetPluto The Dwarf Planet
Pluto The Dwarf PlanetJon Dav
 
Waves, tides, and currents revised
Waves, tides, and currents revisedWaves, tides, and currents revised
Waves, tides, and currents revisedSam Hurley
 
Effects Of Waves, Currents, Tides,
Effects Of Waves, Currents, Tides,Effects Of Waves, Currents, Tides,
Effects Of Waves, Currents, Tides,rbosch
 

Destaque (7)

Pluto - The Dwarf Planet
Pluto - The Dwarf PlanetPluto - The Dwarf Planet
Pluto - The Dwarf Planet
 
Dwarf planets
Dwarf planetsDwarf planets
Dwarf planets
 
Tides
TidesTides
Tides
 
Pluto The Dwarf Planet
Pluto The Dwarf PlanetPluto The Dwarf Planet
Pluto The Dwarf Planet
 
Waves, tides, and currents revised
Waves, tides, and currents revisedWaves, tides, and currents revised
Waves, tides, and currents revised
 
Effects Of Waves, Currents, Tides,
Effects Of Waves, Currents, Tides,Effects Of Waves, Currents, Tides,
Effects Of Waves, Currents, Tides,
 
Tides notes ppt
Tides notes pptTides notes ppt
Tides notes ppt
 

Semelhante a A MySQL Odyssey - A Blackhole Crossover

Ohio Linux Fest -- MySQL's NoSQL
Ohio Linux Fest -- MySQL's NoSQLOhio Linux Fest -- MySQL's NoSQL
Ohio Linux Fest -- MySQL's NoSQLDave Stokes
 
The State of the Dolphin, MySQL Keynote at Percona Live Europe 2019, Amsterda...
The State of the Dolphin, MySQL Keynote at Percona Live Europe 2019, Amsterda...The State of the Dolphin, MySQL Keynote at Percona Live Europe 2019, Amsterda...
The State of the Dolphin, MySQL Keynote at Percona Live Europe 2019, Amsterda...Geir Høydalsvik
 
MySQL Database Architectures - MySQL InnoDB ClusterSet 2021-11
MySQL Database Architectures - MySQL InnoDB ClusterSet 2021-11MySQL Database Architectures - MySQL InnoDB ClusterSet 2021-11
MySQL Database Architectures - MySQL InnoDB ClusterSet 2021-11Kenny Gryp
 
Manual Tecnico OGG Oracle to MySQL
Manual Tecnico OGG Oracle to MySQLManual Tecnico OGG Oracle to MySQL
Manual Tecnico OGG Oracle to MySQLErick Vidbaz
 
Meetup my sql5.6_cluster
Meetup my sql5.6_clusterMeetup my sql5.6_cluster
Meetup my sql5.6_clusterLee Stigile
 
MySQL Webinar 2/4 Performance tuning, hardware, optimisation
MySQL Webinar 2/4 Performance tuning, hardware, optimisationMySQL Webinar 2/4 Performance tuning, hardware, optimisation
MySQL Webinar 2/4 Performance tuning, hardware, optimisationMark Swarbrick
 
Applying profilers to my sql (fosdem 2017)
Applying profilers to my sql (fosdem 2017)Applying profilers to my sql (fosdem 2017)
Applying profilers to my sql (fosdem 2017)Valeriy Kravchuk
 
Graal and Truffle: One VM to Rule Them All
Graal and Truffle: One VM to Rule Them AllGraal and Truffle: One VM to Rule Them All
Graal and Truffle: One VM to Rule Them AllThomas Wuerthinger
 
D73549GC10_06.pptx
D73549GC10_06.pptxD73549GC10_06.pptx
D73549GC10_06.pptxVLQuyNhn
 
Performance Schema and Sys Schema in MySQL 5.7
Performance Schema and Sys Schema in MySQL 5.7Performance Schema and Sys Schema in MySQL 5.7
Performance Schema and Sys Schema in MySQL 5.7Mark Leith
 
Oracle OpenWorld 2013 - HOL9737 MySQL Replication Best Practices
Oracle OpenWorld 2013 - HOL9737 MySQL Replication Best PracticesOracle OpenWorld 2013 - HOL9737 MySQL Replication Best Practices
Oracle OpenWorld 2013 - HOL9737 MySQL Replication Best PracticesSven Sandberg
 
State of The Dolphin - May 2021
State of The Dolphin - May 2021State of The Dolphin - May 2021
State of The Dolphin - May 2021Frederic Descamps
 
I/O Microbenchmarking with Oracle in Mind
I/O Microbenchmarking with Oracle in MindI/O Microbenchmarking with Oracle in Mind
I/O Microbenchmarking with Oracle in MindBob Sneed
 
MySQL 5.7 -- SCaLE Feb 2014
MySQL 5.7 -- SCaLE Feb 2014MySQL 5.7 -- SCaLE Feb 2014
MySQL 5.7 -- SCaLE Feb 2014Dave Stokes
 
MySQL Database Architectures - 2020-10
MySQL Database Architectures -  2020-10MySQL Database Architectures -  2020-10
MySQL Database Architectures - 2020-10Kenny Gryp
 
DBA Commands and Concepts That Every Developer Should Know - Part 2
DBA Commands and Concepts That Every Developer Should Know - Part 2DBA Commands and Concepts That Every Developer Should Know - Part 2
DBA Commands and Concepts That Every Developer Should Know - Part 2Alex Zaballa
 
DBA Commands and Concepts That Every Developer Should Know - Part 2
DBA Commands and Concepts That Every Developer Should Know - Part 2DBA Commands and Concepts That Every Developer Should Know - Part 2
DBA Commands and Concepts That Every Developer Should Know - Part 2Alex Zaballa
 

Semelhante a A MySQL Odyssey - A Blackhole Crossover (20)

My sql 5.6&MySQL Cluster 7.3
My sql 5.6&MySQL Cluster 7.3My sql 5.6&MySQL Cluster 7.3
My sql 5.6&MySQL Cluster 7.3
 
Ohio Linux Fest -- MySQL's NoSQL
Ohio Linux Fest -- MySQL's NoSQLOhio Linux Fest -- MySQL's NoSQL
Ohio Linux Fest -- MySQL's NoSQL
 
The State of the Dolphin, MySQL Keynote at Percona Live Europe 2019, Amsterda...
The State of the Dolphin, MySQL Keynote at Percona Live Europe 2019, Amsterda...The State of the Dolphin, MySQL Keynote at Percona Live Europe 2019, Amsterda...
The State of the Dolphin, MySQL Keynote at Percona Live Europe 2019, Amsterda...
 
MySQL Database Architectures - MySQL InnoDB ClusterSet 2021-11
MySQL Database Architectures - MySQL InnoDB ClusterSet 2021-11MySQL Database Architectures - MySQL InnoDB ClusterSet 2021-11
MySQL Database Architectures - MySQL InnoDB ClusterSet 2021-11
 
MySQL NoSQL APIs
MySQL NoSQL APIsMySQL NoSQL APIs
MySQL NoSQL APIs
 
Manual Tecnico OGG Oracle to MySQL
Manual Tecnico OGG Oracle to MySQLManual Tecnico OGG Oracle to MySQL
Manual Tecnico OGG Oracle to MySQL
 
Meetup my sql5.6_cluster
Meetup my sql5.6_clusterMeetup my sql5.6_cluster
Meetup my sql5.6_cluster
 
MySQL Webinar 2/4 Performance tuning, hardware, optimisation
MySQL Webinar 2/4 Performance tuning, hardware, optimisationMySQL Webinar 2/4 Performance tuning, hardware, optimisation
MySQL Webinar 2/4 Performance tuning, hardware, optimisation
 
Applying profilers to my sql (fosdem 2017)
Applying profilers to my sql (fosdem 2017)Applying profilers to my sql (fosdem 2017)
Applying profilers to my sql (fosdem 2017)
 
Graal and Truffle: One VM to Rule Them All
Graal and Truffle: One VM to Rule Them AllGraal and Truffle: One VM to Rule Them All
Graal and Truffle: One VM to Rule Them All
 
D73549GC10_06.pptx
D73549GC10_06.pptxD73549GC10_06.pptx
D73549GC10_06.pptx
 
Performance Schema and Sys Schema in MySQL 5.7
Performance Schema and Sys Schema in MySQL 5.7Performance Schema and Sys Schema in MySQL 5.7
Performance Schema and Sys Schema in MySQL 5.7
 
Oracle OpenWorld 2013 - HOL9737 MySQL Replication Best Practices
Oracle OpenWorld 2013 - HOL9737 MySQL Replication Best PracticesOracle OpenWorld 2013 - HOL9737 MySQL Replication Best Practices
Oracle OpenWorld 2013 - HOL9737 MySQL Replication Best Practices
 
State of The Dolphin - May 2021
State of The Dolphin - May 2021State of The Dolphin - May 2021
State of The Dolphin - May 2021
 
I/O Microbenchmarking with Oracle in Mind
I/O Microbenchmarking with Oracle in MindI/O Microbenchmarking with Oracle in Mind
I/O Microbenchmarking with Oracle in Mind
 
MySQL 5.7 -- SCaLE Feb 2014
MySQL 5.7 -- SCaLE Feb 2014MySQL 5.7 -- SCaLE Feb 2014
MySQL 5.7 -- SCaLE Feb 2014
 
MySQL Database Architectures - 2020-10
MySQL Database Architectures -  2020-10MySQL Database Architectures -  2020-10
MySQL Database Architectures - 2020-10
 
DBA Commands and Concepts That Every Developer Should Know - Part 2
DBA Commands and Concepts That Every Developer Should Know - Part 2DBA Commands and Concepts That Every Developer Should Know - Part 2
DBA Commands and Concepts That Every Developer Should Know - Part 2
 
DBA Commands and Concepts That Every Developer Should Know - Part 2
DBA Commands and Concepts That Every Developer Should Know - Part 2DBA Commands and Concepts That Every Developer Should Know - Part 2
DBA Commands and Concepts That Every Developer Should Know - Part 2
 
Marcin Szałowicz - MySQL Workbench
Marcin Szałowicz - MySQL WorkbenchMarcin Szałowicz - MySQL Workbench
Marcin Szałowicz - MySQL Workbench
 

Mais de Keith Hollman

MySQL Enterprise Backup - BnR Scenarios
MySQL Enterprise Backup - BnR ScenariosMySQL Enterprise Backup - BnR Scenarios
MySQL Enterprise Backup - BnR ScenariosKeith Hollman
 
Moodle Moot Spain: Moodle Available and Scalable with MySQL HA - InnoDB Clust...
Moodle Moot Spain: Moodle Available and Scalable with MySQL HA - InnoDB Clust...Moodle Moot Spain: Moodle Available and Scalable with MySQL HA - InnoDB Clust...
Moodle Moot Spain: Moodle Available and Scalable with MySQL HA - InnoDB Clust...Keith Hollman
 
MySQL InnoDB Cluster HA Overview & Demo
MySQL InnoDB Cluster HA Overview & DemoMySQL InnoDB Cluster HA Overview & Demo
MySQL InnoDB Cluster HA Overview & DemoKeith Hollman
 
MySQL Technology Overview
MySQL Technology OverviewMySQL Technology Overview
MySQL Technology OverviewKeith Hollman
 
MySQL 8.0 Released Update
MySQL 8.0 Released UpdateMySQL 8.0 Released Update
MySQL 8.0 Released UpdateKeith Hollman
 
MySQL Enterprise Edition - Complete Guide (2019)
MySQL Enterprise Edition - Complete Guide (2019)MySQL Enterprise Edition - Complete Guide (2019)
MySQL Enterprise Edition - Complete Guide (2019)Keith Hollman
 
MySQL 8.0 InnoDB Cluster demo
MySQL 8.0 InnoDB Cluster demoMySQL 8.0 InnoDB Cluster demo
MySQL 8.0 InnoDB Cluster demoKeith Hollman
 
MySQL NoSQL JSON JS Python "Document Store" demo
MySQL NoSQL JSON JS Python "Document Store" demoMySQL NoSQL JSON JS Python "Document Store" demo
MySQL NoSQL JSON JS Python "Document Store" demoKeith Hollman
 
MySQL Cluster: El ‘qué’ y el ‘cómo’.
MySQL Cluster: El ‘qué’ y el ‘cómo’.MySQL Cluster: El ‘qué’ y el ‘cómo’.
MySQL Cluster: El ‘qué’ y el ‘cómo’.Keith Hollman
 
Meb Backup & Recovery Performance
Meb Backup & Recovery PerformanceMeb Backup & Recovery Performance
Meb Backup & Recovery PerformanceKeith Hollman
 
MySQL Una Introduccion Tecnica
MySQL Una Introduccion TecnicaMySQL Una Introduccion Tecnica
MySQL Una Introduccion TecnicaKeith Hollman
 

Mais de Keith Hollman (11)

MySQL Enterprise Backup - BnR Scenarios
MySQL Enterprise Backup - BnR ScenariosMySQL Enterprise Backup - BnR Scenarios
MySQL Enterprise Backup - BnR Scenarios
 
Moodle Moot Spain: Moodle Available and Scalable with MySQL HA - InnoDB Clust...
Moodle Moot Spain: Moodle Available and Scalable with MySQL HA - InnoDB Clust...Moodle Moot Spain: Moodle Available and Scalable with MySQL HA - InnoDB Clust...
Moodle Moot Spain: Moodle Available and Scalable with MySQL HA - InnoDB Clust...
 
MySQL InnoDB Cluster HA Overview & Demo
MySQL InnoDB Cluster HA Overview & DemoMySQL InnoDB Cluster HA Overview & Demo
MySQL InnoDB Cluster HA Overview & Demo
 
MySQL Technology Overview
MySQL Technology OverviewMySQL Technology Overview
MySQL Technology Overview
 
MySQL 8.0 Released Update
MySQL 8.0 Released UpdateMySQL 8.0 Released Update
MySQL 8.0 Released Update
 
MySQL Enterprise Edition - Complete Guide (2019)
MySQL Enterprise Edition - Complete Guide (2019)MySQL Enterprise Edition - Complete Guide (2019)
MySQL Enterprise Edition - Complete Guide (2019)
 
MySQL 8.0 InnoDB Cluster demo
MySQL 8.0 InnoDB Cluster demoMySQL 8.0 InnoDB Cluster demo
MySQL 8.0 InnoDB Cluster demo
 
MySQL NoSQL JSON JS Python "Document Store" demo
MySQL NoSQL JSON JS Python "Document Store" demoMySQL NoSQL JSON JS Python "Document Store" demo
MySQL NoSQL JSON JS Python "Document Store" demo
 
MySQL Cluster: El ‘qué’ y el ‘cómo’.
MySQL Cluster: El ‘qué’ y el ‘cómo’.MySQL Cluster: El ‘qué’ y el ‘cómo’.
MySQL Cluster: El ‘qué’ y el ‘cómo’.
 
Meb Backup & Recovery Performance
Meb Backup & Recovery PerformanceMeb Backup & Recovery Performance
Meb Backup & Recovery Performance
 
MySQL Una Introduccion Tecnica
MySQL Una Introduccion TecnicaMySQL Una Introduccion Tecnica
MySQL Una Introduccion Tecnica
 

Último

"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 

Último (20)

E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 

A MySQL Odyssey - A Blackhole Crossover

  • 1. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.1
  • 2. A MySQL Odyssey - a Blackhole crossover Keith Hollman MySQL Principal Sales Consultant EMEA
  • 3. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.3 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 remain at the sole discretion of Oracle. Safe Harbor Statement
  • 4. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.4 Agenda MySQL Replication: the crossover. From Dev… …thru’ the BLACK HOLE… Knowledge is key Non- implosion non- destructive …into Pre / Production Windows ¿Why? Oracle Linux The Future Nebulae
  • 5. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.5 ¿Why?  Sharing how to automate a cross-platform data transfer with MySQL, applying data filters at the same time.  Small, quick and easy to setup, minimizing performance & resource overheads.  Maneuvering the High Availability door to other possibilities, such as Security control, Auditing, horizontal & vertical scalability, read-write segregations. What’s this all about:
  • 6. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.6 ¿Why?  A Developer using MySQL on Win (Testing).  Need to export & import data / schema definition into DBA’s / Sys.Admin’s Linux environment (Pre-Prod, UAT, Production).  Certain changes are required and it has to be easy, and unobtrusive.  And data sensitive columns? Wouldn’t it be nice if I could have it all transferred directly, automatically and not have to worry about platform differences? Just “a” Scenario
  • 7. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.7 ¿Why? The Setup “Dev” pc Win.7 Pro SP1 Intel i5 2.67GHz 8Gb RAM 64bit CREATE TABLE `crossover` …… ENGINE=InnoDB; “BLACKHOLE” env Oracle Linux 6.3 UEK 2.6.39 VM 1xCPU 512Mb RAM 32bit 5Gb disk ALTER TABLE `crossover` ENGINE=BLACKHOLE; “Prod” env SLES 11 SP2 3.0.74 VM 1xCPU 1Gb RAM 10Gb disk ALTER TABLE `crossover` ENGINE=InnoDB; MySQL 5.6.11 EE Replication Setup using GTID’s: Master (Win) -> Slave / Master (OL) -> Slave (SLES)
  • 8. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.8 ¿Why?  BLACKHOLE storage engine: “.. accepts data but throws it away and does not store it. Retrievals always return an empty result” – Row Based Replication best (vs Statement, autoinc & PK’s) – UPDATE’s & DELETE’s triggers aren’t activated: will break replication. – All operations on BLACKHOLE will be replicated to SLES slave.1  Others: – Replicating with lower_case_table_names=1. – replicate-ignore-db, replicate-do-table, replicate-wild-*. – Double check FW (iptables –F for easiness). MySQL BLACKHOLE & Other Awareness 1 Should we be tempted to temporarily ‘fix’ replication by changing SE and back.
  • 9. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.9 The BLACKHOLE Crossover
  • 10. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.10 From Dev… thru’ the BLACKHOLE…  Logical Dump of the master database “sakila” from Win to OL: [mysql@ol63uek01 ~]$ mysqldump -uroot -poracle -h 192.168.56.101 -P3307 -B sakila --master-data=2 | mysql -uroot ol63 10:40 sakila> show databases;  Set Replication up…  … and make sure we only replicate “sakila”: [mysql@ol63uek01 ~]$ vi /etc/my.cnf : [mysqld] replicate-do-db =sakila  Check it’s working: ol63 11:00 sakila> show slave statusG Win 11:00 sakila> call BlackholeInsert (1000); ..& look for the “*–relay.bin*” logs. [ From Win to Oracle Linux ]
  • 11. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.11 Win 11:01 sakila> select count(*) from crossover;  Stepping into the BLACKHOLE: ol63 11:02 sakila> select count(*) from crossover; ol63 11:02 sakila> show create table crossover; ol63 11:02 sakila> alter table crossover engine=blackhole; Query OK, 1001 rows affected (0.16 sec) Records: 1001 Duplicates: 0 Warnings: 0  Confirming: ol63 11:02 sakila> show create table crossover; ol63 11:03 sakila> select count(*) from crossover; From Dev… thru’ the BLACKHOLE… Continued… +----------+ | count(*) | +----------+ | 1001 | +----------+ 1 row in set (0.00 sec) +----------+ | count(*) | +----------+ | 1001 | +----------+ 1 row in set (0.00 sec) | crossover | CREATE TABLE `crossover` ( `ID` int(7) NOT NULL AUTO_INCREMENT, `Name` char(20) NOT NULL DEFAULT '', PRIMARY KEY (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=1002 DEFAULT CHARSET=utf8 | 1 row in set (0.00 sec) | crossover | CREATE TABLE `crossover` ( `ID` int(7) NOT NULL AUTO_INCREMENT, `Name` char(20) NOT NULL DEFAULT '', PRIMARY KEY (`ID`) ) ENGINE=BLACKHOLE DEFAULT CHARSET=utf8 | 1 row in set (0.00 sec) +----------+ | count(*) | +----------+ | 0 | +----------+ 1 row in set (0.00 sec)
  • 12. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.12 … thru’ the BLACKHOLE… into Prod.  Logical dump of ol63uek BLACKHOLE table to SLES Production env: [mysql@suse01 ~]$ mysqldump -uroot -p -h 192.168.56.102 -B sakila --master-data=2 | mysql -uroot suse01 11:11 sakila> show databases;  Set Replication up… again (ol63 is our Master now) & check it works: suse01 11:12 sakila> show slave statusG  Coming out of the BLACKHOLE, into InnoDB@SLES: suse01 11:12 sakila> alter table crossover engine=InnoDB;  Pull data from Win into SLES (non-blackhole tables): [mysql@suse01 ~]$ mysqldump -uroot –p –h 192.168.56.101 -P3307 --no-create-info --no-create-db –B sakila | mysql -uroot
  • 13. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.13 Non-Implosion and Non- Destructive. http://ourwikiworld.blogspot.com.es/2011/04/amazing-physics-stunning-building.html
  • 14. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.14 Non-implosion & non-destructive  Truncate table crossover;  Bulk INSERT’s.  DDL modifications.  Finer Replication capabilities.  Schema manoeuvrability.  Performance analysis.  Located on same Master server.  Isolated env’s & modular. ! UPDATE & DELETE triggers. ! Added Operational commitments. ! Data models, PK & Autoinc cols. ! IO monitoring / impact evaluation removed. ! Infrastructure becomes inter- dependent (replication).
  • 15. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.15 Non-implosion & non-destructive cont. Win ol63uek SLES OBJECT_NAME crossover Diff vs orig. crossover diff crossover diff COUNT_STAR 10,002 -1 10,001 0 40,007 -20,004 SUM_TIMER_WAIT 231,905,415,096 -26,335,040 7,504,322,436 0 3,783,883,427,646 -9,161,505,807 MIN_TIMER_WAIT 11,728,944 0 22,464 0 24,384 0 AVG_TIMER_WAIT 23,185,664 -376 750,087 0 94,580,202 94,127,574 MAX_TIMER_WAIT 50,530,335,064 0 426,302,487 0 428,082,829,761 0 COUNT_READ 1 -1 0 0 30,006 -20,004 SUM_TIMER_READ 26,335,040 -26,335,040 0 0 15,641,005,167 -9,161,505,807 MIN_TIMER_READ 26,335,040 -26,335,040 0 0 24,384 0 AVG_TIMER_READ 26,335,040 -26,335,040 0 0 521,208 126,492 MAX_TIMER_READ 26,335,040 -26,335,040 0 0 374,708,547 0 COUNT_WRITE 10,001 0 10,001 0 10,001 0 SUM_TIMER_WRITE 231,879,080,056 0 7,504,322,436 0 3,768,242,422,479 0 MIN_TIMER_WRITE 11,728,944 0 22,464 0 24,384 0 AVG_TIMER_WRITE 23,185,288 0 750,087 0 376,786,521 0 MAX_TIMER_WRITE 50,530,335,064 0 426,302,487 0 428,082,829,761 0 COUNT_FETCH 1 -1 0 0 30,006 -20,004 SUM_TIMER_FETCH 26,335,040 -26,335,040 0 0 15,641,005,167 -9,161,505,807 MIN_TIMER_FETCH 26,335,040 -26,335,040 0 0 24,384 0 AVG_TIMER_FETCH 26,335,040 -26,335,040 0 0 521,208 126,492 MAX_TIMER_FETCH 26,335,040 -26,335,040 0 0 374,708,547 0 COUNT_INSERT 10,001 0 10,001 0 10,001 0 SUM_TIMER_INSERT 231,879,080,056 0 7,504,322,436 0 3,768,242,422,479 0 MIN_TIMER_INSERT 11,728,944 0 22,464 0 24,384 0 AVG_TIMER_INSERT 23,185,288 0 750,087 0 376,786,521 0 MAX_TIMER_INSERT 50,530,335,064 0 426,302,487 0 428,082,829,761 0 COUNT_UPDATE 0 0 0 0 0 0 We could use common O.S. activity measuring tools. Using MySQL’s own Performance_Schema: After a: truncate table crossover; Obtained via a: select * from table_io_waits_summary_by _table where object_schema ='sakila' and object_name = 'crossover‘ G
  • 16. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.16 Knowledge & The Future http://ourwikiworld.blogspot.com.es/2011/04/amazing-physics-stunning-building.html
  • 17. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.17  mysql CLI & plenty of commands.  MySQL Workbench Utilities. – mysqldbcopy, mysqlfailover, mysqlreplicate, mysqlrpladmin, mysqlrplcheck, etc.  MySQL Performance_Schema.  MySQL Enterprise Monitor. – Replication Advisor – Query Analyzer Knowledge is key: Monitoring & Utilities. MySQL Solutions
  • 18. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.18 The Future Nebulae  Existing / inherited Applications. – eg.Using CSV type tables, from Win to Linux or vice-versa.(Address books, User provisioning, etc.)  Cloud / Virtualization platforms. – HA Potential: Replication, 1x Blackhole for 10+ slaves) & MySQL Cluster. – Column filtering / Replication filtering / Triggers from Blackhole.  Eliminate sensitive or un-required columns.  Create a number of slaves from BLACKHOLE each with it’s own dataset.  Big Data / BI / custom solutions. – Repeat bulk loads for troubleshooting / performance comparisons. – Analyze binlogs on BLACKHOLE / backup strategies, etc. Who can benefit?
  • 19. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.19 Reference material  The BLACKHOLE Storage Engine (ref.man.)  MySQL Replication Tutorial (TWP)  The CSV Storage Engine (ref.man.)  MySQL Workbench download. (documentation)  Download Utilities without Workbench: http://dev.mysql.com/downloads/tools/utilities/1.3.html  MySQL Enterprise Monitor: – Trial 30 day evaluation http://edelivery.oracle.com  Performance Schema documentation. (table_io_waits_summary_by_table descr.)  Oracle Linux & Unbreakable Enterprise Kernel (Getting Started).  SUSE Linux Enterprise Server 11 SP2 for x86 included packages.  Advanced Linux Command Mastery
  • 20. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.20 keith.hollman@oracle.com
  • 21. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.21 Efxaristo OSC13, SUSE, Thessaloniki, everyone. (Thank you)
  • 22. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.22 Graphic Section Divider  Keynotes  Conferences Sessions  Hands-on Labs  Birds-of-a-feather sessions  Tutorials  Receptions  Demo Pods  Exhibition Hall San Francisco, September 21-23 Additional Day of Tutorials Oracle.com/mysqlconnect Early Bird Discount: Register by July 19 and Save US$500! Email to partner-engagement_ww@oracle.com for exhibition and sponsorship opportunities
  • 23. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.23
  • 24. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.24