SlideShare a Scribd company logo
Copyright	
  ©	
  2014	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
How To Manage & Tune
MySQL
Mark Swarbrick
Principle Presales Consultant
MySQL Webinar Series 4/4
Copyright	
  ©	
  2014	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Safe	
  Harbor	
  Statement	
  
The	
  following	
  is	
  intended	
  to	
  outline	
  our	
  general	
  product	
  direcFon.	
  It	
  is	
  intended	
  for	
  
informaFon	
  purposes	
  only,	
  and	
  may	
  not	
  be	
  incorporated	
  into	
  any	
  contract.	
  It	
  is	
  not	
  a	
  
commitment	
  to	
  deliver	
  any	
  material,	
  code,	
  or	
  funcFonality,	
  and	
  should	
  not	
  be	
  relied	
  upon	
  
in	
  making	
  purchasing	
  decisions.	
  The	
  development,	
  release,	
  and	
  Fming	
  of	
  any	
  features	
  or	
  
funcFonality	
  described	
  for	
  Oracle’s	
  products	
  remains	
  at	
  the	
  sole	
  discreFon	
  of	
  Oracle.	
  
3	
  
Copyright	
  ©	
  2014	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Manage	
  &	
  Tune	
  MySQL	
  
Tuning	
  ConsideraFons	
  +	
  Go-­‐live	
  factors	
  to	
  consider	
  
Planning	
  for	
  outages	
  
Upgrading	
  MySQL	
  
	
  
	
  
4	
  
1	
  
2	
  
3	
  
Copyright	
  ©	
  2014	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Tuning	
  +	
  Go-­‐Live	
  
ConsideraFons	
  
5	
  
Copyright	
  ©	
  2014	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Performance	
  Tes0ng	
  –	
  How	
  to	
  measure	
  success	
  
Monitoring	
  –	
  Make	
  sure	
  you	
  are	
  monitoring	
  the	
  correct	
  metrics	
  
Backup	
  Strategy	
  –	
  Will	
  your	
  backups	
  be	
  suitable	
  for	
  purpose?	
  
High	
  Availability	
  –	
  Does	
  the	
  up;me	
  requirement	
  match	
  the	
  design?	
  
Failover	
  –	
  Have	
  you	
  got	
  the	
  policies	
  and	
  procedures	
  in	
  place	
  to	
  failover	
  to	
  
a	
  backup	
  data	
  center	
  or	
  server?	
  
Growth	
  –	
  Have	
  you	
  planned	
  for	
  growth	
  of	
  data	
  and	
  throughput?	
  
Tuning	
  –	
  How	
  to	
  tune	
  and	
  monitor	
  for	
  performance	
  
	
  	
  
6	
  
Copyright	
  ©	
  2014	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
MySQL	
  Performance	
  Schema	
  
•  IdenFfy	
  performance	
  boXlenecks	
  
•  IdenFfy	
  problemaFc	
  queries	
  	
  
•  Get	
  real	
  Fme	
  insight	
  into	
  locks	
  
•  See	
  exactly	
  what	
  is	
  happening	
  
within	
  MySQL	
  	
  
•  Get	
  real	
  Fme	
  insight	
  into	
  MySQL	
  
internals	
  	
  
•  Get	
  real	
  Fme	
  insight	
  into	
  query	
  
execuFons	
  
7	
  
mysql>	
  select	
  *	
  from	
  host_summary_by_stages;	
  
+-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+	
  
|	
  host	
  |	
  event_name	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  total	
  |	
  wait_sum	
  	
  |	
  wait_avg	
  	
  |	
  	
  
+-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+	
  
|	
  hal	
  	
  |	
  stage/sql/Opening	
  tables	
  	
  	
  	
  	
  	
  	
  |	
  	
  	
  889	
  |	
  1.97	
  ms	
  	
  	
  |	
  2.22	
  us	
  	
  	
  |	
  	
  
|	
  hal	
  	
  |	
  stage/sql/Creating	
  sort	
  index	
  	
  |	
  	
  	
  	
  	
  4	
  |	
  1.79	
  ms	
  	
  	
  |	
  446.30	
  us	
  |	
  	
  
|	
  hal	
  	
  |	
  stage/sql/init	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  	
  	
  	
  10	
  |	
  312.27	
  us	
  |	
  31.23	
  us	
  	
  |	
  	
  
|	
  hal	
  	
  |	
  stage/sql/checking	
  permissions	
  |	
  	
  	
  	
  10	
  |	
  300.62	
  us	
  |	
  30.06	
  us	
  	
  |	
  	
  
|	
  hal	
  	
  |	
  stage/sql/freeing	
  items	
  	
  	
  	
  	
  	
  	
  	
  |	
  	
  	
  	
  	
  5	
  |	
  85.89	
  us	
  	
  |	
  17.18	
  us	
  	
  |	
  	
  
|	
  hal	
  	
  |	
  stage/sql/statistics	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  	
  	
  	
  	
  5	
  |	
  79.15	
  us	
  	
  |	
  15.83	
  us	
  	
  |	
  	
  
|	
  hal	
  	
  |	
  stage/sql/preparing	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  	
  	
  	
  	
  5	
  |	
  69.12	
  us	
  	
  |	
  13.82	
  us	
  	
  |	
  	
  
|	
  hal	
  	
  |	
  stage/sql/optimizing	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  	
  	
  	
  	
  5	
  |	
  53.11	
  us	
  	
  |	
  10.62	
  us	
  	
  |	
  	
  
|	
  hal	
  	
  |	
  stage/sql/Sending	
  data	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  	
  	
  	
  	
  5	
  |	
  44.66	
  us	
  	
  |	
  8.93	
  us	
  	
  	
  |	
  	
  
|	
  hal	
  	
  |	
  stage/sql/closing	
  tables	
  	
  	
  	
  	
  	
  	
  |	
  	
  	
  	
  	
  5	
  |	
  37.54	
  us	
  	
  |	
  7.51	
  us	
  	
  	
  |	
  	
  
|	
  hal	
  	
  |	
  stage/sql/System	
  lock	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  	
  	
  	
  	
  5	
  |	
  34.28	
  us	
  	
  |	
  6.86	
  us	
  	
  	
  |	
  	
  
|	
  hal	
  	
  |	
  stage/sql/query	
  end	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  	
  	
  	
  	
  5	
  |	
  24.37	
  us	
  	
  |	
  4.87	
  us	
  	
  	
  |	
  	
  
|	
  hal	
  	
  |	
  stage/sql/end	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  	
  	
  	
  	
  5	
  |	
  8.60	
  us	
  	
  	
  |	
  1.72	
  us	
  	
  	
  |	
  	
  
|	
  hal	
  	
  |	
  stage/sql/Sorting	
  result	
  	
  	
  	
  	
  	
  	
  |	
  	
  	
  	
  	
  5	
  |	
  8.33	
  us	
  	
  	
  |	
  1.67	
  us	
  	
  	
  |	
  	
  
|	
  hal	
  	
  |	
  stage/sql/executing	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  	
  	
  	
  	
  5	
  |	
  5.37	
  us	
  	
  	
  |	
  1.07	
  us	
  	
  	
  |	
  	
  
|	
  hal	
  	
  |	
  stage/sql/cleaning	
  up	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  	
  	
  	
  	
  5	
  |	
  4.60	
  us	
  	
  	
  |	
  919.00	
  ns	
  |	
  	
  
+-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+	
  
Copyright	
  ©	
  2014	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
MySQL	
  Workbench	
  Overview	
  
•  MySQL	
  Database	
  IDE	
  
•  Millions	
  of	
  Downloads	
  
•  Windows,	
  OS	
  X,	
  Linux	
  
Copyright	
  ©	
  2014	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Workbench	
  6.0	
  
New	
  Look,	
  Redesigned	
  GUI,	
  Simplified	
  Workflow	
  
•  Home	
  Screen,	
  Managing	
  ConnecFons,	
  Edit	
  &	
  Admin,	
  Color	
  Scheme,	
  Icons	
  
For	
  Developers	
  
•  Schema	
  Inspector,	
  Maintenance,	
  Cascading	
  Delete,	
  VerFcal	
  Results,	
  Table	
  Data	
  Search,	
  Context	
  SensiFve	
  Help,	
  Table	
  Templates	
  
For	
  MigraFon	
  
•  New	
  Sybase	
  Anywhere,	
  SQLite	
  
For	
  Administrators	
  
•  Server	
  Status	
  /	
  Server	
  Data,	
  Backup	
  GUI,	
  Audit	
  Log	
  Inspector	
  
For	
  Design	
  
•  Improved	
  SynchronizaFon,	
  Improved	
  model	
  prinFng	
  to	
  PDF	
  files	
  
What’s	
  New	
  
	
  
Copyright	
  ©	
  2014	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Performance	
  Tasks	
  
In	
  Workbench	
  
Monitor	
  
Assess	
  
OpFmize	
  Tune	
  
Configure	
  
Copyright	
  ©	
  2014	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Start by looking at Server Status
§  Management	
  Tab	
  –	
  Server	
  Status	
  
Copyright	
  ©	
  2014	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Basics	
  
•  Enabled/Disabled	
  
Features	
  
§  Directory	
  Setup	
  
§  On	
  best	
  disks?	
  
§  Adequate	
  space?	
  
§  Slow	
  Query	
  Log	
  On?	
  
Copyright	
  ©	
  2014	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Performance	
  Tes0ng	
  –	
  How	
  to	
  measure	
  success	
  
Monitoring	
  –	
  Make	
  sure	
  you	
  are	
  monitoring	
  the	
  correct	
  metrics	
  
	
  
Availability	
  
Use	
  a	
  decent	
  query	
  
	
  
Logs	
  
Logs	
  filling	
  up	
  disk	
  space	
  
Slow	
  query	
  log	
  filling	
  space	
  
	
  
Disk	
  Space	
  
Disks	
  geing	
  full	
  is	
  the	
  most	
  common	
  problem	
  
Ideally	
  alarm	
  on	
  how	
  soon	
  disk	
  space	
  changes	
  rather	
  than	
  absolute	
  disk	
  space	
  
13	
  
Copyright	
  ©	
  2014	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Performance	
  Tes0ng	
  –	
  How	
  to	
  measure	
  success	
  
Monitoring	
  –	
  Make	
  sure	
  you	
  are	
  monitoring	
  the	
  correct	
  metrics	
  
	
  
Stalls	
  /	
  Spikes	
  
Table	
  Locks	
  
CPU	
  Spikes	
  
Memory	
  Paging	
  
	
  
Connec0ons	
  
Are	
  you	
  reaching	
  max_connecFons	
  limit?	
  
Can	
  the	
  applicaFon	
  connect?	
  
	
  
Processes	
  
Long	
  running	
  Processes	
  
14	
  
Copyright	
  ©	
  2014	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Performance	
  Tes0ng	
  –	
  How	
  to	
  measure	
  success	
  
Monitoring	
  –	
  Make	
  sure	
  you	
  are	
  monitoring	
  the	
  correct	
  metrics	
  
	
  
Transac0ons	
  
Long	
  running	
  or	
  long	
  idle	
  transacFons	
  
Queued	
  transacFons	
  (size	
  of	
  trans	
  queue)	
  (show	
  innodb	
  status)	
  
	
  
Replica0on	
  
Is	
  ReplicaFon	
  running	
  
Whats	
  the	
  replicaFon	
  lag	
  
	
  
	
  
15	
  
Copyright	
  ©	
  2014	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Performance	
  Tes0ng	
  –	
  How	
  to	
  measure	
  success	
  
Monitoring	
  –	
  Make	
  sure	
  you	
  are	
  monitoring	
  the	
  correct	
  metrics	
  
	
  
Query	
  Performance	
  
Top	
  Queries	
  to	
  opFmise	
  –	
  (interacFve	
  monitor	
  not	
  generate	
  alerts	
  on)	
  
Response	
  Fme	
  outliers	
  	
  
Queries	
  not	
  using	
  index	
  
Queries	
  using	
  full/	
  parFal	
  scans	
  /	
  table	
  scans	
  
Queries	
  that	
  return	
  errors	
  /	
  warning	
  
	
  
Opera0onal	
  Aspects	
  
Server	
  restarts	
  
Server	
  config	
  change	
  events	
  
Messages	
  in	
  the	
  error	
  Log	
  
16	
  
Copyright	
  ©	
  2014	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Backup	
  Strategy	
  –	
  Will	
  your	
  backups	
  be	
  suitable	
  for	
  purpose	
  
MySQLdump	
  -­‐	
  	
  It	
  can	
  be	
  used	
  to	
  dump	
  a	
  database	
  or	
  a	
  collecFon	
  of	
  databases	
  for	
  backup	
  or	
  transfer	
  to	
  
another	
  SQL	
  server	
  (not	
  necessarily	
  a	
  MySQL	
  server).	
  The	
  dump	
  typically	
  contains	
  SQL	
  statements	
  to	
  
create	
  the	
  table,	
  populate	
  it,	
  or	
  both.	
  However,	
  
mysqldumpcan	
  also	
  be	
  used	
  to	
  generate	
  files	
  in	
  CSV,	
  other	
  delimited	
  text,	
  or	
  XML	
  format.	
  
MySQL	
  Enterprise	
  Backup	
  -­‐	
  "Hot"	
  Online	
  Backups	
  -­‐	
  Backups	
  take	
  place	
  enFrely	
  online,	
  without	
  
interrupFng	
  MySQL	
  transacFons	
  
High	
  Performance	
  -­‐	
  Save	
  Fme	
  with	
  faster	
  backup	
  and	
  recovery	
  
Incremental	
  Backup	
  -­‐	
  Backup	
  only	
  data	
  that	
  has	
  changed	
  since	
  the	
  last	
  backup	
  
ParFal	
  Backup	
  -­‐	
  Target	
  parFcular	
  tables	
  or	
  tablespaces	
  
Full	
  Instance	
  Backup	
  -­‐	
  Backs	
  up	
  data,	
  as	
  well	
  as	
  configuraFon	
  and	
  other	
  informaFon	
  to	
  easily	
  create	
  a	
  
complete	
  "replica"	
  
	
   17	
  
MySQL	
  Backup	
  Types:	
  Comparison	
  
	
  
	
  
mysqldump	
   LVM	
  Snapshots	
   MySQL	
  Replica0on	
   MySQL	
  Enterprise	
  Backup	
  
Full	
  Backup	
  
	
  
✔	
   ✔	
   ✔	
   ✔	
  
Incremental	
  Backups	
   ✖	
   ✔	
   ✖	
   ✔	
  
Par0al	
  Backups	
   ✔	
   ✖	
   ✖	
   ✔	
  
Compression	
  Support	
   ✖	
   ✖	
   ✖	
   ✔	
  
Allows	
  updates	
   ✖	
   ✖	
   ✔	
   ✔	
  
Point	
  in	
  Time	
  -­‐	
  Consistent	
   ✖	
   ✔	
   ✔	
   ✔	
  
Backup	
  Speed	
   Poor	
   Good	
   Very	
  Good	
   Very	
  Good	
  
Recovery	
  Speed	
   Very	
  Poor	
   Good	
   Very	
  Good	
   Very	
  Good	
  
Par0al	
  Restore	
   ✔	
   ✖	
   ✖	
   ✔	
  
LZ4	
  Compression	
   ✖	
   ✔	
  
AES	
  256	
  Encryp0on	
   ✖	
   ✔	
  
Corrup0on	
  Detec0on	
   ✔	
   ✖	
   ✖	
   ✔	
  
Meets	
  Regulatory	
  Archive	
  
Req.	
  
✔	
   ✖	
   ✖	
   ✔	
  
Supports	
  DDL	
   ✔	
   ✖	
   ✖	
   ✔	
  
Copyright	
  ©	
  2014	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
High	
  Availability	
  –	
  Does	
  the	
  up;me	
  requirements	
  match	
  the	
  design?	
  
	
  
See	
  Planning	
  for	
  outages	
  sec;on	
  ;-­‐)	
  But	
  always	
  good	
  to	
  refer	
  back	
  to	
  the	
  
original	
  design	
  spec!	
  
19	
  
Copyright	
  ©	
  2014	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Failover	
  –	
  Have	
  you	
  got	
  the	
  policies	
  and	
  
procedures	
  in	
  place	
  to	
  failover	
  to	
  a	
  backup	
  
data	
  center	
  or	
  server?	
  
	
  
Most	
  HA	
  strategies	
  fail	
  not	
  due	
  to	
  the	
  
hardware	
  or	
  sooware,	
  but	
  to	
  the	
  lack	
  of	
  
awareness	
  and	
  tesFng	
  of	
  policies	
  and	
  
procedures	
  in	
  place!	
  
20	
  
Copyright	
  ©	
  2014	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Growth	
  –	
  Have	
  you	
  planned	
  for	
  growth	
  of	
  data	
  and	
  throughput?	
  
	
  	
  
21	
  
Copyright	
  ©	
  2014	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Tuning	
  –	
  How	
  to	
  tune	
  and	
  monitor	
  for	
  performance	
  
	
  	
  
22	
  
Hardware	
  
Config	
  OpFons	
  
Schema	
  
InnoDB	
  
Performance	
  Monitoring	
  
Copyright	
  ©	
  2014	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Hardware
Schema Changes
Data Growth
Indexes
SQL
90%	
  of	
  	
  
Performance	
  Problems	
  	
  
	
  
Source	
  of	
  Database	
  Performance	
  Problems	
  
23	
  
Hardware:	
  The	
  Perfect	
  MySQL	
  Server	
  
•  The	
  more	
  cores	
  the	
  beXer	
  (especially	
  for	
  5.5	
  and	
  later)	
  
•  x86_64	
  -­‐	
  64	
  bit	
  for	
  more	
  memory	
  is	
  important	
  
–  The	
  more	
  the	
  beXer	
  
•  Fast	
  HD	
  (10-­‐15k	
  RPM	
  SATA)	
  or	
  NAS/SAN……	
  
–  RAID	
  10	
  for	
  most,	
  RAID	
  5	
  OK	
  if	
  very	
  read	
  intensive	
  
–  Hardware	
  RAID	
  baXery	
  backed	
  up	
  cache	
  criFcal!	
  
–  More	
  disks	
  are	
  always	
  beXer!	
  -­‐	
  4+	
  recommended,	
  8-­‐16	
  can	
  increase	
  IO	
  
•  …Or	
  SSD	
  (for	
  higher	
  throughput)	
  
–  Intel,	
  Fusion-­‐IO	
  good	
  choices;	
  good	
  opFon	
  for	
  Slaves	
  
•  At	
  least	
  2	
  x	
  NICs	
  for	
  redundancy	
  
•  Slaves	
  should	
  be	
  as	
  powerful	
  as	
  the	
  Master	
  
Config	
  OpFons	
  
The	
  MySQL	
  server	
  is	
  controlled	
  by	
   System	
  Variables 























	
•  Set	
  Via:	
  
–  my.cnf	
  /	
  my.ini	
  
–  SET	
  [GLOBAL]	
  <variable>=<value>	
  
–  client,	
  i.e	
  mysql	
  
•  Can	
  be	
  local	
  (session)	
  or	
  global	
  
The World s Most Popular Open Source DatabaseCopyright 2010 Oracle
The World s Most Popular Open Source DatabaseCopyright 2010 Oracle
Schemas

	
•  Size	
  =	
  performance,	
  smaller	
  is	
  beXer	
  
–  Size	
  right!	
  Do	
  not	
  automaFcally	
  use	
  255	
  for	
  VARCHAR	
  
•  Temp	
  tables,	
  most	
  caches,	
  expand	
  to	
  full	
  size	
  
•  Use	
   procedure	
  analyse 	
  to	
  determine	
  the	
  opFmal	
  types	
  given	
  the	
  values	
  in	
  your	
  table	
  
–  hXp://dev.mysql.com/doc/refman/5.1/en/procedure-­‐analyse.html	
  
–  mysql>	
  select	
  *	
  from	
  tab	
  procedure	
  analyse	
  (64,2000)	
  G	
  
•  Consider	
  the	
  types:	
  
–  enum	
  :	
  hXp://dev.mysql.com/doc/refman/5.1/en/enum.html	
  	
  
–  set	
  :	
  hXp://dev.mysql.com/doc/refman/5.1/en/set.html	
  	
  
•  Compress	
  large	
  strings	
  
–  Use	
  the	
  MySQL	
  COMPRESS	
  and	
  UNCOMPRESS	
  funcFons	
  
The World s Most Popular Open Source DatabaseCopyright 2010 Oracle
InnoDB	
  Tuning	
  
	
  
•  Unlike	
  MyISAM	
  -­‐	
  	
  InnoDB	
  uses	
  a	
  single	
  cache	
  for	
  both	
  index	
  and	
  data	
  
–  innodb_buffer_pool_size	
  -­‐	
  should	
  be	
  70-­‐80%	
  of	
  available	
  memory.	
  
–  It	
  is	
  not	
  uncommon	
  for	
  this	
  to	
  be	
  very	
  large,	
  i.e.	
  34GB	
  on	
  a	
  system	
  with	
  40GB	
  of	
  memory	
  
–  Make	
  sure	
  its	
  not	
  set	
  so	
  large	
  as	
  to	
  cause	
  swapping!	
  
–  mysql>show	
  status	
  like	
  'Innodb_buffer%'	
  ;	
  
•  InnoDB	
  can	
  use	
  direct	
  IO	
  on	
  systems	
  that	
  support	
  it	
  -­‐	
  Linux,	
  FreeBSD,	
  and	
  Solaris	
  
–  innodb_flush_method	
  =	
  O_DIRECT	
  
•  For	
  more	
  InnoDB	
  tuning	
  see	
  
–  hXp://dev.mysql.com/doc/refman/5.1/en/innodb-­‐tuning-­‐troubleshooFng.html	
  	
  
A	
  Virtual	
  MySQL	
  DBA	
  Assistant!	
  
§  Web-­‐based,	
  global	
  view	
  of	
  MySQL/
Cluster	
  applicaFons	
  (on-­‐premise	
  and	
  
Cloud	
  deployments)	
  
§  Automated,	
  rules-­‐based	
  monitoring	
  
and	
  alerts	
  (SMTP,	
  SNMP	
  enabled)	
  
§  Query	
  capture,	
  monitoring,	
  analysis	
  
and	
  tuning,	
  correlated	
  with	
  Monitor	
  
graphs	
  
§  Real-­‐Fme	
  ReplicaFon	
  Monitor	
  with	
  
auto-­‐discovery	
  of	
  master-­‐slave	
  
topologies	
  
§  Integrated	
  with	
  Oracle	
  Support	
  
MySQL	
  Enterprise	
  Monitor	
  
Copyright	
  ©	
  2014	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Planning	
  For	
  Outages	
  
29	
  
Copyright © 2012, Oracle and/or its affiliates. All rights reserved. September 29th, 2012
The	
  Lowdown	
  on	
  Down0me….	
  
MaintenanceFailures Disasters Operator / User
Revenue Customer Sat Employee Regulatory
CAUSE
EFFECT
IMPACT
Copyright © 2012, Oracle and/or its affiliates. All rights reserved. September 29th, 2012
HA	
  Considera0ons	
  
•  SLA	
  requirements	
  to	
  support	
  business	
  objecFves	
  
•  OperaFonal	
  capabiliFes	
  
•  Service	
  agility	
  &	
  Fme	
  to	
  market	
  
•  Budgetary	
  constraints	
  
Copyright © 2012, Oracle and/or its affiliates. All rights reserved. September 29th, 2012
Not	
  Everything	
  Needs	
  99.999%	
  Up0me	
  
•  Recovery	
  Time	
  ObjecFve	
  
–  Maximum	
  length	
  of	
  downFme	
  before	
  there	
  is	
  break	
  in	
  “business	
  conFnuity”	
  
•  Recovery	
  Point	
  ObjecFve	
  
–  Point	
  in	
  Fme	
  to	
  which	
  data	
  must	
  be	
  recovered	
  when	
  service	
  is	
  re-­‐established	
  
•  Tier	
  1,	
  Mission-­‐criFcal	
  services	
  
•  Tier	
  2,	
  Business-­‐criFcal	
  services	
  
•  Tier	
  3,	
  Task-­‐criFcal	
  services	
  
•  Tier	
  4,	
  Non-­‐criFcal	
  services	
  
Copyright © 2012, Oracle and / or its affiliates. All rights reserved. September 29th, 2012
What	
  are	
  the	
  Business	
  HA	
  requirements?	
  
Typical Availability levels
Copyright © 2012, Oracle and / or its affiliates. All rights reserved. September 29th, 2012
High	
  Availability	
  Solu0ons	
  
MySQL	
  CGE	
  with	
  Geo-­‐ReplicaFon	
  
MySQL	
  Carrier	
  Grade	
  EdiFon	
  (aka	
  MySQL	
  Cluster)	
  
Shared	
  storage	
  cluster	
  
DRBD	
  with	
  clustering	
  sooware	
  
MySQL	
  ReplicaFon	
  with	
  clustering	
  sooware	
  
MySQL	
  ReplicaFon	
  
Best	
  PracFce	
  AdministraFon	
  
Copyright © 2012, Oracle and/or its affiliates. All rights reserved. September 29th, 2012
Mapping	
  Up0me	
  to	
  Availability	
  
%"9" 9" 9" 9"9"
35 days 4 days 50 mins 5 mins8 hours
Cost&Complexity
SPs &
Line of
Business
Web &
Cloud
Services
eCommerce
Telecoms
Military
.
Shared-Nothing,
Geo-Replicated
Clusters
Clustered &
Virtualized Systems
Replicated Systems
Copyright © 2012, Oracle and / or its affiliates. All rights reserved. September 29th, 2012
HA	
  Comparison	
  Chart	
  
Overall
HA *1
Manual
failover
autom.
f/o
Active/
Active
RPO *1 RTO *1 No
SPOF
DR
MySQL 90.000% ü*2 ? ?
Best Practice 95.000% ü *2 1d 2h
MySQL Replication 98.000% ü ü *3 ü *4 1m 30m
MySQL semi-sync Repl. 98.000% ü ü *3 ü *4 0s 30m
DRBD 99.000% ü ü 0s 2m ü
DRBD + Geo Repl. 99.500% ü ü 0s 2m ü ü
Shared Storage 99.900% ü ü 0s 1m ü *5
Shared Storage + Geo Repl. 99.950% ü ü 0s 1m ü *5 ü
MySQL Cluster 99.990% ü ü ü 0s 0,1s ü
MySQL Cluster + Geo Repl. 99.999% ü ü ü 0s 0,1s ü ü
	
  *1	
  Only	
  guidelines 	
   	
  *3	
  Requires	
  addiFonal	
  cluster	
  framework	
  s/w 	
  *5	
  Requires	
  special	
  hardware	
  
	
  *2	
  Requires	
  backup/restore 	
  *4	
  Slaves	
  can	
  be	
  used	
  read-­‐only	
  
	
  
Copyright	
  ©	
  2014	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Upgrading	
  MySQL	
  
37	
  
Copyright	
  ©	
  2014	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
   38	
  
MySQL	
  Repo’s	
  
	
  
YUM	
  -­‐	
  MySQL	
  Yum	
  repository	
  supports	
  the	
  following	
  Linux	
  Distros:	
  
Red	
  Hat	
  Enterprise	
  Linux	
  5,6,7	
  /	
  Oracle	
  Linux	
  5,6,7	
  
Fedora	
  18,	
  19,	
  and	
  20	
  
	
  
MySQL	
  APT	
  -­‐	
  	
  The	
  MySQL	
  APT	
  repository	
  provides	
  a	
  simple	
  and	
  convenient	
  way	
  to	
  install	
  and	
  update	
  MySQL	
  
products	
  with	
  the	
  latest	
  sooware	
  packages	
  using	
  Apt.	
  
The	
  APT	
  repository	
  supports	
  the	
  following	
  Linux	
  Distros:	
  
Debian	
  –	
  7,	
  Ubuntu	
  -­‐	
  12.04	
  LTS,	
  Ubuntu	
  -­‐	
  14.04	
  LTS,	
  Ubuntu	
  -­‐	
  14.10	
  
	
  
MySQL	
  SUSE	
  Repo	
  -­‐	
  The	
  MySQL	
  repository	
  for	
  SUSE	
  Linux	
  provides	
  a	
  simple	
  and	
  convenient	
  way	
  to	
  install	
  and	
  
update	
  MySQL	
  products	
  with	
  the	
  latest	
  sooware	
  packages	
  using	
  the	
  Zypper	
  package	
  management	
  tool.	
  
The	
  repository	
  at	
  this	
  Fme	
  supports	
  the	
  following	
  distro	
  versions:	
  
SLES	
  12	
  for	
  x86-­‐64	
  
SLES	
  11.3	
  for	
  x86-­‐64	
  
	
  
edelivery.oracle.com	
  –	
  All	
  Commerical	
  binaries	
  for	
  all	
  Oracle	
  Sooware.	
  RPM’s	
  and	
  tarball’s	
  available	
  for	
  most	
  
popular	
  distro’s	
  
	
  
dev.mysql.com	
  –	
  All	
  GPL	
  binaries	
  for	
  MySQL	
  including	
  source	
  tarballs.	
  
	
  
Copyright	
  ©	
  2014	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
   39	
  
Windows	
  Installer	
  
Copyright	
  ©	
  2014	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
   40	
  
Upgrade	
  Concepts	
  
•  Back	
  up	
  your	
  databases,	
  including	
  the	
  mysql	
  database	
  that	
  contains	
  the	
  grant	
  tables.	
  	
  
•  Read	
  all	
  the	
  notes	
  in	
  the	
  upgrade	
  package.	
  These	
  notes	
  enable	
  you	
  to	
  idenFfy	
  upgrade	
  issues	
  that	
  apply	
  to	
  
your	
  current	
  MySQL	
  installaFon.	
  	
  Some	
  incompaFbiliFes	
  discussed	
  in	
  that	
  secFon	
  require	
  your	
  aXenFon	
  
before	
  upgrading.	
  Others	
  require	
  some	
  acFon	
  aoer	
  upgrading.	
  
•  Read	
  the	
  Release	
  Notes	
  as	
  well,	
  which	
  provide	
  informaFon	
  about	
  features	
  that	
  are	
  new	
  in	
  MySQL	
  5.6	
  or	
  
differ	
  from	
  those	
  found	
  in	
  earlier	
  MySQL	
  releases.	
  
•  Aoer	
  upgrading	
  to	
  a	
  new	
  version	
  of	
  MySQL,	
  run	
  mysql_upgrade.	
  	
  This	
  program	
  checks	
  your	
  tables,	
  and	
  
aXempts	
  to	
  repair	
  them	
  if	
  necessary.	
  It	
  also	
  updates	
  your	
  grant	
  tables	
  to	
  make	
  sure	
  that	
  they	
  have	
  the	
  
current	
  structure	
  so	
  that	
  you	
  can	
  take	
  advantage	
  of	
  any	
  new	
  capabiliFes.	
  (Some	
  releases	
  of	
  MySQL	
  
introduce	
  changes	
  to	
  the	
  structure	
  of	
  the	
  grant	
  tables	
  to	
  add	
  new	
  privileges	
  or	
  features.)	
  
Copyright	
  ©	
  2014	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
   41	
  
Upgrade	
  Best	
  Prac0ces	
  
•  Use	
  virtualizaFon	
  snapshots	
  wherever	
  possible	
  for	
  easy	
  failback	
  
•  You	
  can	
  run	
  mulFple	
  versions	
  of	
  MySQL	
  on	
  the	
  same	
  server	
  in	
  different	
  
directories,	
  just	
  make	
  a	
  copy	
  of	
  the	
  data	
  files	
  for	
  easy	
  fallback	
  
•  Try	
  not	
  to	
  skip	
  versions	
  ie	
  upgrade	
  from	
  5.0	
  -­‐>	
  5.1	
  >	
  5.5	
  >	
  5.6	
  etc	
  
•  Read	
  the	
  release	
  notes	
  
•  Have	
  some	
  sample	
  queries	
  and	
  record	
  the	
  output	
  before	
  and	
  aoer	
  an	
  
upgrade.	
  
•  For	
  absolute	
  data	
  integrity	
  you	
  can	
  dump	
  the	
  data	
  out	
  of	
  the	
  old	
  version	
  
and	
  then	
  reimport	
  into	
  the	
  new	
  version	
  
Copyright	
  ©	
  2014	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Thank	
  You!	
  
42	
  
MySQL Webinar Series 4/4 - Manage & tune

More Related Content

What's hot

Power of the AWR Warehouse
Power of the AWR WarehousePower of the AWR Warehouse
Power of the AWR Warehouse
Kellyn Pot'Vin-Gorman
 
MySQL's Performance Schema, SYS Schema and Workbench Integration
MySQL's Performance Schema, SYS Schema and Workbench IntegrationMySQL's Performance Schema, SYS Schema and Workbench Integration
MySQL's Performance Schema, SYS Schema and Workbench IntegrationMario Beck
 
Performance Engineering Sterling MCS-OM - An Accenture Capability (3)
Performance Engineering Sterling MCS-OM - An Accenture Capability (3)Performance Engineering Sterling MCS-OM - An Accenture Capability (3)
Performance Engineering Sterling MCS-OM - An Accenture Capability (3)Guruprasad Nagaraja
 
Kellyn Pot'Vin-Gorman - Power awr warehouse2
Kellyn Pot'Vin-Gorman - Power awr warehouse2Kellyn Pot'Vin-Gorman - Power awr warehouse2
Kellyn Pot'Vin-Gorman - Power awr warehouse2
gaougorg
 
MySQL sys schema deep dive
MySQL sys schema deep diveMySQL sys schema deep dive
MySQL sys schema deep dive
Mark Leith
 
Oracle EM12c Release 4 New Features!
Oracle EM12c Release 4 New Features!Oracle EM12c Release 4 New Features!
Oracle EM12c Release 4 New Features!
Kellyn Pot'Vin-Gorman
 
AWR and ASH in an EM12c World
AWR and ASH in an EM12c WorldAWR and ASH in an EM12c World
AWR and ASH in an EM12c World
Kellyn Pot'Vin-Gorman
 
Basic MySQL Troubleshooting for Oracle DBAs
Basic MySQL Troubleshooting for Oracle DBAsBasic MySQL Troubleshooting for Oracle DBAs
Basic MySQL Troubleshooting for Oracle DBAs
Sveta Smirnova
 
Performance in the Oracle Cloud
Performance in the Oracle CloudPerformance in the Oracle Cloud
Performance in the Oracle Cloud
Kellyn Pot'Vin-Gorman
 
2.Oracle’S High Availability Vision
2.Oracle’S High Availability Vision2.Oracle’S High Availability Vision
2.Oracle’S High Availability VisionErmando
 
Oracle RAC - Customer Proven Scalability
Oracle RAC - Customer Proven ScalabilityOracle RAC - Customer Proven Scalability
Oracle RAC - Customer Proven Scalability
Markus Michalewicz
 
Oracle Traffic Director - a vital part of your Oracle infrastructure
Oracle Traffic Director - a vital part of your Oracle infrastructureOracle Traffic Director - a vital part of your Oracle infrastructure
Oracle Traffic Director - a vital part of your Oracle infrastructure
Simon Haslam
 
ODTUG Webinar AWR Warehouse
ODTUG Webinar AWR WarehouseODTUG Webinar AWR Warehouse
ODTUG Webinar AWR Warehouse
Kellyn Pot'Vin-Gorman
 
Zero Downtime for Oracle E-Business Suite on Oracle Exalogic
Zero Downtime for Oracle E-Business Suite on Oracle ExalogicZero Downtime for Oracle E-Business Suite on Oracle Exalogic
Zero Downtime for Oracle E-Business Suite on Oracle Exalogic
Paulo Fagundes
 
Kscope Not Your Father's Enterprise Manager
Kscope Not Your Father's Enterprise ManagerKscope Not Your Father's Enterprise Manager
Kscope Not Your Father's Enterprise Manager
Kellyn Pot'Vin-Gorman
 
Oracle RAC BP for Upgrade & More by Anil Nair and Markus Michalewicz
Oracle RAC BP for Upgrade & More by Anil Nair and Markus MichalewiczOracle RAC BP for Upgrade & More by Anil Nair and Markus Michalewicz
Oracle RAC BP for Upgrade & More by Anil Nair and Markus Michalewicz
Markus Michalewicz
 
Getting to Know MySQL Enterprise Monitor
Getting to Know MySQL Enterprise MonitorGetting to Know MySQL Enterprise Monitor
Getting to Know MySQL Enterprise Monitor
Mark Leith
 
Maximizing Oracle RAC Uptime
Maximizing Oracle RAC UptimeMaximizing Oracle RAC Uptime
Maximizing Oracle RAC Uptime
Markus Michalewicz
 
Using Machine Learning to Debug Oracle RAC Issues
Using Machine Learning to Debug Oracle RAC IssuesUsing Machine Learning to Debug Oracle RAC Issues
Using Machine Learning to Debug Oracle RAC Issues
Anil Nair
 
Power of the AWR Warehouse- HotSos Symposium 2015
Power of the AWR Warehouse-  HotSos Symposium 2015Power of the AWR Warehouse-  HotSos Symposium 2015
Power of the AWR Warehouse- HotSos Symposium 2015Kellyn Pot'Vin-Gorman
 

What's hot (20)

Power of the AWR Warehouse
Power of the AWR WarehousePower of the AWR Warehouse
Power of the AWR Warehouse
 
MySQL's Performance Schema, SYS Schema and Workbench Integration
MySQL's Performance Schema, SYS Schema and Workbench IntegrationMySQL's Performance Schema, SYS Schema and Workbench Integration
MySQL's Performance Schema, SYS Schema and Workbench Integration
 
Performance Engineering Sterling MCS-OM - An Accenture Capability (3)
Performance Engineering Sterling MCS-OM - An Accenture Capability (3)Performance Engineering Sterling MCS-OM - An Accenture Capability (3)
Performance Engineering Sterling MCS-OM - An Accenture Capability (3)
 
Kellyn Pot'Vin-Gorman - Power awr warehouse2
Kellyn Pot'Vin-Gorman - Power awr warehouse2Kellyn Pot'Vin-Gorman - Power awr warehouse2
Kellyn Pot'Vin-Gorman - Power awr warehouse2
 
MySQL sys schema deep dive
MySQL sys schema deep diveMySQL sys schema deep dive
MySQL sys schema deep dive
 
Oracle EM12c Release 4 New Features!
Oracle EM12c Release 4 New Features!Oracle EM12c Release 4 New Features!
Oracle EM12c Release 4 New Features!
 
AWR and ASH in an EM12c World
AWR and ASH in an EM12c WorldAWR and ASH in an EM12c World
AWR and ASH in an EM12c World
 
Basic MySQL Troubleshooting for Oracle DBAs
Basic MySQL Troubleshooting for Oracle DBAsBasic MySQL Troubleshooting for Oracle DBAs
Basic MySQL Troubleshooting for Oracle DBAs
 
Performance in the Oracle Cloud
Performance in the Oracle CloudPerformance in the Oracle Cloud
Performance in the Oracle Cloud
 
2.Oracle’S High Availability Vision
2.Oracle’S High Availability Vision2.Oracle’S High Availability Vision
2.Oracle’S High Availability Vision
 
Oracle RAC - Customer Proven Scalability
Oracle RAC - Customer Proven ScalabilityOracle RAC - Customer Proven Scalability
Oracle RAC - Customer Proven Scalability
 
Oracle Traffic Director - a vital part of your Oracle infrastructure
Oracle Traffic Director - a vital part of your Oracle infrastructureOracle Traffic Director - a vital part of your Oracle infrastructure
Oracle Traffic Director - a vital part of your Oracle infrastructure
 
ODTUG Webinar AWR Warehouse
ODTUG Webinar AWR WarehouseODTUG Webinar AWR Warehouse
ODTUG Webinar AWR Warehouse
 
Zero Downtime for Oracle E-Business Suite on Oracle Exalogic
Zero Downtime for Oracle E-Business Suite on Oracle ExalogicZero Downtime for Oracle E-Business Suite on Oracle Exalogic
Zero Downtime for Oracle E-Business Suite on Oracle Exalogic
 
Kscope Not Your Father's Enterprise Manager
Kscope Not Your Father's Enterprise ManagerKscope Not Your Father's Enterprise Manager
Kscope Not Your Father's Enterprise Manager
 
Oracle RAC BP for Upgrade & More by Anil Nair and Markus Michalewicz
Oracle RAC BP for Upgrade & More by Anil Nair and Markus MichalewiczOracle RAC BP for Upgrade & More by Anil Nair and Markus Michalewicz
Oracle RAC BP for Upgrade & More by Anil Nair and Markus Michalewicz
 
Getting to Know MySQL Enterprise Monitor
Getting to Know MySQL Enterprise MonitorGetting to Know MySQL Enterprise Monitor
Getting to Know MySQL Enterprise Monitor
 
Maximizing Oracle RAC Uptime
Maximizing Oracle RAC UptimeMaximizing Oracle RAC Uptime
Maximizing Oracle RAC Uptime
 
Using Machine Learning to Debug Oracle RAC Issues
Using Machine Learning to Debug Oracle RAC IssuesUsing Machine Learning to Debug Oracle RAC Issues
Using Machine Learning to Debug Oracle RAC Issues
 
Power of the AWR Warehouse- HotSos Symposium 2015
Power of the AWR Warehouse-  HotSos Symposium 2015Power of the AWR Warehouse-  HotSos Symposium 2015
Power of the AWR Warehouse- HotSos Symposium 2015
 

Viewers also liked

SQL Query Tuning: The Legend of Drunken Query Master
SQL Query Tuning: The Legend of Drunken Query MasterSQL Query Tuning: The Legend of Drunken Query Master
SQL Query Tuning: The Legend of Drunken Query Master
ZendCon
 
How to analyze and tune sql queries for better performance vts2016
How to analyze and tune sql queries for better performance vts2016How to analyze and tune sql queries for better performance vts2016
How to analyze and tune sql queries for better performance vts2016
oysteing
 
AP Calculus Test Chapter 1 September 25
AP Calculus Test Chapter 1 September 25AP Calculus Test Chapter 1 September 25
AP Calculus Test Chapter 1 September 25heviatar
 
maps.sputnik.ru #highload2014
maps.sputnik.ru #highload2014maps.sputnik.ru #highload2014
maps.sputnik.ru #highload2014
Maxim Dementyev
 
MySQL Manchester TT - Performance Tuning
MySQL Manchester TT  - Performance TuningMySQL Manchester TT  - Performance Tuning
MySQL Manchester TT - Performance Tuning
Mark Swarbrick
 
Mysql Optimization
Mysql OptimizationMysql Optimization
Mysql Optimization
Renato Shirakashi
 
Join-fu: The Art of SQL Tuning for MySQL
Join-fu: The Art of SQL Tuning for MySQLJoin-fu: The Art of SQL Tuning for MySQL
Join-fu: The Art of SQL Tuning for MySQL
ZendCon
 
Tuning Linux for your database FLOSSUK 2016
Tuning Linux for your database FLOSSUK 2016Tuning Linux for your database FLOSSUK 2016
Tuning Linux for your database FLOSSUK 2016
Colin Charles
 
Garbage Collection, Tuning And Monitoring JVM In EBS 11i And R12
Garbage Collection, Tuning And Monitoring JVM In EBS 11i And R12Garbage Collection, Tuning And Monitoring JVM In EBS 11i And R12
Garbage Collection, Tuning And Monitoring JVM In EBS 11i And R12sidg75
 
Webinar slides: MySQL Query Tuning Trilogy: Working with optimizer and SQL tu...
Webinar slides: MySQL Query Tuning Trilogy: Working with optimizer and SQL tu...Webinar slides: MySQL Query Tuning Trilogy: Working with optimizer and SQL tu...
Webinar slides: MySQL Query Tuning Trilogy: Working with optimizer and SQL tu...
Severalnines
 
MySQL Optimizer Overview
MySQL Optimizer OverviewMySQL Optimizer Overview
MySQL Optimizer OverviewMYXPLAIN
 
15 Ways to Kill Your Mysql Application Performance
15 Ways to Kill Your Mysql Application Performance15 Ways to Kill Your Mysql Application Performance
15 Ways to Kill Your Mysql Application Performance
guest9912e5
 
MySQL Performance Tuning. Part 1: MySQL Configuration (includes MySQL 5.7)
MySQL Performance Tuning. Part 1: MySQL Configuration (includes MySQL 5.7)MySQL Performance Tuning. Part 1: MySQL Configuration (includes MySQL 5.7)
MySQL Performance Tuning. Part 1: MySQL Configuration (includes MySQL 5.7)
Aurimas Mikalauskas
 
阿里云RDS for MySQL的若干优化
阿里云RDS for MySQL的若干优化阿里云RDS for MySQL的若干优化
阿里云RDS for MySQL的若干优化Lixun Peng
 
My SQL on Ceph
My SQL on CephMy SQL on Ceph
My SQL on Ceph
Red_Hat_Storage
 
Adtech x Scala x Performance tuning
Adtech x Scala x Performance tuningAdtech x Scala x Performance tuning
Adtech x Scala x Performance tuning
Yosuke Mizutani
 
How to Analyze and Tune MySQL Queries for Better Performance
How to Analyze and Tune MySQL Queries for Better PerformanceHow to Analyze and Tune MySQL Queries for Better Performance
How to Analyze and Tune MySQL Queries for Better Performance
oysteing
 
Tuning Java for Big Data
Tuning Java for Big DataTuning Java for Big Data
Tuning Java for Big Data
Scott Seighman
 
Java performance tuning
Java performance tuningJava performance tuning
Java performance tuning
Jerry Kurian
 
An Introduction to JVM Internals and Garbage Collection in Java
An Introduction to JVM Internals and Garbage Collection in JavaAn Introduction to JVM Internals and Garbage Collection in Java
An Introduction to JVM Internals and Garbage Collection in Java
Abhishek Asthana
 

Viewers also liked (20)

SQL Query Tuning: The Legend of Drunken Query Master
SQL Query Tuning: The Legend of Drunken Query MasterSQL Query Tuning: The Legend of Drunken Query Master
SQL Query Tuning: The Legend of Drunken Query Master
 
How to analyze and tune sql queries for better performance vts2016
How to analyze and tune sql queries for better performance vts2016How to analyze and tune sql queries for better performance vts2016
How to analyze and tune sql queries for better performance vts2016
 
AP Calculus Test Chapter 1 September 25
AP Calculus Test Chapter 1 September 25AP Calculus Test Chapter 1 September 25
AP Calculus Test Chapter 1 September 25
 
maps.sputnik.ru #highload2014
maps.sputnik.ru #highload2014maps.sputnik.ru #highload2014
maps.sputnik.ru #highload2014
 
MySQL Manchester TT - Performance Tuning
MySQL Manchester TT  - Performance TuningMySQL Manchester TT  - Performance Tuning
MySQL Manchester TT - Performance Tuning
 
Mysql Optimization
Mysql OptimizationMysql Optimization
Mysql Optimization
 
Join-fu: The Art of SQL Tuning for MySQL
Join-fu: The Art of SQL Tuning for MySQLJoin-fu: The Art of SQL Tuning for MySQL
Join-fu: The Art of SQL Tuning for MySQL
 
Tuning Linux for your database FLOSSUK 2016
Tuning Linux for your database FLOSSUK 2016Tuning Linux for your database FLOSSUK 2016
Tuning Linux for your database FLOSSUK 2016
 
Garbage Collection, Tuning And Monitoring JVM In EBS 11i And R12
Garbage Collection, Tuning And Monitoring JVM In EBS 11i And R12Garbage Collection, Tuning And Monitoring JVM In EBS 11i And R12
Garbage Collection, Tuning And Monitoring JVM In EBS 11i And R12
 
Webinar slides: MySQL Query Tuning Trilogy: Working with optimizer and SQL tu...
Webinar slides: MySQL Query Tuning Trilogy: Working with optimizer and SQL tu...Webinar slides: MySQL Query Tuning Trilogy: Working with optimizer and SQL tu...
Webinar slides: MySQL Query Tuning Trilogy: Working with optimizer and SQL tu...
 
MySQL Optimizer Overview
MySQL Optimizer OverviewMySQL Optimizer Overview
MySQL Optimizer Overview
 
15 Ways to Kill Your Mysql Application Performance
15 Ways to Kill Your Mysql Application Performance15 Ways to Kill Your Mysql Application Performance
15 Ways to Kill Your Mysql Application Performance
 
MySQL Performance Tuning. Part 1: MySQL Configuration (includes MySQL 5.7)
MySQL Performance Tuning. Part 1: MySQL Configuration (includes MySQL 5.7)MySQL Performance Tuning. Part 1: MySQL Configuration (includes MySQL 5.7)
MySQL Performance Tuning. Part 1: MySQL Configuration (includes MySQL 5.7)
 
阿里云RDS for MySQL的若干优化
阿里云RDS for MySQL的若干优化阿里云RDS for MySQL的若干优化
阿里云RDS for MySQL的若干优化
 
My SQL on Ceph
My SQL on CephMy SQL on Ceph
My SQL on Ceph
 
Adtech x Scala x Performance tuning
Adtech x Scala x Performance tuningAdtech x Scala x Performance tuning
Adtech x Scala x Performance tuning
 
How to Analyze and Tune MySQL Queries for Better Performance
How to Analyze and Tune MySQL Queries for Better PerformanceHow to Analyze and Tune MySQL Queries for Better Performance
How to Analyze and Tune MySQL Queries for Better Performance
 
Tuning Java for Big Data
Tuning Java for Big DataTuning Java for Big Data
Tuning Java for Big Data
 
Java performance tuning
Java performance tuningJava performance tuning
Java performance tuning
 
An Introduction to JVM Internals and Garbage Collection in Java
An Introduction to JVM Internals and Garbage Collection in JavaAn Introduction to JVM Internals and Garbage Collection in Java
An Introduction to JVM Internals and Garbage Collection in Java
 

Similar to MySQL Webinar Series 4/4 - Manage & tune

MySQL Tech Tour 2015 - Manage & Tune
MySQL Tech Tour 2015 - Manage & TuneMySQL Tech Tour 2015 - Manage & Tune
MySQL Tech Tour 2015 - Manage & Tune
Mark Swarbrick
 
MySQL Webinar Series 3/4 - MySQl Monitoring With Enterprise Monitor + Query A...
MySQL Webinar Series 3/4 - MySQl Monitoring With Enterprise Monitor + Query A...MySQL Webinar Series 3/4 - MySQl Monitoring With Enterprise Monitor + Query A...
MySQL Webinar Series 3/4 - MySQl Monitoring With Enterprise Monitor + Query A...
Mark Swarbrick
 
Mysql tech day_paris_ps_and_sys
Mysql tech day_paris_ps_and_sysMysql tech day_paris_ps_and_sys
Mysql tech day_paris_ps_and_sysMark Leith
 
Using MySQL Enterprise Monitor for Continuous Performance Improvement
Using MySQL Enterprise Monitor for Continuous Performance ImprovementUsing MySQL Enterprise Monitor for Continuous Performance Improvement
Using MySQL Enterprise Monitor for Continuous Performance Improvement
Mark Matthews
 
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
Mark Leith
 
20150110 my sql-performanceschema
20150110 my sql-performanceschema20150110 my sql-performanceschema
20150110 my sql-performanceschema
Ivan Ma
 
Netherlands Tech Tour - 06 MySQL Enterprise Monitor
Netherlands Tech Tour - 06 MySQL Enterprise MonitorNetherlands Tech Tour - 06 MySQL Enterprise Monitor
Netherlands Tech Tour - 06 MySQL Enterprise Monitor
Mark Swarbrick
 
Zero to Manageability in 60 Minutes: Building a Solid Foundation for Oracle E...
Zero to Manageability in 60 Minutes: Building a Solid Foundation for Oracle E...Zero to Manageability in 60 Minutes: Building a Solid Foundation for Oracle E...
Zero to Manageability in 60 Minutes: Building a Solid Foundation for Oracle E...
Courtney Llamas
 
MySQL Troubleshooting with the Performance Schema
MySQL Troubleshooting with the Performance SchemaMySQL Troubleshooting with the Performance Schema
MySQL Troubleshooting with the Performance Schema
Sveta Smirnova
 
Oracle super cluster for oracle e business suite
Oracle super cluster for oracle e business suiteOracle super cluster for oracle e business suite
Oracle super cluster for oracle e business suite
OTN Systems Hub
 
Netherlands Tech Tour 05 - Strategic Operationalization of MySQL
Netherlands Tech Tour 05 - Strategic Operationalization of MySQLNetherlands Tech Tour 05 - Strategic Operationalization of MySQL
Netherlands Tech Tour 05 - Strategic Operationalization of MySQL
Mark Swarbrick
 
MySQL 5.7: Performance Schema Improvements
MySQL 5.7: Performance Schema ImprovementsMySQL 5.7: Performance Schema Improvements
MySQL 5.7: Performance Schema Improvements
Mark Leith
 
Introduction to Distributed Computing & Distributed Databases
Introduction to Distributed Computing & Distributed DatabasesIntroduction to Distributed Computing & Distributed Databases
Introduction to Distributed Computing & Distributed Databases
Shankar Iyer
 
20190615 hkos-mysql-troubleshootingandperformancev2
20190615 hkos-mysql-troubleshootingandperformancev220190615 hkos-mysql-troubleshootingandperformancev2
20190615 hkos-mysql-troubleshootingandperformancev2
Ivan Ma
 
20141011 my sql clusterv01pptx
20141011 my sql clusterv01pptx20141011 my sql clusterv01pptx
20141011 my sql clusterv01pptx
Ivan Ma
 
Em13c New Features- Two of Two
Em13c New Features- Two of TwoEm13c New Features- Two of Two
Em13c New Features- Two of Two
Kellyn Pot'Vin-Gorman
 
Managing Oracle Solaris Systems with Puppet
Managing Oracle Solaris Systems with PuppetManaging Oracle Solaris Systems with Puppet
Managing Oracle Solaris Systems with Puppet
glynnfoster
 
MySql's NoSQL -- best of both worlds on the same disks
MySql's NoSQL -- best of both worlds on the same disksMySql's NoSQL -- best of both worlds on the same disks
MySql's NoSQL -- best of both worlds on the same disks
Dave Stokes
 
Oracle Enterprise Manager for MySQL
Oracle Enterprise Manager for MySQLOracle Enterprise Manager for MySQL
Oracle Enterprise Manager for MySQL
Mario Beck
 

Similar to MySQL Webinar Series 4/4 - Manage & tune (20)

MySQL Tech Tour 2015 - Manage & Tune
MySQL Tech Tour 2015 - Manage & TuneMySQL Tech Tour 2015 - Manage & Tune
MySQL Tech Tour 2015 - Manage & Tune
 
MySQL Webinar Series 3/4 - MySQl Monitoring With Enterprise Monitor + Query A...
MySQL Webinar Series 3/4 - MySQl Monitoring With Enterprise Monitor + Query A...MySQL Webinar Series 3/4 - MySQl Monitoring With Enterprise Monitor + Query A...
MySQL Webinar Series 3/4 - MySQl Monitoring With Enterprise Monitor + Query A...
 
MySQL NoSQL APIs
MySQL NoSQL APIsMySQL NoSQL APIs
MySQL NoSQL APIs
 
Mysql tech day_paris_ps_and_sys
Mysql tech day_paris_ps_and_sysMysql tech day_paris_ps_and_sys
Mysql tech day_paris_ps_and_sys
 
Using MySQL Enterprise Monitor for Continuous Performance Improvement
Using MySQL Enterprise Monitor for Continuous Performance ImprovementUsing MySQL Enterprise Monitor for Continuous Performance Improvement
Using MySQL Enterprise Monitor for Continuous Performance Improvement
 
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
 
20150110 my sql-performanceschema
20150110 my sql-performanceschema20150110 my sql-performanceschema
20150110 my sql-performanceschema
 
Netherlands Tech Tour - 06 MySQL Enterprise Monitor
Netherlands Tech Tour - 06 MySQL Enterprise MonitorNetherlands Tech Tour - 06 MySQL Enterprise Monitor
Netherlands Tech Tour - 06 MySQL Enterprise Monitor
 
Zero to Manageability in 60 Minutes: Building a Solid Foundation for Oracle E...
Zero to Manageability in 60 Minutes: Building a Solid Foundation for Oracle E...Zero to Manageability in 60 Minutes: Building a Solid Foundation for Oracle E...
Zero to Manageability in 60 Minutes: Building a Solid Foundation for Oracle E...
 
MySQL Troubleshooting with the Performance Schema
MySQL Troubleshooting with the Performance SchemaMySQL Troubleshooting with the Performance Schema
MySQL Troubleshooting with the Performance Schema
 
Oracle super cluster for oracle e business suite
Oracle super cluster for oracle e business suiteOracle super cluster for oracle e business suite
Oracle super cluster for oracle e business suite
 
Netherlands Tech Tour 05 - Strategic Operationalization of MySQL
Netherlands Tech Tour 05 - Strategic Operationalization of MySQLNetherlands Tech Tour 05 - Strategic Operationalization of MySQL
Netherlands Tech Tour 05 - Strategic Operationalization of MySQL
 
MySQL 5.7: Performance Schema Improvements
MySQL 5.7: Performance Schema ImprovementsMySQL 5.7: Performance Schema Improvements
MySQL 5.7: Performance Schema Improvements
 
Introduction to Distributed Computing & Distributed Databases
Introduction to Distributed Computing & Distributed DatabasesIntroduction to Distributed Computing & Distributed Databases
Introduction to Distributed Computing & Distributed Databases
 
20190615 hkos-mysql-troubleshootingandperformancev2
20190615 hkos-mysql-troubleshootingandperformancev220190615 hkos-mysql-troubleshootingandperformancev2
20190615 hkos-mysql-troubleshootingandperformancev2
 
20141011 my sql clusterv01pptx
20141011 my sql clusterv01pptx20141011 my sql clusterv01pptx
20141011 my sql clusterv01pptx
 
Em13c New Features- Two of Two
Em13c New Features- Two of TwoEm13c New Features- Two of Two
Em13c New Features- Two of Two
 
Managing Oracle Solaris Systems with Puppet
Managing Oracle Solaris Systems with PuppetManaging Oracle Solaris Systems with Puppet
Managing Oracle Solaris Systems with Puppet
 
MySql's NoSQL -- best of both worlds on the same disks
MySql's NoSQL -- best of both worlds on the same disksMySql's NoSQL -- best of both worlds on the same disks
MySql's NoSQL -- best of both worlds on the same disks
 
Oracle Enterprise Manager for MySQL
Oracle Enterprise Manager for MySQLOracle Enterprise Manager for MySQL
Oracle Enterprise Manager for MySQL
 

More from Mark Swarbrick

MySQL NoSQL Document Store
MySQL NoSQL Document StoreMySQL NoSQL Document Store
MySQL NoSQL Document Store
Mark Swarbrick
 
MySQL @ the University Of Nottingham
MySQL @ the University Of NottinghamMySQL @ the University Of Nottingham
MySQL @ the University Of Nottingham
Mark Swarbrick
 
InnoDb Vs NDB Cluster
InnoDb Vs NDB ClusterInnoDb Vs NDB Cluster
InnoDb Vs NDB Cluster
Mark Swarbrick
 
MySQL Security & GDPR
MySQL Security & GDPRMySQL Security & GDPR
MySQL Security & GDPR
Mark Swarbrick
 
Intro To MySQL 2019
Intro To MySQL 2019Intro To MySQL 2019
Intro To MySQL 2019
Mark Swarbrick
 
MySQL 8
MySQL 8MySQL 8
MySQL Dublin Event Nov 2018 - MySQL 8
MySQL Dublin Event Nov 2018 - MySQL 8MySQL Dublin Event Nov 2018 - MySQL 8
MySQL Dublin Event Nov 2018 - MySQL 8
Mark Swarbrick
 
MySQL Dublin Event Nov 2018 - State of the Dolphin
MySQL Dublin Event Nov 2018 - State of the DolphinMySQL Dublin Event Nov 2018 - State of the Dolphin
MySQL Dublin Event Nov 2018 - State of the Dolphin
Mark Swarbrick
 
Oracle Code Event - MySQL JSON Document Store
Oracle Code Event - MySQL JSON Document StoreOracle Code Event - MySQL JSON Document Store
Oracle Code Event - MySQL JSON Document Store
Mark Swarbrick
 
TLV - MySQL Security overview
TLV - MySQL Security overviewTLV - MySQL Security overview
TLV - MySQL Security overview
Mark Swarbrick
 
TLV - MySQL Enterprise Edition + Cloud
TLV - MySQL Enterprise Edition + CloudTLV - MySQL Enterprise Edition + Cloud
TLV - MySQL Enterprise Edition + Cloud
Mark Swarbrick
 
TLV - Whats new in MySQL 8
TLV - Whats new in MySQL 8TLV - Whats new in MySQL 8
TLV - Whats new in MySQL 8
Mark Swarbrick
 
MySQL At University Of Nottingham - 2018 MySQL Days
MySQL At University Of Nottingham - 2018 MySQL DaysMySQL At University Of Nottingham - 2018 MySQL Days
MySQL At University Of Nottingham - 2018 MySQL Days
Mark Swarbrick
 
MySQL At Mastercard - 2018 MySQL Days
MySQL At Mastercard - 2018 MySQL DaysMySQL At Mastercard - 2018 MySQL Days
MySQL At Mastercard - 2018 MySQL Days
Mark Swarbrick
 
MySQL 8 - 2018 MySQL Days
MySQL 8 - 2018 MySQL DaysMySQL 8 - 2018 MySQL Days
MySQL 8 - 2018 MySQL Days
Mark Swarbrick
 
MySQL Security + GDPR - 2018 MySQL Days
MySQL Security + GDPR - 2018 MySQL DaysMySQL Security + GDPR - 2018 MySQL Days
MySQL Security + GDPR - 2018 MySQL Days
Mark Swarbrick
 
MySQL InnoDB + NDB Cluster - 2018 MySQL Days
MySQL InnoDB + NDB Cluster - 2018 MySQL DaysMySQL InnoDB + NDB Cluster - 2018 MySQL Days
MySQL InnoDB + NDB Cluster - 2018 MySQL Days
Mark Swarbrick
 
MySQL Cloud - 2018 MySQL Days
MySQL Cloud - 2018 MySQL DaysMySQL Cloud - 2018 MySQL Days
MySQL Cloud - 2018 MySQL Days
Mark Swarbrick
 
MySQL 2018 Intro - 2018 MySQL Days
MySQL 2018 Intro - 2018 MySQL DaysMySQL 2018 Intro - 2018 MySQL Days
MySQL 2018 Intro - 2018 MySQL Days
Mark Swarbrick
 
MySQL + GDPR
MySQL + GDPRMySQL + GDPR
MySQL + GDPR
Mark Swarbrick
 

More from Mark Swarbrick (20)

MySQL NoSQL Document Store
MySQL NoSQL Document StoreMySQL NoSQL Document Store
MySQL NoSQL Document Store
 
MySQL @ the University Of Nottingham
MySQL @ the University Of NottinghamMySQL @ the University Of Nottingham
MySQL @ the University Of Nottingham
 
InnoDb Vs NDB Cluster
InnoDb Vs NDB ClusterInnoDb Vs NDB Cluster
InnoDb Vs NDB Cluster
 
MySQL Security & GDPR
MySQL Security & GDPRMySQL Security & GDPR
MySQL Security & GDPR
 
Intro To MySQL 2019
Intro To MySQL 2019Intro To MySQL 2019
Intro To MySQL 2019
 
MySQL 8
MySQL 8MySQL 8
MySQL 8
 
MySQL Dublin Event Nov 2018 - MySQL 8
MySQL Dublin Event Nov 2018 - MySQL 8MySQL Dublin Event Nov 2018 - MySQL 8
MySQL Dublin Event Nov 2018 - MySQL 8
 
MySQL Dublin Event Nov 2018 - State of the Dolphin
MySQL Dublin Event Nov 2018 - State of the DolphinMySQL Dublin Event Nov 2018 - State of the Dolphin
MySQL Dublin Event Nov 2018 - State of the Dolphin
 
Oracle Code Event - MySQL JSON Document Store
Oracle Code Event - MySQL JSON Document StoreOracle Code Event - MySQL JSON Document Store
Oracle Code Event - MySQL JSON Document Store
 
TLV - MySQL Security overview
TLV - MySQL Security overviewTLV - MySQL Security overview
TLV - MySQL Security overview
 
TLV - MySQL Enterprise Edition + Cloud
TLV - MySQL Enterprise Edition + CloudTLV - MySQL Enterprise Edition + Cloud
TLV - MySQL Enterprise Edition + Cloud
 
TLV - Whats new in MySQL 8
TLV - Whats new in MySQL 8TLV - Whats new in MySQL 8
TLV - Whats new in MySQL 8
 
MySQL At University Of Nottingham - 2018 MySQL Days
MySQL At University Of Nottingham - 2018 MySQL DaysMySQL At University Of Nottingham - 2018 MySQL Days
MySQL At University Of Nottingham - 2018 MySQL Days
 
MySQL At Mastercard - 2018 MySQL Days
MySQL At Mastercard - 2018 MySQL DaysMySQL At Mastercard - 2018 MySQL Days
MySQL At Mastercard - 2018 MySQL Days
 
MySQL 8 - 2018 MySQL Days
MySQL 8 - 2018 MySQL DaysMySQL 8 - 2018 MySQL Days
MySQL 8 - 2018 MySQL Days
 
MySQL Security + GDPR - 2018 MySQL Days
MySQL Security + GDPR - 2018 MySQL DaysMySQL Security + GDPR - 2018 MySQL Days
MySQL Security + GDPR - 2018 MySQL Days
 
MySQL InnoDB + NDB Cluster - 2018 MySQL Days
MySQL InnoDB + NDB Cluster - 2018 MySQL DaysMySQL InnoDB + NDB Cluster - 2018 MySQL Days
MySQL InnoDB + NDB Cluster - 2018 MySQL Days
 
MySQL Cloud - 2018 MySQL Days
MySQL Cloud - 2018 MySQL DaysMySQL Cloud - 2018 MySQL Days
MySQL Cloud - 2018 MySQL Days
 
MySQL 2018 Intro - 2018 MySQL Days
MySQL 2018 Intro - 2018 MySQL DaysMySQL 2018 Intro - 2018 MySQL Days
MySQL 2018 Intro - 2018 MySQL Days
 
MySQL + GDPR
MySQL + GDPRMySQL + GDPR
MySQL + GDPR
 

Recently uploaded

UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
DianaGray10
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
Pierluigi Pugliese
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
Neo4j
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex ProofszkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
Alex Pruden
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
nkrafacyberclub
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
James Anderson
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
Large Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial ApplicationsLarge Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial Applications
Rohit Gautam
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 

Recently uploaded (20)

UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex ProofszkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
Large Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial ApplicationsLarge Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial Applications
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 

MySQL Webinar Series 4/4 - Manage & tune

  • 1.
  • 2. Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   How To Manage & Tune MySQL Mark Swarbrick Principle Presales Consultant MySQL Webinar Series 4/4
  • 3. Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Safe  Harbor  Statement   The  following  is  intended  to  outline  our  general  product  direcFon.  It  is  intended  for   informaFon  purposes  only,  and  may  not  be  incorporated  into  any  contract.  It  is  not  a   commitment  to  deliver  any  material,  code,  or  funcFonality,  and  should  not  be  relied  upon   in  making  purchasing  decisions.  The  development,  release,  and  Fming  of  any  features  or   funcFonality  described  for  Oracle’s  products  remains  at  the  sole  discreFon  of  Oracle.   3  
  • 4. Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Manage  &  Tune  MySQL   Tuning  ConsideraFons  +  Go-­‐live  factors  to  consider   Planning  for  outages   Upgrading  MySQL       4   1   2   3  
  • 5. Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Tuning  +  Go-­‐Live   ConsideraFons   5  
  • 6. Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Performance  Tes0ng  –  How  to  measure  success   Monitoring  –  Make  sure  you  are  monitoring  the  correct  metrics   Backup  Strategy  –  Will  your  backups  be  suitable  for  purpose?   High  Availability  –  Does  the  up;me  requirement  match  the  design?   Failover  –  Have  you  got  the  policies  and  procedures  in  place  to  failover  to   a  backup  data  center  or  server?   Growth  –  Have  you  planned  for  growth  of  data  and  throughput?   Tuning  –  How  to  tune  and  monitor  for  performance       6  
  • 7. Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   MySQL  Performance  Schema   •  IdenFfy  performance  boXlenecks   •  IdenFfy  problemaFc  queries     •  Get  real  Fme  insight  into  locks   •  See  exactly  what  is  happening   within  MySQL     •  Get  real  Fme  insight  into  MySQL   internals     •  Get  real  Fme  insight  into  query   execuFons   7   mysql>  select  *  from  host_summary_by_stages;   +-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+   |  host  |  event_name                                          |  total  |  wait_sum    |  wait_avg    |     +-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+   |  hal    |  stage/sql/Opening  tables              |      889  |  1.97  ms      |  2.22  us      |     |  hal    |  stage/sql/Creating  sort  index    |          4  |  1.79  ms      |  446.30  us  |     |  hal    |  stage/sql/init                                  |        10  |  312.27  us  |  31.23  us    |     |  hal    |  stage/sql/checking  permissions  |        10  |  300.62  us  |  30.06  us    |     |  hal    |  stage/sql/freeing  items                |          5  |  85.89  us    |  17.18  us    |     |  hal    |  stage/sql/statistics                      |          5  |  79.15  us    |  15.83  us    |     |  hal    |  stage/sql/preparing                        |          5  |  69.12  us    |  13.82  us    |     |  hal    |  stage/sql/optimizing                      |          5  |  53.11  us    |  10.62  us    |     |  hal    |  stage/sql/Sending  data                  |          5  |  44.66  us    |  8.93  us      |     |  hal    |  stage/sql/closing  tables              |          5  |  37.54  us    |  7.51  us      |     |  hal    |  stage/sql/System  lock                    |          5  |  34.28  us    |  6.86  us      |     |  hal    |  stage/sql/query  end                        |          5  |  24.37  us    |  4.87  us      |     |  hal    |  stage/sql/end                                    |          5  |  8.60  us      |  1.72  us      |     |  hal    |  stage/sql/Sorting  result              |          5  |  8.33  us      |  1.67  us      |     |  hal    |  stage/sql/executing                        |          5  |  5.37  us      |  1.07  us      |     |  hal    |  stage/sql/cleaning  up                    |          5  |  4.60  us      |  919.00  ns  |     +-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+  
  • 8. Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   MySQL  Workbench  Overview   •  MySQL  Database  IDE   •  Millions  of  Downloads   •  Windows,  OS  X,  Linux  
  • 9. Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Workbench  6.0   New  Look,  Redesigned  GUI,  Simplified  Workflow   •  Home  Screen,  Managing  ConnecFons,  Edit  &  Admin,  Color  Scheme,  Icons   For  Developers   •  Schema  Inspector,  Maintenance,  Cascading  Delete,  VerFcal  Results,  Table  Data  Search,  Context  SensiFve  Help,  Table  Templates   For  MigraFon   •  New  Sybase  Anywhere,  SQLite   For  Administrators   •  Server  Status  /  Server  Data,  Backup  GUI,  Audit  Log  Inspector   For  Design   •  Improved  SynchronizaFon,  Improved  model  prinFng  to  PDF  files   What’s  New    
  • 10. Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Performance  Tasks   In  Workbench   Monitor   Assess   OpFmize  Tune   Configure  
  • 11. Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Start by looking at Server Status §  Management  Tab  –  Server  Status  
  • 12. Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Basics   •  Enabled/Disabled   Features   §  Directory  Setup   §  On  best  disks?   §  Adequate  space?   §  Slow  Query  Log  On?  
  • 13. Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Performance  Tes0ng  –  How  to  measure  success   Monitoring  –  Make  sure  you  are  monitoring  the  correct  metrics     Availability   Use  a  decent  query     Logs   Logs  filling  up  disk  space   Slow  query  log  filling  space     Disk  Space   Disks  geing  full  is  the  most  common  problem   Ideally  alarm  on  how  soon  disk  space  changes  rather  than  absolute  disk  space   13  
  • 14. Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Performance  Tes0ng  –  How  to  measure  success   Monitoring  –  Make  sure  you  are  monitoring  the  correct  metrics     Stalls  /  Spikes   Table  Locks   CPU  Spikes   Memory  Paging     Connec0ons   Are  you  reaching  max_connecFons  limit?   Can  the  applicaFon  connect?     Processes   Long  running  Processes   14  
  • 15. Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Performance  Tes0ng  –  How  to  measure  success   Monitoring  –  Make  sure  you  are  monitoring  the  correct  metrics     Transac0ons   Long  running  or  long  idle  transacFons   Queued  transacFons  (size  of  trans  queue)  (show  innodb  status)     Replica0on   Is  ReplicaFon  running   Whats  the  replicaFon  lag       15  
  • 16. Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Performance  Tes0ng  –  How  to  measure  success   Monitoring  –  Make  sure  you  are  monitoring  the  correct  metrics     Query  Performance   Top  Queries  to  opFmise  –  (interacFve  monitor  not  generate  alerts  on)   Response  Fme  outliers     Queries  not  using  index   Queries  using  full/  parFal  scans  /  table  scans   Queries  that  return  errors  /  warning     Opera0onal  Aspects   Server  restarts   Server  config  change  events   Messages  in  the  error  Log   16  
  • 17. Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Backup  Strategy  –  Will  your  backups  be  suitable  for  purpose   MySQLdump  -­‐    It  can  be  used  to  dump  a  database  or  a  collecFon  of  databases  for  backup  or  transfer  to   another  SQL  server  (not  necessarily  a  MySQL  server).  The  dump  typically  contains  SQL  statements  to   create  the  table,  populate  it,  or  both.  However,   mysqldumpcan  also  be  used  to  generate  files  in  CSV,  other  delimited  text,  or  XML  format.   MySQL  Enterprise  Backup  -­‐  "Hot"  Online  Backups  -­‐  Backups  take  place  enFrely  online,  without   interrupFng  MySQL  transacFons   High  Performance  -­‐  Save  Fme  with  faster  backup  and  recovery   Incremental  Backup  -­‐  Backup  only  data  that  has  changed  since  the  last  backup   ParFal  Backup  -­‐  Target  parFcular  tables  or  tablespaces   Full  Instance  Backup  -­‐  Backs  up  data,  as  well  as  configuraFon  and  other  informaFon  to  easily  create  a   complete  "replica"     17  
  • 18. MySQL  Backup  Types:  Comparison       mysqldump   LVM  Snapshots   MySQL  Replica0on   MySQL  Enterprise  Backup   Full  Backup     ✔   ✔   ✔   ✔   Incremental  Backups   ✖   ✔   ✖   ✔   Par0al  Backups   ✔   ✖   ✖   ✔   Compression  Support   ✖   ✖   ✖   ✔   Allows  updates   ✖   ✖   ✔   ✔   Point  in  Time  -­‐  Consistent   ✖   ✔   ✔   ✔   Backup  Speed   Poor   Good   Very  Good   Very  Good   Recovery  Speed   Very  Poor   Good   Very  Good   Very  Good   Par0al  Restore   ✔   ✖   ✖   ✔   LZ4  Compression   ✖   ✔   AES  256  Encryp0on   ✖   ✔   Corrup0on  Detec0on   ✔   ✖   ✖   ✔   Meets  Regulatory  Archive   Req.   ✔   ✖   ✖   ✔   Supports  DDL   ✔   ✖   ✖   ✔  
  • 19. Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   High  Availability  –  Does  the  up;me  requirements  match  the  design?     See  Planning  for  outages  sec;on  ;-­‐)  But  always  good  to  refer  back  to  the   original  design  spec!   19  
  • 20. Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Failover  –  Have  you  got  the  policies  and   procedures  in  place  to  failover  to  a  backup   data  center  or  server?     Most  HA  strategies  fail  not  due  to  the   hardware  or  sooware,  but  to  the  lack  of   awareness  and  tesFng  of  policies  and   procedures  in  place!   20  
  • 21. Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Growth  –  Have  you  planned  for  growth  of  data  and  throughput?       21  
  • 22. Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Tuning  –  How  to  tune  and  monitor  for  performance       22   Hardware   Config  OpFons   Schema   InnoDB   Performance  Monitoring  
  • 23. Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Hardware Schema Changes Data Growth Indexes SQL 90%  of     Performance  Problems       Source  of  Database  Performance  Problems   23  
  • 24. Hardware:  The  Perfect  MySQL  Server   •  The  more  cores  the  beXer  (especially  for  5.5  and  later)   •  x86_64  -­‐  64  bit  for  more  memory  is  important   –  The  more  the  beXer   •  Fast  HD  (10-­‐15k  RPM  SATA)  or  NAS/SAN……   –  RAID  10  for  most,  RAID  5  OK  if  very  read  intensive   –  Hardware  RAID  baXery  backed  up  cache  criFcal!   –  More  disks  are  always  beXer!  -­‐  4+  recommended,  8-­‐16  can  increase  IO   •  …Or  SSD  (for  higher  throughput)   –  Intel,  Fusion-­‐IO  good  choices;  good  opFon  for  Slaves   •  At  least  2  x  NICs  for  redundancy   •  Slaves  should  be  as  powerful  as  the  Master  
  • 25. Config  OpFons   The  MySQL  server  is  controlled  by   System  Variables 
 
 
 
 
 
 
 
 
 
 
 
 •  Set  Via:   –  my.cnf  /  my.ini   –  SET  [GLOBAL]  <variable>=<value>   –  client,  i.e  mysql   •  Can  be  local  (session)  or  global   The World s Most Popular Open Source DatabaseCopyright 2010 Oracle
  • 26. The World s Most Popular Open Source DatabaseCopyright 2010 Oracle Schemas
 •  Size  =  performance,  smaller  is  beXer   –  Size  right!  Do  not  automaFcally  use  255  for  VARCHAR   •  Temp  tables,  most  caches,  expand  to  full  size   •  Use   procedure  analyse  to  determine  the  opFmal  types  given  the  values  in  your  table   –  hXp://dev.mysql.com/doc/refman/5.1/en/procedure-­‐analyse.html   –  mysql>  select  *  from  tab  procedure  analyse  (64,2000)  G   •  Consider  the  types:   –  enum  :  hXp://dev.mysql.com/doc/refman/5.1/en/enum.html     –  set  :  hXp://dev.mysql.com/doc/refman/5.1/en/set.html     •  Compress  large  strings   –  Use  the  MySQL  COMPRESS  and  UNCOMPRESS  funcFons  
  • 27. The World s Most Popular Open Source DatabaseCopyright 2010 Oracle InnoDB  Tuning     •  Unlike  MyISAM  -­‐    InnoDB  uses  a  single  cache  for  both  index  and  data   –  innodb_buffer_pool_size  -­‐  should  be  70-­‐80%  of  available  memory.   –  It  is  not  uncommon  for  this  to  be  very  large,  i.e.  34GB  on  a  system  with  40GB  of  memory   –  Make  sure  its  not  set  so  large  as  to  cause  swapping!   –  mysql>show  status  like  'Innodb_buffer%'  ;   •  InnoDB  can  use  direct  IO  on  systems  that  support  it  -­‐  Linux,  FreeBSD,  and  Solaris   –  innodb_flush_method  =  O_DIRECT   •  For  more  InnoDB  tuning  see   –  hXp://dev.mysql.com/doc/refman/5.1/en/innodb-­‐tuning-­‐troubleshooFng.html    
  • 28. A  Virtual  MySQL  DBA  Assistant!   §  Web-­‐based,  global  view  of  MySQL/ Cluster  applicaFons  (on-­‐premise  and   Cloud  deployments)   §  Automated,  rules-­‐based  monitoring   and  alerts  (SMTP,  SNMP  enabled)   §  Query  capture,  monitoring,  analysis   and  tuning,  correlated  with  Monitor   graphs   §  Real-­‐Fme  ReplicaFon  Monitor  with   auto-­‐discovery  of  master-­‐slave   topologies   §  Integrated  with  Oracle  Support   MySQL  Enterprise  Monitor  
  • 29. Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Planning  For  Outages   29  
  • 30. Copyright © 2012, Oracle and/or its affiliates. All rights reserved. September 29th, 2012 The  Lowdown  on  Down0me….   MaintenanceFailures Disasters Operator / User Revenue Customer Sat Employee Regulatory CAUSE EFFECT IMPACT
  • 31. Copyright © 2012, Oracle and/or its affiliates. All rights reserved. September 29th, 2012 HA  Considera0ons   •  SLA  requirements  to  support  business  objecFves   •  OperaFonal  capabiliFes   •  Service  agility  &  Fme  to  market   •  Budgetary  constraints  
  • 32. Copyright © 2012, Oracle and/or its affiliates. All rights reserved. September 29th, 2012 Not  Everything  Needs  99.999%  Up0me   •  Recovery  Time  ObjecFve   –  Maximum  length  of  downFme  before  there  is  break  in  “business  conFnuity”   •  Recovery  Point  ObjecFve   –  Point  in  Fme  to  which  data  must  be  recovered  when  service  is  re-­‐established   •  Tier  1,  Mission-­‐criFcal  services   •  Tier  2,  Business-­‐criFcal  services   •  Tier  3,  Task-­‐criFcal  services   •  Tier  4,  Non-­‐criFcal  services  
  • 33. Copyright © 2012, Oracle and / or its affiliates. All rights reserved. September 29th, 2012 What  are  the  Business  HA  requirements?   Typical Availability levels
  • 34. Copyright © 2012, Oracle and / or its affiliates. All rights reserved. September 29th, 2012 High  Availability  Solu0ons   MySQL  CGE  with  Geo-­‐ReplicaFon   MySQL  Carrier  Grade  EdiFon  (aka  MySQL  Cluster)   Shared  storage  cluster   DRBD  with  clustering  sooware   MySQL  ReplicaFon  with  clustering  sooware   MySQL  ReplicaFon   Best  PracFce  AdministraFon  
  • 35. Copyright © 2012, Oracle and/or its affiliates. All rights reserved. September 29th, 2012 Mapping  Up0me  to  Availability   %"9" 9" 9" 9"9" 35 days 4 days 50 mins 5 mins8 hours Cost&Complexity SPs & Line of Business Web & Cloud Services eCommerce Telecoms Military . Shared-Nothing, Geo-Replicated Clusters Clustered & Virtualized Systems Replicated Systems
  • 36. Copyright © 2012, Oracle and / or its affiliates. All rights reserved. September 29th, 2012 HA  Comparison  Chart   Overall HA *1 Manual failover autom. f/o Active/ Active RPO *1 RTO *1 No SPOF DR MySQL 90.000% ü*2 ? ? Best Practice 95.000% ü *2 1d 2h MySQL Replication 98.000% ü ü *3 ü *4 1m 30m MySQL semi-sync Repl. 98.000% ü ü *3 ü *4 0s 30m DRBD 99.000% ü ü 0s 2m ü DRBD + Geo Repl. 99.500% ü ü 0s 2m ü ü Shared Storage 99.900% ü ü 0s 1m ü *5 Shared Storage + Geo Repl. 99.950% ü ü 0s 1m ü *5 ü MySQL Cluster 99.990% ü ü ü 0s 0,1s ü MySQL Cluster + Geo Repl. 99.999% ü ü ü 0s 0,1s ü ü  *1  Only  guidelines    *3  Requires  addiFonal  cluster  framework  s/w  *5  Requires  special  hardware    *2  Requires  backup/restore  *4  Slaves  can  be  used  read-­‐only    
  • 37. Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Upgrading  MySQL   37  
  • 38. Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   38   MySQL  Repo’s     YUM  -­‐  MySQL  Yum  repository  supports  the  following  Linux  Distros:   Red  Hat  Enterprise  Linux  5,6,7  /  Oracle  Linux  5,6,7   Fedora  18,  19,  and  20     MySQL  APT  -­‐    The  MySQL  APT  repository  provides  a  simple  and  convenient  way  to  install  and  update  MySQL   products  with  the  latest  sooware  packages  using  Apt.   The  APT  repository  supports  the  following  Linux  Distros:   Debian  –  7,  Ubuntu  -­‐  12.04  LTS,  Ubuntu  -­‐  14.04  LTS,  Ubuntu  -­‐  14.10     MySQL  SUSE  Repo  -­‐  The  MySQL  repository  for  SUSE  Linux  provides  a  simple  and  convenient  way  to  install  and   update  MySQL  products  with  the  latest  sooware  packages  using  the  Zypper  package  management  tool.   The  repository  at  this  Fme  supports  the  following  distro  versions:   SLES  12  for  x86-­‐64   SLES  11.3  for  x86-­‐64     edelivery.oracle.com  –  All  Commerical  binaries  for  all  Oracle  Sooware.  RPM’s  and  tarball’s  available  for  most   popular  distro’s     dev.mysql.com  –  All  GPL  binaries  for  MySQL  including  source  tarballs.    
  • 39. Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   39   Windows  Installer  
  • 40. Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   40   Upgrade  Concepts   •  Back  up  your  databases,  including  the  mysql  database  that  contains  the  grant  tables.     •  Read  all  the  notes  in  the  upgrade  package.  These  notes  enable  you  to  idenFfy  upgrade  issues  that  apply  to   your  current  MySQL  installaFon.    Some  incompaFbiliFes  discussed  in  that  secFon  require  your  aXenFon   before  upgrading.  Others  require  some  acFon  aoer  upgrading.   •  Read  the  Release  Notes  as  well,  which  provide  informaFon  about  features  that  are  new  in  MySQL  5.6  or   differ  from  those  found  in  earlier  MySQL  releases.   •  Aoer  upgrading  to  a  new  version  of  MySQL,  run  mysql_upgrade.    This  program  checks  your  tables,  and   aXempts  to  repair  them  if  necessary.  It  also  updates  your  grant  tables  to  make  sure  that  they  have  the   current  structure  so  that  you  can  take  advantage  of  any  new  capabiliFes.  (Some  releases  of  MySQL   introduce  changes  to  the  structure  of  the  grant  tables  to  add  new  privileges  or  features.)  
  • 41. Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   41   Upgrade  Best  Prac0ces   •  Use  virtualizaFon  snapshots  wherever  possible  for  easy  failback   •  You  can  run  mulFple  versions  of  MySQL  on  the  same  server  in  different   directories,  just  make  a  copy  of  the  data  files  for  easy  fallback   •  Try  not  to  skip  versions  ie  upgrade  from  5.0  -­‐>  5.1  >  5.5  >  5.6  etc   •  Read  the  release  notes   •  Have  some  sample  queries  and  record  the  output  before  and  aoer  an   upgrade.   •  For  absolute  data  integrity  you  can  dump  the  data  out  of  the  old  version   and  then  reimport  into  the  new  version  
  • 42. Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Thank  You!   42