SlideShare ist ein Scribd-Unternehmen logo
1 von 56
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.2
Dave Stokes
MySQL Community Manager
slideshare.net/davestokes
David.Stokes@Oracle.Com
@stoker
The Proper CareThe Proper Care
and Feeding of aand Feeding of a
MySQL DatabaseMySQL Database
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.3
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.4
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
decision. The development, release, and timing of any features or
functionality described for Oracle’s products remains at the sole
discretion of Oracle.
Safe Harbor Statement
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.5
Radiologists & Gorillas
● 83 Percent of Radiologists Didn’t Spot the Gorilla Hiding in This
CT Scan
– Picture of gorilla hidden in last slide of ten lung scans.
– They wanted to see if the radiologists, focused on the
telltale nodules, would be blind to the easily detectable and
highly anomalous gorilla
– The gorilla was miniscule, but huge compared to the
nodules. It was about the size of a box of matches-or 48
times the size of a typical nodule.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.6
Gorillas responded
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.7
Databases Do Not Play Well
With Others
Databases Systems are the colicky, nasty
children of the software world with bad tempers
and leaky noses that stubbornly insist on their
way and will become disruptive at the most
inopportune time, ruining man-years of work in
an instant before demanding more
--Said by just about every software developer ever
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.8
So how do you get
happy MySQL Servers?
● This session for those
who are not MySQL
DBAs but are tasked to
take care of MySQL
Instances among other
tasks. This will not
make you a DBA any
more than a 1 hour
session on
programming will make
you a programmer.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.9
How does a Database server work
Client
SELECT phone
FROM friends
WHERE name = ‘Joe’;
Server
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.10
How does a Database server work
Client
SELECT phone
FROM friends
WHERE name = ‘Joe’;
Server
PARSE
find Joe in friends
table in memory
return phone
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.11
How does a Database server work
Client
SELECT phone
FROM friends
WHERE name = ‘Joe’;
. . .
Process phone data
Server
PARSE
find Joe in friends
table in memory
return phone
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.12
How does a Database server work
Client
SELECT phone
FROM friends
WHERE name = ‘Joe’;
. . .
Process phone data
Server
PARSE
find Joe in friends
table in memory
return phone
What was that about
memory???
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.13
Thing to do #1 – Lots of memory
•
Databases love data in memory
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.14
What if it is not in memory?
MySQL
Please give me the
data from the city
table
OS
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.15
What if it is not in memory?
MySQL
Please give me the
data from the city
table
OS
Get inode
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.16
What if it is not in memory?
MySQL
Please give me the
data from the city
table
OS
Get inode
Ask disk for data
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.17
What if it is not in memory?
MySQL
Please give me the
data from the city
table
OS
Get inode
Ask disk for data
Get data into buffer
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.18
What if it is not in memory?
MySQL
Please give me the
data from the city
table
Load data into memory
OS
Get inode
Ask disk for data
Get data into buffer
Hand buffer off
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.19
What if it is not in memory?
MySQL
Please give me the
data from the city
table
Load data into memory
OS
Get inode
Ask disk for data
Get data into buffer
Hand buffer off
Much longer than
just reading from
memory
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.20
Thing to do #2 – Use Proper
Hardware
Databases have to do unpredictable queries,
random I/O, and sequential scans so slow I/O
kills performance. The ol' Hand-me-down Dell
Opteron that was great for Windows ME that
worked 'okay' in development will prove
frustrating in production
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.21
Buffers
What happens when you read a file into memory
DISK
Disk
Controller
Page
Cache
User
Buffer
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.22
Buffers
Memory Lookup – 100 nanoseconds, 12GB/sec
DISK
Disk
Controller
Page
Cache
User
Buffer
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.23
Buffers
Memory Lookup – 100 nanoseconds, 12GB/sec
DISK seek – 10 milliseconds, 760MB/sec
DISK
Disk
Controller
Page
Cache
User
Buffer
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.24
Disk Reads
● A disk read is 100,000 slower than reading memory
● For comparison
– 100,000 minutes is about 69.5 days
– 100,000 feet is about 19 miles
– 100,000 kilometers is 15.7 times around Earth's
equator
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.27
SSD
● Use standard RAID controller
● SSD as writeback cache
● Battery backed
● $2.5/GB verses .075/GB
● Very fast seek time
● Density
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.28
Hardware recommendations
1. Memory – lots of it, ecc
2. DISKs – more spindles, high speed, fast controllers, RAID
10, write back cache, and XFS/ZFS/ext4 not ext2/3
3. Write-through caches with battery backup units for
disks must be monitored, and have life span much
longer than planned outages. Set 'learning cycles' to off
hours
4. CPUs, Core less important (spend money on Memory
and IO)
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.29
Thing to do #3 –
Understand Login/Privs
The default MySQL Login and Privilege
system is a little … primitive.
Be Stingy with privs as they are hard to get
back
Some tools may not give the privs you want –
DROP PRIV is given by default by one
popular admin tool
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.30
Quick Security Warning!
● MySQL login security is primitive.
● Database mysql has users table
● 'jsmith'@'co.com' or 'fred'@'10.10.%'
– Matches host, then user, then password
● Be explicit
● Proxy and Pluggable logins in MySQL 5.6
● 'joe'@'10.10.%' may not be the same as 'joe'@'yourco.com' or
'joe'@'home.net'
● MySQL privilege security
● GRANT functions or access
● Can get Byzantine quickly
● Use a GUI
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.31
MySQL Workbench – set up
roles
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.32
Things to do #4 – Use MySQL Current Release
● Speed
– MySQL 5.5 is 20% faster than 5.1
– MySQL 5.6 is ~15% faster than 5.5
● Features
– Better optimizer
– Sub-queries
– NoSQL/memcached
– Online DDL
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.33
MySQL 5.6: Scalability
●
Users can fully utilize latest generations of hardware and OS
●
Scales as data volumes and users grow
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.34
Thing to do #5 – Monitor
● You need 'something'
monitoring your
instances as you need
a quick way to check
status & record events
– MySQL Enterprise
Monitor
– MySQL Workbench
– Nagios, Cacti,
phpMyAdmin, etc
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.35
Turn on logging
1. Slow query log -- not all long running queries
are bad
2. Log queries not using indexes
3. READ the logs!!!
4. Use monitoring software – MEM, Innotop,
Cacti, Munin, Nagios, etc – and pay attention
to it
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.36
Just because you can not see all of the problem does
not mean the problem is not there!
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.37
Things to do #6 – Backups
Backups are usually some sort of disk snap shot
or serializing data to a file
The more the better but you need to know steps
to recover dropped table, lost databases, or
mangled data.
Use data replication to a slave and then backup
slave.
Be paranoid!!!!!
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.38
Thing to do #7 -- Replication
Replication for MySQL is the binary log for the
master being copied to a slave. The slave
then updates its copy of the data
Two types:
1. Asynchronous – server does not check changes sent to
slave before proceeding
2. Semi Synchronous – server checks that slave received
changes before proceeding
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.39
Replication – was messy!
MySQL 5.6 is multi threaded and has GTIDs
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.40
 Simple to track & compare replication across the cluster
●
Unique identifier for each transaction written to the Binlog
 Automatically identify the most up-to-date slave for failover
 Deploy n-tier replication hierarchies
Master
GTID=123456
GTID=123456
GTID=123456 GTID=123456
MySQL 5.6: Replication
Global Transaction Ids
Eliminates the need for
complex 3rd party
solutions
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.41
Replication -- network
Network latency will affect MySQL replication. So plan
network topology to minimize bandwidth competition with
other systems/services.
Slaves do not need to be as fast as the master but try to
keep things reasonably close
Do not have to replicate all tables/databases to all slaves.
Cut down on traffic by replicating what is needed!
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.42
Writes & Reads Reads Reads
• Write to one master
• Read from many slaves, easily add more as needed
• Perfect for read/write intensive apps
Application
MySQL Replication
Load Balancer
MySQL Database
Replication Enables Scalability
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.43
 New option: binlog-row-image=minimal
 Increases throughput for master and slave
– Reduces Binlog size, memory & network bandwidth
 Only replicates elements of the Row image that have changed
Primary Key Changed Columns
MySQL 5.6: Replication
Optimized Row Base Replication
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.44
Before:
– Transaction Data: in tables
– Replication Info: in files
MySQL 5.6
– Transaction Data: in tables
– Replication Info: in tables
Data
Position Info
CRASH!
Time
Data
Position Info
Time
 Automatic recovery of a slave after a failure
●
Binlog and table data are transactionally
consistent
 Resumes replication without Dev/Op
intervention
●
Automatically rolling back replication to
last committed event
Atomic
Atomic
MySQL 5.6: Crash safe Slaves
Eliminates risk of data loss or
corruption
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.45
Master
#
Slave
#
MySQL 5.6: Replication Event Checksums
Eliminates risk of data
loss or corruption
 Ensures replicated data is correct,
consistent and accessible
 Detects corrupt replication events before
they’re applied
– Returns an error
 Protects entire replication path
– Memory
– Disk
– Network
– Bugs
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.46
Thing to do #8 – Use InnoDB
● Transactional, speedy, crash safe, and where
Oracle is concentrating development.
● Online DDL, SSD Optimizations, Dump/Restore
warm buffer pool (great for cloud)
● NoSQL access via memcached API
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.47
●
Enables export/import of tables between running MySQL instances
MySQL 5.6: InnoDB
Transportable Tablespaces
CREATE TABLE t(c1 INT) engine=InnoDB;
FLUSH TABLE t FOR EXPORT; -- quiesce the table and create the meta data file
$innodb_data_home_dir/test/t.cfg
UNLOCK TABLES;
Export:
Import:
CREATE TABLE t(c1 INT) engine=InnoDB; -- if it doesn't already exist
ALTER TABLE t DISCARD TABLESPACE;
-- The user must stop all updates on the tables, prior to the IMPORT
ALTER TABLE t IMPORT TABLESPACE;
●
Better Elasticity - Quickly spin up new instances to meet demand
●
Great for Cloud, Hosted, SaaS, On-premise deployments
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.48
Same app can leverage:
 Key-value access to
InnoDB via familiar
Memcached API
 SQL for rich queries,
JOINs, FKs, etc.
 Fully transactional
MySQL 5.6: InnoDB
NoSQL Key Value Access to InnoDB
●
Up to 9x performance
boost for updates
●
Great for fast data
ingestion in Big Data
pipeline
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.49
●
Subquery Optimizations
●
File sort optimizations for most web use cases
●
4x better execution time – 40s to 10s
 Index Condition Pushdown
●
160x better execution time – 15s to 90ms
 Batched Key Access and Multi Range Read
●
280x better execution time – 2800s to 10s
MySQL 5.6: Optimizer
●
Better complex query execution times ever growing data sets (Big Data!)
●
MEM + Query Analyzer key to utilizing full benefits of 5.6 Optimizer
●
MySQL Consultative Support provides guidance on configuration
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.50
Things to do #9 – Indexes
Rough rule – look at
columns used in
joins or after a
WHERE
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.51
Indexes are good
Without Index
DB needs to scan
entire table or table
scan
With Index
DB can go right to
record
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.52
Indexes, the bad
•
Overhead -- space, speed, maintenance (you
can have too many)
•
Not a panacea – does not cure all problems
•
Will not help if you need to perform a table
scan
•
Composite indexes can be tricky – YearMonthDay
usually better than DayMonthYear
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.53
Slide to check if audience is still awake
●
●
●
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.54
Thing to do #10 – Tuning
Set innodb_buffer_pool_size to 70-80%
of memory
Turn off query cache
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.55
Where to get help
●
Lots of Help Available
●
High Performance MySQL – Schwartz et al
●
MySQL Administrator's Bible – Cabral
●
Effective MySQL series – Bradford
●
OurSQL podcast
●
Forums.MySQL.Com
Planet.MySQL.Com
Local MySQL User Group
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.56
 Optimized for Web, Cloud-based, Embedded use cases
 Simplified, Pluggable architecture
– Maintainability, more extensible
– More NoSQL options (HTTP, JSON, JavaScript, etc.)
 Refactoring
– Data Dictionary in InnoDB
– Optimizer/Parser/Protocol
 InnoDB
– Optimized for SSD
– GIS
 Easy HA, Replication and Sharding
MySQL Database Development Priorities
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.57
MySQL Connect ConferenceMySQL Connect Conference
● Sept 21st
- 23rd in
San
Francisco
●
● The Call for Proposals
(CFP) for MySQL Connect
2013 just closed.
Conference attendees will
hear the best ideas from
MySQL experts from around
the globe: developers,
visionaries, customers,
partners. Book hotel early
do to Americas Cup races in
San Francisco.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.58
MySQL Marinate!
Virtual self-study of MySQL through the
Boston MySQL Users Group (
http://www.meetup.com/mysqlbos/)
http://www.meetup.com/Virtual-Tech-
Self-Study/events/84103332/
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.59
Q&AQ&A
David.Stokes@oracle.com - slideshare.net/davestokes

Weitere ähnliche Inhalte

Was ist angesagt?

MySQL Performance Best Practices
MySQL Performance Best PracticesMySQL Performance Best Practices
MySQL Performance Best PracticesOlivier DASINI
 
My sql 5.7-upcoming-changes-v2
My sql 5.7-upcoming-changes-v2My sql 5.7-upcoming-changes-v2
My sql 5.7-upcoming-changes-v2Morgan Tocker
 
New awesome features in MySQL 5.7
New awesome features in MySQL 5.7New awesome features in MySQL 5.7
New awesome features in MySQL 5.7Zhaoyang Wang
 
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
 
Introduction to MySQL
Introduction to MySQLIntroduction to MySQL
Introduction to MySQLTed Wennmark
 
Ohio Linux Fest -- MySQL's NoSQL
Ohio Linux Fest -- MySQL's NoSQLOhio Linux Fest -- MySQL's NoSQL
Ohio Linux Fest -- MySQL's NoSQLDave Stokes
 
MySQL 5.7 in a Nutshell
MySQL 5.7 in a NutshellMySQL 5.7 in a Nutshell
MySQL 5.7 in a NutshellEmily Ikuta
 
The MySQL SYS Schema
The MySQL SYS SchemaThe MySQL SYS Schema
The MySQL SYS SchemaMark Leith
 
What's new in my sql smug
What's new in my sql smugWhat's new in my sql smug
What's new in my sql smugTed Wennmark
 
MySQL sys schema deep dive
MySQL sys schema deep diveMySQL sys schema deep dive
MySQL sys schema deep diveMark Leith
 
MySQL sys schema deep dive
MySQL sys schema deep diveMySQL sys schema deep dive
MySQL sys schema deep diveMark Leith
 
Performance schema and sys schema
Performance schema and sys schemaPerformance schema and sys schema
Performance schema and sys schemaMark Leith
 
MySQL: From Single Instance to Big Data
MySQL: From Single Instance to Big DataMySQL: From Single Instance to Big Data
MySQL: From Single Instance to Big DataMorgan Tocker
 
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
 
MySQL Utilities -- PyTexas 2015
MySQL Utilities -- PyTexas 2015MySQL Utilities -- PyTexas 2015
MySQL Utilities -- PyTexas 2015Dave Stokes
 
MySQL Performance Metrics that Matter
MySQL Performance Metrics that MatterMySQL Performance Metrics that Matter
MySQL Performance Metrics that MatterMorgan Tocker
 
MySQL Monitoring Mechanisms
MySQL Monitoring MechanismsMySQL Monitoring Mechanisms
MySQL Monitoring MechanismsMark Leith
 

Was ist angesagt? (20)

MySQL Monitoring 101
MySQL Monitoring 101MySQL Monitoring 101
MySQL Monitoring 101
 
MySQL Performance Best Practices
MySQL Performance Best PracticesMySQL Performance Best Practices
MySQL Performance Best Practices
 
My sql 5.7-upcoming-changes-v2
My sql 5.7-upcoming-changes-v2My sql 5.7-upcoming-changes-v2
My sql 5.7-upcoming-changes-v2
 
New awesome features in MySQL 5.7
New awesome features in MySQL 5.7New awesome features in MySQL 5.7
New awesome features in MySQL 5.7
 
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
 
Introduction to MySQL
Introduction to MySQLIntroduction to MySQL
Introduction to MySQL
 
Ohio Linux Fest -- MySQL's NoSQL
Ohio Linux Fest -- MySQL's NoSQLOhio Linux Fest -- MySQL's NoSQL
Ohio Linux Fest -- MySQL's NoSQL
 
MySQL NoSQL APIs
MySQL NoSQL APIsMySQL NoSQL APIs
MySQL NoSQL APIs
 
MySQL 5.7 in a Nutshell
MySQL 5.7 in a NutshellMySQL 5.7 in a Nutshell
MySQL 5.7 in a Nutshell
 
The MySQL SYS Schema
The MySQL SYS SchemaThe MySQL SYS Schema
The MySQL SYS Schema
 
What's new in my sql smug
What's new in my sql smugWhat's new in my sql smug
What's new in my sql smug
 
MySQL sys schema deep dive
MySQL sys schema deep diveMySQL sys schema deep dive
MySQL sys schema deep dive
 
MySQL sys schema deep dive
MySQL sys schema deep diveMySQL sys schema deep dive
MySQL sys schema deep dive
 
Performance schema and sys schema
Performance schema and sys schemaPerformance schema and sys schema
Performance schema and sys schema
 
MySQL: From Single Instance to Big Data
MySQL: From Single Instance to Big DataMySQL: From Single Instance to Big Data
MySQL: From Single Instance to Big Data
 
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
 
MySQL Utilities -- PyTexas 2015
MySQL Utilities -- PyTexas 2015MySQL Utilities -- PyTexas 2015
MySQL Utilities -- PyTexas 2015
 
MySQL Security
MySQL SecurityMySQL Security
MySQL Security
 
MySQL Performance Metrics that Matter
MySQL Performance Metrics that MatterMySQL Performance Metrics that Matter
MySQL Performance Metrics that Matter
 
MySQL Monitoring Mechanisms
MySQL Monitoring MechanismsMySQL Monitoring Mechanisms
MySQL Monitoring Mechanisms
 

Ähnlich wie Tx lf propercareandfeedmysql

PhpTek Ten Things to do to make your MySQL servers Happier and Healthier
PhpTek Ten Things to do to make your MySQL servers Happier and HealthierPhpTek Ten Things to do to make your MySQL servers Happier and Healthier
PhpTek Ten Things to do to make your MySQL servers Happier and HealthierDave Stokes
 
The care and feeding of a MySQL database
The care and feeding of a MySQL databaseThe care and feeding of a MySQL database
The care and feeding of a MySQL databaseDave Stokes
 
MySQL 5.7 NEW FEATURES, BETTER PERFORMANCE, AND THINGS THAT WILL BREAK -- Mid...
MySQL 5.7 NEW FEATURES, BETTER PERFORMANCE, AND THINGS THAT WILL BREAK -- Mid...MySQL 5.7 NEW FEATURES, BETTER PERFORMANCE, AND THINGS THAT WILL BREAK -- Mid...
MySQL 5.7 NEW FEATURES, BETTER PERFORMANCE, AND THINGS THAT WILL BREAK -- Mid...Dave Stokes
 
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
 
50-Tips-for-Boosting-MySQL-Performance-CON2655.pdf
50-Tips-for-Boosting-MySQL-Performance-CON2655.pdf50-Tips-for-Boosting-MySQL-Performance-CON2655.pdf
50-Tips-for-Boosting-MySQL-Performance-CON2655.pdfAsparuhPolyovski2
 
GLOC Keynote 2014 - In-memory
GLOC Keynote 2014 - In-memoryGLOC Keynote 2014 - In-memory
GLOC Keynote 2014 - In-memoryConnor McDonald
 
Debugging and Configuration Best Practices for Oracle Linux
Debugging and Configuration Best Practices for Oracle LinuxDebugging and Configuration Best Practices for Oracle Linux
Debugging and Configuration Best Practices for Oracle LinuxTerry Wang
 
Oracle RAC 12c Practical Performance Management and Tuning OOW13 [CON8825]
Oracle RAC 12c Practical Performance Management and Tuning OOW13 [CON8825]Oracle RAC 12c Practical Performance Management and Tuning OOW13 [CON8825]
Oracle RAC 12c Practical Performance Management and Tuning OOW13 [CON8825]Markus Michalewicz
 
Java Memory Hogs.pdf
Java Memory Hogs.pdfJava Memory Hogs.pdf
Java Memory Hogs.pdfGurbinder3
 
Introduction to MySQL Enterprise Monitor
Introduction to MySQL Enterprise MonitorIntroduction to MySQL Enterprise Monitor
Introduction to MySQL Enterprise MonitorMark Leith
 
Linuxfest Northwest Proper Care and Feeding Of a MySQL for Busy Linux Admins
Linuxfest Northwest Proper Care and Feeding Of a MySQL for Busy Linux AdminsLinuxfest Northwest Proper Care and Feeding Of a MySQL for Busy Linux Admins
Linuxfest Northwest Proper Care and Feeding Of a MySQL for Busy Linux AdminsDave Stokes
 
Congratsyourthedbatoo
CongratsyourthedbatooCongratsyourthedbatoo
CongratsyourthedbatooDave Stokes
 
MySQL Enterprise Monitor
MySQL Enterprise MonitorMySQL Enterprise Monitor
MySQL Enterprise MonitorMark Swarbrick
 
10 Razões para Usar MySQL em Startups
10 Razões para Usar MySQL em Startups10 Razões para Usar MySQL em Startups
10 Razões para Usar MySQL em StartupsMySQL Brasil
 
4 facing explosive data growth five ways to optimize storage for oracle datab...
4 facing explosive data growth five ways to optimize storage for oracle datab...4 facing explosive data growth five ways to optimize storage for oracle datab...
4 facing explosive data growth five ways to optimize storage for oracle datab...Dr. Wilfred Lin (Ph.D.)
 
5 here today still here tomorrow new technology for big_forever_archives
5 here today still here tomorrow new technology for big_forever_archives5 here today still here tomorrow new technology for big_forever_archives
5 here today still here tomorrow new technology for big_forever_archivesDr. Wilfred Lin (Ph.D.)
 
MySQL Enterprise Monitor
MySQL Enterprise MonitorMySQL Enterprise Monitor
MySQL Enterprise MonitorTed Wennmark
 
Proper Care and Feeding of a MySQL Database for Busy Linux Administrators
Proper Care and Feeding of a MySQL Database for Busy Linux AdministratorsProper Care and Feeding of a MySQL Database for Busy Linux Administrators
Proper Care and Feeding of a MySQL Database for Busy Linux AdministratorsDave Stokes
 

Ähnlich wie Tx lf propercareandfeedmysql (20)

PhpTek Ten Things to do to make your MySQL servers Happier and Healthier
PhpTek Ten Things to do to make your MySQL servers Happier and HealthierPhpTek Ten Things to do to make your MySQL servers Happier and Healthier
PhpTek Ten Things to do to make your MySQL servers Happier and Healthier
 
MySQL Tech Tour Nov, 2013
MySQL Tech Tour Nov, 2013MySQL Tech Tour Nov, 2013
MySQL Tech Tour Nov, 2013
 
The care and feeding of a MySQL database
The care and feeding of a MySQL databaseThe care and feeding of a MySQL database
The care and feeding of a MySQL database
 
MySQL 5.7 NEW FEATURES, BETTER PERFORMANCE, AND THINGS THAT WILL BREAK -- Mid...
MySQL 5.7 NEW FEATURES, BETTER PERFORMANCE, AND THINGS THAT WILL BREAK -- Mid...MySQL 5.7 NEW FEATURES, BETTER PERFORMANCE, AND THINGS THAT WILL BREAK -- Mid...
MySQL 5.7 NEW FEATURES, BETTER PERFORMANCE, AND THINGS THAT WILL BREAK -- Mid...
 
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
 
50-Tips-for-Boosting-MySQL-Performance-CON2655.pdf
50-Tips-for-Boosting-MySQL-Performance-CON2655.pdf50-Tips-for-Boosting-MySQL-Performance-CON2655.pdf
50-Tips-for-Boosting-MySQL-Performance-CON2655.pdf
 
Oracle Database 12c : Multitenant
Oracle Database 12c : MultitenantOracle Database 12c : Multitenant
Oracle Database 12c : Multitenant
 
GLOC Keynote 2014 - In-memory
GLOC Keynote 2014 - In-memoryGLOC Keynote 2014 - In-memory
GLOC Keynote 2014 - In-memory
 
Debugging and Configuration Best Practices for Oracle Linux
Debugging and Configuration Best Practices for Oracle LinuxDebugging and Configuration Best Practices for Oracle Linux
Debugging and Configuration Best Practices for Oracle Linux
 
Oracle RAC 12c Practical Performance Management and Tuning OOW13 [CON8825]
Oracle RAC 12c Practical Performance Management and Tuning OOW13 [CON8825]Oracle RAC 12c Practical Performance Management and Tuning OOW13 [CON8825]
Oracle RAC 12c Practical Performance Management and Tuning OOW13 [CON8825]
 
Java Memory Hogs.pdf
Java Memory Hogs.pdfJava Memory Hogs.pdf
Java Memory Hogs.pdf
 
Introduction to MySQL Enterprise Monitor
Introduction to MySQL Enterprise MonitorIntroduction to MySQL Enterprise Monitor
Introduction to MySQL Enterprise Monitor
 
Linuxfest Northwest Proper Care and Feeding Of a MySQL for Busy Linux Admins
Linuxfest Northwest Proper Care and Feeding Of a MySQL for Busy Linux AdminsLinuxfest Northwest Proper Care and Feeding Of a MySQL for Busy Linux Admins
Linuxfest Northwest Proper Care and Feeding Of a MySQL for Busy Linux Admins
 
Congratsyourthedbatoo
CongratsyourthedbatooCongratsyourthedbatoo
Congratsyourthedbatoo
 
MySQL Enterprise Monitor
MySQL Enterprise MonitorMySQL Enterprise Monitor
MySQL Enterprise Monitor
 
10 Razões para Usar MySQL em Startups
10 Razões para Usar MySQL em Startups10 Razões para Usar MySQL em Startups
10 Razões para Usar MySQL em Startups
 
4 facing explosive data growth five ways to optimize storage for oracle datab...
4 facing explosive data growth five ways to optimize storage for oracle datab...4 facing explosive data growth five ways to optimize storage for oracle datab...
4 facing explosive data growth five ways to optimize storage for oracle datab...
 
5 here today still here tomorrow new technology for big_forever_archives
5 here today still here tomorrow new technology for big_forever_archives5 here today still here tomorrow new technology for big_forever_archives
5 here today still here tomorrow new technology for big_forever_archives
 
MySQL Enterprise Monitor
MySQL Enterprise MonitorMySQL Enterprise Monitor
MySQL Enterprise Monitor
 
Proper Care and Feeding of a MySQL Database for Busy Linux Administrators
Proper Care and Feeding of a MySQL Database for Busy Linux AdministratorsProper Care and Feeding of a MySQL Database for Busy Linux Administrators
Proper Care and Feeding of a MySQL Database for Busy Linux Administrators
 

Mehr von Dave Stokes

Json within a relational database
Json within a relational databaseJson within a relational database
Json within a relational databaseDave Stokes
 
Database basics for new-ish developers -- All Things Open October 18th 2021
Database basics for new-ish developers  -- All Things Open October 18th 2021Database basics for new-ish developers  -- All Things Open October 18th 2021
Database basics for new-ish developers -- All Things Open October 18th 2021Dave Stokes
 
Php & my sql - how do pdo, mysq-li, and x devapi do what they do
Php & my sql  - how do pdo, mysq-li, and x devapi do what they doPhp & my sql  - how do pdo, mysq-li, and x devapi do what they do
Php & my sql - how do pdo, mysq-li, and x devapi do what they doDave Stokes
 
Longhorn PHP - MySQL Indexes, Histograms, Locking Options, and Other Ways to ...
Longhorn PHP - MySQL Indexes, Histograms, Locking Options, and Other Ways to ...Longhorn PHP - MySQL Indexes, Histograms, Locking Options, and Other Ways to ...
Longhorn PHP - MySQL Indexes, Histograms, Locking Options, and Other Ways to ...Dave Stokes
 
MySQL 8.0 New Features -- September 27th presentation for Open Source Summit
MySQL 8.0 New Features -- September 27th presentation for Open Source SummitMySQL 8.0 New Features -- September 27th presentation for Open Source Summit
MySQL 8.0 New Features -- September 27th presentation for Open Source SummitDave Stokes
 
JavaScript and Friends August 20th, 20201 -- MySQL Shell and JavaScript
JavaScript and Friends August 20th, 20201 -- MySQL Shell and JavaScriptJavaScript and Friends August 20th, 20201 -- MySQL Shell and JavaScript
JavaScript and Friends August 20th, 20201 -- MySQL Shell and JavaScriptDave Stokes
 
Open Source World June '21 -- JSON Within a Relational Database
Open Source World June '21 -- JSON Within a Relational DatabaseOpen Source World June '21 -- JSON Within a Relational Database
Open Source World June '21 -- JSON Within a Relational DatabaseDave Stokes
 
Dutch PHP Conference 2021 - MySQL Indexes and Histograms
Dutch PHP Conference 2021 - MySQL Indexes and HistogramsDutch PHP Conference 2021 - MySQL Indexes and Histograms
Dutch PHP Conference 2021 - MySQL Indexes and HistogramsDave Stokes
 
Validating JSON -- Percona Live 2021 presentation
Validating JSON -- Percona Live 2021 presentationValidating JSON -- Percona Live 2021 presentation
Validating JSON -- Percona Live 2021 presentationDave Stokes
 
Midwest PHP Presentation - New MSQL Features
Midwest PHP Presentation - New MSQL FeaturesMidwest PHP Presentation - New MSQL Features
Midwest PHP Presentation - New MSQL FeaturesDave Stokes
 
Data Love Conference - Window Functions for Database Analytics
Data Love Conference - Window Functions for Database AnalyticsData Love Conference - Window Functions for Database Analytics
Data Love Conference - Window Functions for Database AnalyticsDave Stokes
 
Open Source 1010 and Quest InSync presentations March 30th, 2021 on MySQL Ind...
Open Source 1010 and Quest InSync presentations March 30th, 2021 on MySQL Ind...Open Source 1010 and Quest InSync presentations March 30th, 2021 on MySQL Ind...
Open Source 1010 and Quest InSync presentations March 30th, 2021 on MySQL Ind...Dave Stokes
 
Confoo 2021 -- MySQL New Features
Confoo 2021 -- MySQL New FeaturesConfoo 2021 -- MySQL New Features
Confoo 2021 -- MySQL New FeaturesDave Stokes
 
Confoo 2021 - MySQL Indexes & Histograms
Confoo 2021 - MySQL Indexes & HistogramsConfoo 2021 - MySQL Indexes & Histograms
Confoo 2021 - MySQL Indexes & HistogramsDave Stokes
 
Datacon LA - MySQL without the SQL - Oh my!
Datacon LA - MySQL without the SQL - Oh my! Datacon LA - MySQL without the SQL - Oh my!
Datacon LA - MySQL without the SQL - Oh my! Dave Stokes
 
MySQL Replication Update - DEbconf 2020 presentation
MySQL Replication Update - DEbconf 2020 presentationMySQL Replication Update - DEbconf 2020 presentation
MySQL Replication Update - DEbconf 2020 presentationDave Stokes
 
MySQL 8.0 Operational Changes
MySQL 8.0 Operational ChangesMySQL 8.0 Operational Changes
MySQL 8.0 Operational ChangesDave Stokes
 
cPanel now supports MySQL 8.0 - My Top Seven Features
cPanel now supports MySQL 8.0 - My Top Seven FeaturescPanel now supports MySQL 8.0 - My Top Seven Features
cPanel now supports MySQL 8.0 - My Top Seven FeaturesDave Stokes
 
A Step by Step Introduction to the MySQL Document Store
A Step by Step Introduction to the MySQL Document StoreA Step by Step Introduction to the MySQL Document Store
A Step by Step Introduction to the MySQL Document StoreDave Stokes
 
Discover The Power of NoSQL + MySQL with MySQL
Discover The Power of NoSQL + MySQL with MySQLDiscover The Power of NoSQL + MySQL with MySQL
Discover The Power of NoSQL + MySQL with MySQLDave Stokes
 

Mehr von Dave Stokes (20)

Json within a relational database
Json within a relational databaseJson within a relational database
Json within a relational database
 
Database basics for new-ish developers -- All Things Open October 18th 2021
Database basics for new-ish developers  -- All Things Open October 18th 2021Database basics for new-ish developers  -- All Things Open October 18th 2021
Database basics for new-ish developers -- All Things Open October 18th 2021
 
Php & my sql - how do pdo, mysq-li, and x devapi do what they do
Php & my sql  - how do pdo, mysq-li, and x devapi do what they doPhp & my sql  - how do pdo, mysq-li, and x devapi do what they do
Php & my sql - how do pdo, mysq-li, and x devapi do what they do
 
Longhorn PHP - MySQL Indexes, Histograms, Locking Options, and Other Ways to ...
Longhorn PHP - MySQL Indexes, Histograms, Locking Options, and Other Ways to ...Longhorn PHP - MySQL Indexes, Histograms, Locking Options, and Other Ways to ...
Longhorn PHP - MySQL Indexes, Histograms, Locking Options, and Other Ways to ...
 
MySQL 8.0 New Features -- September 27th presentation for Open Source Summit
MySQL 8.0 New Features -- September 27th presentation for Open Source SummitMySQL 8.0 New Features -- September 27th presentation for Open Source Summit
MySQL 8.0 New Features -- September 27th presentation for Open Source Summit
 
JavaScript and Friends August 20th, 20201 -- MySQL Shell and JavaScript
JavaScript and Friends August 20th, 20201 -- MySQL Shell and JavaScriptJavaScript and Friends August 20th, 20201 -- MySQL Shell and JavaScript
JavaScript and Friends August 20th, 20201 -- MySQL Shell and JavaScript
 
Open Source World June '21 -- JSON Within a Relational Database
Open Source World June '21 -- JSON Within a Relational DatabaseOpen Source World June '21 -- JSON Within a Relational Database
Open Source World June '21 -- JSON Within a Relational Database
 
Dutch PHP Conference 2021 - MySQL Indexes and Histograms
Dutch PHP Conference 2021 - MySQL Indexes and HistogramsDutch PHP Conference 2021 - MySQL Indexes and Histograms
Dutch PHP Conference 2021 - MySQL Indexes and Histograms
 
Validating JSON -- Percona Live 2021 presentation
Validating JSON -- Percona Live 2021 presentationValidating JSON -- Percona Live 2021 presentation
Validating JSON -- Percona Live 2021 presentation
 
Midwest PHP Presentation - New MSQL Features
Midwest PHP Presentation - New MSQL FeaturesMidwest PHP Presentation - New MSQL Features
Midwest PHP Presentation - New MSQL Features
 
Data Love Conference - Window Functions for Database Analytics
Data Love Conference - Window Functions for Database AnalyticsData Love Conference - Window Functions for Database Analytics
Data Love Conference - Window Functions for Database Analytics
 
Open Source 1010 and Quest InSync presentations March 30th, 2021 on MySQL Ind...
Open Source 1010 and Quest InSync presentations March 30th, 2021 on MySQL Ind...Open Source 1010 and Quest InSync presentations March 30th, 2021 on MySQL Ind...
Open Source 1010 and Quest InSync presentations March 30th, 2021 on MySQL Ind...
 
Confoo 2021 -- MySQL New Features
Confoo 2021 -- MySQL New FeaturesConfoo 2021 -- MySQL New Features
Confoo 2021 -- MySQL New Features
 
Confoo 2021 - MySQL Indexes & Histograms
Confoo 2021 - MySQL Indexes & HistogramsConfoo 2021 - MySQL Indexes & Histograms
Confoo 2021 - MySQL Indexes & Histograms
 
Datacon LA - MySQL without the SQL - Oh my!
Datacon LA - MySQL without the SQL - Oh my! Datacon LA - MySQL without the SQL - Oh my!
Datacon LA - MySQL without the SQL - Oh my!
 
MySQL Replication Update - DEbconf 2020 presentation
MySQL Replication Update - DEbconf 2020 presentationMySQL Replication Update - DEbconf 2020 presentation
MySQL Replication Update - DEbconf 2020 presentation
 
MySQL 8.0 Operational Changes
MySQL 8.0 Operational ChangesMySQL 8.0 Operational Changes
MySQL 8.0 Operational Changes
 
cPanel now supports MySQL 8.0 - My Top Seven Features
cPanel now supports MySQL 8.0 - My Top Seven FeaturescPanel now supports MySQL 8.0 - My Top Seven Features
cPanel now supports MySQL 8.0 - My Top Seven Features
 
A Step by Step Introduction to the MySQL Document Store
A Step by Step Introduction to the MySQL Document StoreA Step by Step Introduction to the MySQL Document Store
A Step by Step Introduction to the MySQL Document Store
 
Discover The Power of NoSQL + MySQL with MySQL
Discover The Power of NoSQL + MySQL with MySQLDiscover The Power of NoSQL + MySQL with MySQL
Discover The Power of NoSQL + MySQL with MySQL
 

Kürzlich hochgeladen

Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Alkin Tezuysal
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...panagenda
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Scott Andery
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...AliaaTarek5
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI AgeCprime
 

Kürzlich hochgeladen (20)

Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI Age
 

Tx lf propercareandfeedmysql

  • 1. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.2 Dave Stokes MySQL Community Manager slideshare.net/davestokes David.Stokes@Oracle.Com @stoker The Proper CareThe Proper Care and Feeding of aand Feeding of a MySQL DatabaseMySQL Database
  • 2. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.3
  • 3. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.4 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 decision. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle. Safe Harbor Statement
  • 4. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.5 Radiologists & Gorillas ● 83 Percent of Radiologists Didn’t Spot the Gorilla Hiding in This CT Scan – Picture of gorilla hidden in last slide of ten lung scans. – They wanted to see if the radiologists, focused on the telltale nodules, would be blind to the easily detectable and highly anomalous gorilla – The gorilla was miniscule, but huge compared to the nodules. It was about the size of a box of matches-or 48 times the size of a typical nodule.
  • 5. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.6 Gorillas responded
  • 6. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.7 Databases Do Not Play Well With Others Databases Systems are the colicky, nasty children of the software world with bad tempers and leaky noses that stubbornly insist on their way and will become disruptive at the most inopportune time, ruining man-years of work in an instant before demanding more --Said by just about every software developer ever
  • 7. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.8 So how do you get happy MySQL Servers? ● This session for those who are not MySQL DBAs but are tasked to take care of MySQL Instances among other tasks. This will not make you a DBA any more than a 1 hour session on programming will make you a programmer.
  • 8. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.9 How does a Database server work Client SELECT phone FROM friends WHERE name = ‘Joe’; Server
  • 9. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.10 How does a Database server work Client SELECT phone FROM friends WHERE name = ‘Joe’; Server PARSE find Joe in friends table in memory return phone
  • 10. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.11 How does a Database server work Client SELECT phone FROM friends WHERE name = ‘Joe’; . . . Process phone data Server PARSE find Joe in friends table in memory return phone
  • 11. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.12 How does a Database server work Client SELECT phone FROM friends WHERE name = ‘Joe’; . . . Process phone data Server PARSE find Joe in friends table in memory return phone What was that about memory???
  • 12. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.13 Thing to do #1 – Lots of memory • Databases love data in memory
  • 13. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.14 What if it is not in memory? MySQL Please give me the data from the city table OS
  • 14. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.15 What if it is not in memory? MySQL Please give me the data from the city table OS Get inode
  • 15. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.16 What if it is not in memory? MySQL Please give me the data from the city table OS Get inode Ask disk for data
  • 16. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.17 What if it is not in memory? MySQL Please give me the data from the city table OS Get inode Ask disk for data Get data into buffer
  • 17. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.18 What if it is not in memory? MySQL Please give me the data from the city table Load data into memory OS Get inode Ask disk for data Get data into buffer Hand buffer off
  • 18. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.19 What if it is not in memory? MySQL Please give me the data from the city table Load data into memory OS Get inode Ask disk for data Get data into buffer Hand buffer off Much longer than just reading from memory
  • 19. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.20 Thing to do #2 – Use Proper Hardware Databases have to do unpredictable queries, random I/O, and sequential scans so slow I/O kills performance. The ol' Hand-me-down Dell Opteron that was great for Windows ME that worked 'okay' in development will prove frustrating in production
  • 20. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.21 Buffers What happens when you read a file into memory DISK Disk Controller Page Cache User Buffer
  • 21. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.22 Buffers Memory Lookup – 100 nanoseconds, 12GB/sec DISK Disk Controller Page Cache User Buffer
  • 22. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.23 Buffers Memory Lookup – 100 nanoseconds, 12GB/sec DISK seek – 10 milliseconds, 760MB/sec DISK Disk Controller Page Cache User Buffer
  • 23. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.24 Disk Reads ● A disk read is 100,000 slower than reading memory ● For comparison – 100,000 minutes is about 69.5 days – 100,000 feet is about 19 miles – 100,000 kilometers is 15.7 times around Earth's equator
  • 24. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.27 SSD ● Use standard RAID controller ● SSD as writeback cache ● Battery backed ● $2.5/GB verses .075/GB ● Very fast seek time ● Density
  • 25. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.28 Hardware recommendations 1. Memory – lots of it, ecc 2. DISKs – more spindles, high speed, fast controllers, RAID 10, write back cache, and XFS/ZFS/ext4 not ext2/3 3. Write-through caches with battery backup units for disks must be monitored, and have life span much longer than planned outages. Set 'learning cycles' to off hours 4. CPUs, Core less important (spend money on Memory and IO)
  • 26. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.29 Thing to do #3 – Understand Login/Privs The default MySQL Login and Privilege system is a little … primitive. Be Stingy with privs as they are hard to get back Some tools may not give the privs you want – DROP PRIV is given by default by one popular admin tool
  • 27. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.30 Quick Security Warning! ● MySQL login security is primitive. ● Database mysql has users table ● 'jsmith'@'co.com' or 'fred'@'10.10.%' – Matches host, then user, then password ● Be explicit ● Proxy and Pluggable logins in MySQL 5.6 ● 'joe'@'10.10.%' may not be the same as 'joe'@'yourco.com' or 'joe'@'home.net' ● MySQL privilege security ● GRANT functions or access ● Can get Byzantine quickly ● Use a GUI
  • 28. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.31 MySQL Workbench – set up roles
  • 29. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.32 Things to do #4 – Use MySQL Current Release ● Speed – MySQL 5.5 is 20% faster than 5.1 – MySQL 5.6 is ~15% faster than 5.5 ● Features – Better optimizer – Sub-queries – NoSQL/memcached – Online DDL
  • 30. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.33 MySQL 5.6: Scalability ● Users can fully utilize latest generations of hardware and OS ● Scales as data volumes and users grow
  • 31. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.34 Thing to do #5 – Monitor ● You need 'something' monitoring your instances as you need a quick way to check status & record events – MySQL Enterprise Monitor – MySQL Workbench – Nagios, Cacti, phpMyAdmin, etc
  • 32. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.35 Turn on logging 1. Slow query log -- not all long running queries are bad 2. Log queries not using indexes 3. READ the logs!!! 4. Use monitoring software – MEM, Innotop, Cacti, Munin, Nagios, etc – and pay attention to it
  • 33. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.36 Just because you can not see all of the problem does not mean the problem is not there!
  • 34. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.37 Things to do #6 – Backups Backups are usually some sort of disk snap shot or serializing data to a file The more the better but you need to know steps to recover dropped table, lost databases, or mangled data. Use data replication to a slave and then backup slave. Be paranoid!!!!!
  • 35. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.38 Thing to do #7 -- Replication Replication for MySQL is the binary log for the master being copied to a slave. The slave then updates its copy of the data Two types: 1. Asynchronous – server does not check changes sent to slave before proceeding 2. Semi Synchronous – server checks that slave received changes before proceeding
  • 36. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.39 Replication – was messy! MySQL 5.6 is multi threaded and has GTIDs
  • 37. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.40  Simple to track & compare replication across the cluster ● Unique identifier for each transaction written to the Binlog  Automatically identify the most up-to-date slave for failover  Deploy n-tier replication hierarchies Master GTID=123456 GTID=123456 GTID=123456 GTID=123456 MySQL 5.6: Replication Global Transaction Ids Eliminates the need for complex 3rd party solutions
  • 38. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.41 Replication -- network Network latency will affect MySQL replication. So plan network topology to minimize bandwidth competition with other systems/services. Slaves do not need to be as fast as the master but try to keep things reasonably close Do not have to replicate all tables/databases to all slaves. Cut down on traffic by replicating what is needed!
  • 39. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.42 Writes & Reads Reads Reads • Write to one master • Read from many slaves, easily add more as needed • Perfect for read/write intensive apps Application MySQL Replication Load Balancer MySQL Database Replication Enables Scalability
  • 40. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.43  New option: binlog-row-image=minimal  Increases throughput for master and slave – Reduces Binlog size, memory & network bandwidth  Only replicates elements of the Row image that have changed Primary Key Changed Columns MySQL 5.6: Replication Optimized Row Base Replication
  • 41. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.44 Before: – Transaction Data: in tables – Replication Info: in files MySQL 5.6 – Transaction Data: in tables – Replication Info: in tables Data Position Info CRASH! Time Data Position Info Time  Automatic recovery of a slave after a failure ● Binlog and table data are transactionally consistent  Resumes replication without Dev/Op intervention ● Automatically rolling back replication to last committed event Atomic Atomic MySQL 5.6: Crash safe Slaves Eliminates risk of data loss or corruption
  • 42. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.45 Master # Slave # MySQL 5.6: Replication Event Checksums Eliminates risk of data loss or corruption  Ensures replicated data is correct, consistent and accessible  Detects corrupt replication events before they’re applied – Returns an error  Protects entire replication path – Memory – Disk – Network – Bugs
  • 43. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.46 Thing to do #8 – Use InnoDB ● Transactional, speedy, crash safe, and where Oracle is concentrating development. ● Online DDL, SSD Optimizations, Dump/Restore warm buffer pool (great for cloud) ● NoSQL access via memcached API
  • 44. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.47 ● Enables export/import of tables between running MySQL instances MySQL 5.6: InnoDB Transportable Tablespaces CREATE TABLE t(c1 INT) engine=InnoDB; FLUSH TABLE t FOR EXPORT; -- quiesce the table and create the meta data file $innodb_data_home_dir/test/t.cfg UNLOCK TABLES; Export: Import: CREATE TABLE t(c1 INT) engine=InnoDB; -- if it doesn't already exist ALTER TABLE t DISCARD TABLESPACE; -- The user must stop all updates on the tables, prior to the IMPORT ALTER TABLE t IMPORT TABLESPACE; ● Better Elasticity - Quickly spin up new instances to meet demand ● Great for Cloud, Hosted, SaaS, On-premise deployments
  • 45. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.48 Same app can leverage:  Key-value access to InnoDB via familiar Memcached API  SQL for rich queries, JOINs, FKs, etc.  Fully transactional MySQL 5.6: InnoDB NoSQL Key Value Access to InnoDB ● Up to 9x performance boost for updates ● Great for fast data ingestion in Big Data pipeline
  • 46. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.49 ● Subquery Optimizations ● File sort optimizations for most web use cases ● 4x better execution time – 40s to 10s  Index Condition Pushdown ● 160x better execution time – 15s to 90ms  Batched Key Access and Multi Range Read ● 280x better execution time – 2800s to 10s MySQL 5.6: Optimizer ● Better complex query execution times ever growing data sets (Big Data!) ● MEM + Query Analyzer key to utilizing full benefits of 5.6 Optimizer ● MySQL Consultative Support provides guidance on configuration
  • 47. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.50 Things to do #9 – Indexes Rough rule – look at columns used in joins or after a WHERE
  • 48. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.51 Indexes are good Without Index DB needs to scan entire table or table scan With Index DB can go right to record
  • 49. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.52 Indexes, the bad • Overhead -- space, speed, maintenance (you can have too many) • Not a panacea – does not cure all problems • Will not help if you need to perform a table scan • Composite indexes can be tricky – YearMonthDay usually better than DayMonthYear
  • 50. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.53 Slide to check if audience is still awake ● ● ●
  • 51. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.54 Thing to do #10 – Tuning Set innodb_buffer_pool_size to 70-80% of memory Turn off query cache
  • 52. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.55 Where to get help ● Lots of Help Available ● High Performance MySQL – Schwartz et al ● MySQL Administrator's Bible – Cabral ● Effective MySQL series – Bradford ● OurSQL podcast ● Forums.MySQL.Com Planet.MySQL.Com Local MySQL User Group
  • 53. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.56  Optimized for Web, Cloud-based, Embedded use cases  Simplified, Pluggable architecture – Maintainability, more extensible – More NoSQL options (HTTP, JSON, JavaScript, etc.)  Refactoring – Data Dictionary in InnoDB – Optimizer/Parser/Protocol  InnoDB – Optimized for SSD – GIS  Easy HA, Replication and Sharding MySQL Database Development Priorities
  • 54. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.57 MySQL Connect ConferenceMySQL Connect Conference ● Sept 21st - 23rd in San Francisco ● ● The Call for Proposals (CFP) for MySQL Connect 2013 just closed. Conference attendees will hear the best ideas from MySQL experts from around the globe: developers, visionaries, customers, partners. Book hotel early do to Americas Cup races in San Francisco.
  • 55. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.58 MySQL Marinate! Virtual self-study of MySQL through the Boston MySQL Users Group ( http://www.meetup.com/mysqlbos/) http://www.meetup.com/Virtual-Tech- Self-Study/events/84103332/
  • 56. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.59 Q&AQ&A David.Stokes@oracle.com - slideshare.net/davestokes