SlideShare a Scribd company logo
1 of 42
Download to read offline
1	
  Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
MySQL	
  Server	
  	
  
Performance	
  Tuning	
  101	
  
Ligaya	
  Turmelle	
  
Principal	
  Technical	
  Support	
  Engineer	
  -­‐	
  MySQL	
  
ligaya.turmelle@oracle.com	
  
@lig	
  
	
  
hKps://legacy.joind.in/16770	
  
Copyright	
  ©	
  2014,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
   1	
  
2	
  
Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Safe	
  Harbor	
  Statement	
  
The	
  following	
  is	
  intended	
  to	
  outline	
  our	
  general	
  product	
  direcTon.	
  It	
  is	
  intended	
  for	
  
informaTon	
  purposes	
  only,	
  and	
  may	
  not	
  be	
  incorporated	
  into	
  any	
  contract.	
  It	
  is	
  not	
  a	
  
commitment	
  to	
  deliver	
  any	
  material,	
  code,	
  or	
  funcTonality,	
  and	
  should	
  not	
  be	
  relied	
  upon	
  
in	
  making	
  purchasing	
  decisions.	
  The	
  development,	
  release,	
  and	
  Tming	
  of	
  any	
  features	
  or	
  
funcTonality	
  described	
  for	
  Oracle’s	
  products	
  remains	
  at	
  the	
  sole	
  discreTon	
  of	
  Oracle.	
  
3	
  
Copyright	
  ©	
  2014,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Laying	
  the	
  FoundaTon	
  
4	
  
Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Step	
  0	
  
• General	
  
-­‐  No	
  easy	
  answers	
  
-­‐  Benchmark	
  and	
  test	
  
-­‐  Under	
  allocate	
  
5	
  
Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Step	
  0	
  
• The Server
- OS
- Network
- Filesystem
6	
  
Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Step	
  0	
  
• MySQL	
  Server	
  
-­‐  OpTmize	
  the	
  queries	
  
-­‐  Database	
  schema	
  
7	
  
Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
MySQL	
  and	
  Memory	
  
2	
  
Global Per Connection
Server Start As Needed
Large Values Small Values
Allocated Once Allocated 0-N Times
Global Memory + (Max Connections * Per Connection Buffers)
8	
  Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Current	
  Seangs	
  
•  mysql>	
  SHOW	
  GLOBAL	
  VARIABLES;	
  
•  mysql>	
  SELECT	
  *	
  FROM	
  
INFORMATION_SCHEMA.GLOBAL_VARIABLES;	
  
•  (5.7)	
  mysql>	
  SELECT	
  *	
  FROM	
  
PERFORMANCE_SCHEMA.GLOBAL_VARIABLES
;	
  
mysql> SHOW GLOBAL VARIABLES;+-----------------------------------------
+------------------| Variable_name | Value
+-----------------------------------------+------------------|
auto_increment_increment | 1| auto_increment_offset
| 1 | autocommit | ON |
automatic_sp_privileges | ON | back_log
| 80 | basedir | /Users/ligaya/mysql_installs/
mysql-5.6.16-osx10.7-x86_64 | big_tables | OFF |
bind_address | * | binlog_cache_size
| 32768 | binlog_checksum | CRC32 |
binlog_direct_non_transactional_updates | OFF | binlog_format
| STATEMENT | binlog_max_flush_queue_time | 0 | binlog_order_commits
| ON | binlog_row_image | FULL |
binlog_rows_query_log_events | OFF | binlog_stmt_cache_size
| 32768 | bulk_insert_buffer_size | 8388608 | character_set_client
| latin1 | character_set_connection | latin1 |
character_set_database | latin1 | character_set_filesystem
| binary | character_set_results | latin1 |
character_set_server | latin1 | character_set_system
| utf8 | character_sets_dir | /Users/ligaya/
mysql_installs/mysql-5.6.16-osx10.7-x86_64/share/charsets/ | collation_connection
| latin1_swedish_ci
8	
  
9	
  Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Current	
  Seangs	
  
• my.cnf	
  /	
  my.ini	
   # The following options will be passed to all
MySQL clients[client]#password =
your_passwordport = 5626socket
= /tmp/mysql.5.6.26.sock# The MySQL
server[mysqld]##################### specific
to this test instanceport =
5626socket = /tmp/mysql.5.6.26.socklog-
error = /mysql-5.6.26/data/
error.logbasedir = /
mysql-5.6.26datadir = /mysql-5.6.26/
datasafe-user-create
server-id = 1####################
9	
  
10	
  
Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Anything	
  Else?	
  
• RAM?	
  
• Dedicated?	
  
• 32/64	
  bit	
  OS/MySQL?	
  
• Workload?	
  
• Storage	
  Engines?	
  
11	
  Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Current	
  Status	
  
•  mysql>	
  SHOW	
  GLOBAL	
  STATUS;	
  
•  mysql>	
  SELECT	
  *	
  FROM	
  
INFORMATION_SCHEMA.GLOBAL_STATUS;	
  
•  (5.7)	
  mysql>	
  SELECT	
  *	
  FROM	
  
PERFORMANCE_SCHEMA.GLOBAL_STATUS;	
  
mysql> SHOW GLOBAL STATUS;
+--------------------------------------+---------------+
| Variable_name | Value |
+--------------------------------------+---------------+
| Aborted_clients | 9363 |
| Aborted_connects | 15925 |
| Binlog_cache_disk_use | 15684 |
| Binlog_cache_use | 272758675 |
| Bytes_received | 1219816389366 |
| Bytes_sent | 5227022143540 |
| Com_admin_commands | 12803263 |
| Com_assign_to_keycache | 0 |
| Com_alter_db | 0 |
| Com_alter_db_upgrade | 0 |
| Com_alter_event | 0 |
| Com_alter_function | 0 |
| Com_alter_procedure | 0 |
| Com_alter_server | 0 |
| Com_alter_table | 37 |
| Com_alter_tablespace | 0 |
| Com_analyze | 0 |
| Com_begin | 33025640 |
| Com_binlog | 0 |
11	
  
12	
  
Copyright	
  ©	
  2014,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Time	
  to	
  Start	
  
Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Areas	
  We	
  Will	
  Cover	
  
•  General	
  Info	
  
•  InnoDB	
  	
  
•  MyISAM	
  -­‐	
  Older	
  systems	
  
1	
  
2	
  
3	
  
Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Areas	
  We	
  Will	
  Cover	
  
•  Query	
  Cache	
  -­‐	
  Older	
  systems	
  	
  
•  Thread	
  and	
  Table	
  Cache	
  
•  Session	
  Level	
  
5	
  
4	
  
6	
  
Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Areas	
  We	
  Will	
  Cover	
  
•  General	
  Info	
  
•  InnoDB	
  	
  
•  MyISAM	
  -­‐	
  Older	
  systems	
  
1	
  
2	
  
3	
  
16	
  
Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Et	
  Al.	
  
• ConnecTons	
  and	
  Max_used_connecTons	
  
• Queries	
  and	
  QuesTons	
  
• Slow_queries	
  
• Handler_read_*	
  
17	
  
Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
max_connecTons	
  
•  Max	
  permiKed	
  concurrent	
  connecTons.	
  
•  Value	
  affects	
  memory	
  usage	
  
•  higher	
  values	
  (1000+)	
  consider/invesTgate	
  	
  
-­‐  thread	
  pooling	
  
-­‐  connecTon	
  pooling	
  
18	
  
Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
skip_name_resolve	
  
•  Do	
  not	
  resolve	
  host	
  name	
  for	
  client	
  connecTons	
  
•  Removes	
  DNS	
  lookups	
  	
  
-­‐  faster	
  connecTons	
  
-­‐  no	
  need	
  to	
  worry	
  about	
  slow	
  DNS	
  
•  Drawback:	
  Use	
  only	
  IP	
  addresses	
  
Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Areas	
  We	
  Will	
  Cover	
  
•  General	
  Info	
  
•  InnoDB	
  	
  
1	
  
2	
  
1	
  
2	
  
20	
  
Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
How	
  is	
  InnoDB	
  doing?	
  
• Efficiency	
  
- Innodb_buffer_pool_reads_requests
- Innodb_buffer_pool_reads
	
  
Formula:
1 - (Innodb_buffer_pool_read / Innodb_buffer_pool_read_requests)
= buffer pool hit ratio
21	
  
Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
innodb_buffer_pool_size	
  
•  Global	
  
•  Dynamic	
  (5.7.5)	
  
•  Caches	
  data	
  and	
  indexes	
  
•  Larger	
  values	
  reduces	
  IO	
  
•  Self-­‐contained	
  
•  Max	
  value	
  -­‐	
  Manual:	
  80%	
  ;	
  Personal:	
  60-­‐70%	
  	
  
22	
  
Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
innodb_buffer_pool_instances	
  
•  5.5+	
  
•  Problem:	
  contenTon	
  for	
  the	
  buffer	
  pool	
  resources	
  
•  For	
  systems	
  with	
  large	
  mulT-­‐GB	
  buffer	
  pools	
  
•  Total	
  buffer	
  pool	
  size	
  divided	
  between	
  this	
  many	
  instances	
  
•  Each	
  instance	
  
-­‐  Manages	
  its	
  own	
  resources	
  
-­‐  Has	
  its	
  own	
  mutex	
  
23	
  
Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
innodb_log_file_size	
  
•  Size	
  of	
  file	
  on	
  disk	
  
•  Larger	
  the	
  file,	
  the	
  less	
  checkpoint	
  acTvity	
  
•  Size	
  for	
  each	
  log	
  file	
  
•  Max	
  combined	
  log	
  file	
  size	
  
-­‐  4G	
  <	
  5.5	
  
-­‐  5.6	
  =	
  512G	
  
•  Larger	
  the	
  log	
  file	
  ➯	
  longer	
  recovery	
  Tme	
  
24	
  
Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
innodb_log_buffer_size	
  
•  Global	
  
•  Buffer	
  for	
  wriTng	
  to	
  log	
  files	
  on	
  disk	
  
•  Large	
  transacTons?	
  Write	
  heavy?	
  
-­‐  Yes	
  -­‐	
  increasing	
  can	
  help	
  with	
  IO	
  
•  Default:	
  8M	
  
25	
  
Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
innodb_file_per_table	
  
•  .ibd	
  files	
  
•  Default:	
  Off	
  <=	
  5.6.5	
  >	
  On	
  
•  Easier	
  to	
  reclaim	
  space	
  
•  TRUNCATE	
  for	
  a	
  table	
  is	
  faster	
  
•  Can	
  monitor	
  table	
  size	
  on	
  the	
  file	
  system	
  
•  Can	
  store	
  specific	
  tables	
  on	
  different	
  storage	
  devices	
  
•  (5.6)	
  Transportable	
  tablespaces	
  
-­‐  (5.7)	
  ParTToned	
  tables	
  supported	
  
26	
  
Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
innodb_flushlog_at_trx_commit	
  
•  Performance	
  Vs	
  Durability	
  
•  1	
  -­‐	
  Default	
  
-­‐  ACID	
  Compliant	
  
•  2	
  -­‐	
  Can	
  lose	
  up	
  to	
  1	
  second	
  of	
  transacTons	
  
-­‐  InnoDB	
  log	
  buffer	
  wriKen	
  to	
  log	
  file	
  at	
  each	
  commit	
  	
  
-­‐  flushed	
  to	
  disk	
  once	
  per	
  second	
  
•  0	
  -­‐	
  Can	
  lose	
  up	
  to	
  1	
  second	
  of	
  transacTons	
  
-­‐  InnoDB	
  log	
  buffer	
  wriKen	
  to	
  log	
  file	
  once	
  per	
  second	
  and	
  then	
  flushed	
  to	
  disk	
  
27	
  
Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
innodb_flush_method	
  
•  For	
  Unix	
  and	
  Linux	
  
•  Method	
  used	
  to	
  flush	
  data	
  and	
  log	
  files	
  to	
  disk	
  
•  Dependent	
  on	
  hardware	
  
•  Default:	
  fdatasync	
  
•  O_DIRECT	
  recommended	
  if	
  you	
  use	
  a	
  hardware	
  RAID	
  controller	
  
Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Areas	
  We	
  Will	
  Cover	
  
	
  
•  Threads	
  and	
  Table	
  Cache	
  
•  Session	
  Level	
  
5	
  
6	
  
29	
  
Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Gotchas!	
  
Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Areas	
  We	
  Will	
  Cover	
  
•  Query	
  Cache	
  -­‐	
  Older	
  systems	
  	
  
•  Threads	
  and	
  Table	
  Caches	
  
•  Session	
  Level	
  
5	
  
4	
  
6	
  
31	
  
Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Threads	
  
•  Threads	
  ==	
  ConnecTon	
  
•  Thread	
  Cache	
  
-­‐  Threads_cached	
  
-­‐  Threads_connected	
  
-­‐  Threads_created	
  
Formula:
Threads_created / Connections = Thread cache miss rate
32	
  
Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
thread_cache_size	
  
•  Global	
  but	
  grows	
  as	
  needed	
  
•  Number	
  to	
  be	
  cached	
  unTl	
  needed	
  
•  May	
  increase	
  performance	
  with	
  lots	
  of	
  new	
  connecTons	
  
-­‐  Or	
  may	
  not	
  
Formula:
100 - ((Threads_created / Connections) * 100) =
Thread cache efficiency
33	
  
Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
table_open_cache	
  
•  table_cache	
  <=	
  5.1.3	
  >	
  table_open_cache	
  
•  Global	
  but	
  expands	
  as	
  needed	
  
•  Number	
  of	
  open	
  tables	
  for	
  all	
  connecTons	
  
-­‐  higher	
  max_connecTons,	
  more	
  you	
  need	
  
•  Watch	
  Opened_tables	
  
34	
  
Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
table_open_cache_instances	
  
•  Reduces	
  contenTon	
  between	
  sessions	
  
•  Default	
  1	
  
-­‐  Consider	
  8	
  or	
  16	
  on	
  16+	
  core	
  systems	
  
•  5.6+	
  
35	
  
Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
table_definiTon_cache	
  
•  Global	
  but	
  expands	
  as	
  needed	
  
•  Number	
  of	
  table	
  definiTons	
  (.frm	
  file)	
  to	
  hold	
  
•  Large	
  number	
  of	
  tables	
  ➯large	
  definiTon	
  cache	
  =	
  speed	
  up	
  table	
  opening	
  
•  InnoDB	
  
-­‐  Sow	
  limit	
  for	
  open	
  table	
  instances	
  in	
  data	
  dicTonary	
  
-­‐  Sow	
  limit	
  for	
  number	
  of	
  InnoDB	
  file	
  per	
  table	
  tablespaces	
  open	
  at	
  1	
  Tme	
  
•  5.1+	
  
•  Autosizes	
  >=5.6.8	
  
Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Areas	
  We	
  Will	
  Cover	
  
•  Query	
  Cache	
  -­‐	
  Older	
  systems	
  	
  
•  Threads	
  and	
  Table	
  Cache	
  
•  Session	
  Level	
  
5	
  
4	
  
6	
  
37	
  
Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
Temporary	
  Tables	
  
max_heap_table_size
• Dynamic
• Set maximum size of all
MEMORY tables
tmp_table_size
• Dynamic
• In-memory - MEMORY table
• max size of internal in-
memory temp tables
• Becomes on-disk table
38	
  
Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
sort_buffer_size	
  
•  Dynamic	
  
•  Doing	
  a	
  sort	
  -­‐	
  allocates	
  a	
  buffer	
  this	
  size	
  
•  Helps	
  with	
  ORDER	
  BY	
  and/or	
  GROUP	
  BY	
  
•  256K	
  is	
  a	
  decent	
  starTng	
  place	
  
•  Watch	
  Sort_merge_passes	
  
39	
  
Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
join_buffer_size	
  
•  Use	
  with	
  care	
  
•  Use	
  for	
  
-­‐  Plain	
  index	
  scan	
  
-­‐  Range	
  index	
  scan	
  
-­‐  Joins	
  that	
  do	
  not	
  use	
  indexes	
  -­‐	
  full	
  table	
  scan	
  
•  One	
  buffer	
  for	
  each	
  full	
  join	
  between	
  tables	
  
40	
  
Copyright	
  ©	
  2014,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
QuesTons?	
  
41	
  Copyright	
  ©	
  2015,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  
MySQL	
  Server	
  	
  
Performance	
  Tuning	
  101	
  
Ligaya	
  Turmelle	
  
Principal	
  Technical	
  Support	
  Engineer	
  -­‐	
  MySQL	
  
ligaya.turmelle@oracle.com	
  
@lig	
  	
  
	
  
hKps://legacy.joind.in/16770	
  
Copyright	
  ©	
  2014,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
   41	
  
Copyright	
  ©	
  2014,	
  Oracle	
  and/or	
  its	
  affiliates.	
  All	
  rights	
  reserved.	
  	
  |	
  

More Related Content

What's hot

Upcoming changes in MySQL 5.7
Upcoming changes in MySQL 5.7Upcoming changes in MySQL 5.7
Upcoming changes in MySQL 5.7Morgan Tocker
 
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
 
Query Optimization with MySQL 5.7 and MariaDB 10: Even newer tricks
Query Optimization with MySQL 5.7 and MariaDB 10: Even newer tricksQuery Optimization with MySQL 5.7 and MariaDB 10: Even newer tricks
Query Optimization with MySQL 5.7 and MariaDB 10: Even newer tricksJaime Crespo
 
Upgrade to MySQL 5.7 and latest news planned for MySQL 8
Upgrade to MySQL 5.7 and latest news planned for MySQL 8Upgrade to MySQL 5.7 and latest news planned for MySQL 8
Upgrade to MySQL 5.7 and latest news planned for MySQL 8Ted Wennmark
 
MySQL For Linux Sysadmins
MySQL For Linux SysadminsMySQL For Linux Sysadmins
MySQL For Linux SysadminsMorgan Tocker
 
MySQL Tech Tour 2015 - 5.7 InnoDB
MySQL Tech Tour 2015 - 5.7 InnoDBMySQL Tech Tour 2015 - 5.7 InnoDB
MySQL Tech Tour 2015 - 5.7 InnoDBMark Swarbrick
 
MySQL 5.7 - What's new, How to upgrade and Document Store
MySQL 5.7 - What's new, How to upgrade and Document StoreMySQL 5.7 - What's new, How to upgrade and Document Store
MySQL 5.7 - What's new, How to upgrade and Document StoreAbel Flórez
 
MySQL Performance Tuning at COSCUP 2014
MySQL Performance Tuning at COSCUP 2014MySQL Performance Tuning at COSCUP 2014
MySQL Performance Tuning at COSCUP 2014Ryusuke Kajiyama
 
MySQL Performance Metrics that Matter
MySQL Performance Metrics that MatterMySQL Performance Metrics that Matter
MySQL Performance Metrics that MatterMorgan Tocker
 
Mysql 57-upcoming-changes
Mysql 57-upcoming-changesMysql 57-upcoming-changes
Mysql 57-upcoming-changesMorgan Tocker
 
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
 
MySQL 5.7: Focus on InnoDB
MySQL 5.7: Focus on InnoDBMySQL 5.7: Focus on InnoDB
MySQL 5.7: Focus on InnoDBMario Beck
 
Mysql User Camp : 20-June-14 : Mysql Fabric
Mysql User Camp : 20-June-14 : Mysql FabricMysql User Camp : 20-June-14 : Mysql Fabric
Mysql User Camp : 20-June-14 : Mysql FabricMysql User Camp
 
My sql5.7 whatsnew_presentedatgids2015
My sql5.7 whatsnew_presentedatgids2015My sql5.7 whatsnew_presentedatgids2015
My sql5.7 whatsnew_presentedatgids2015Sanjay Manwani
 
What's new in MySQL 5.7, Oracle Virtual Technology Summit, 2016
What's new in MySQL 5.7, Oracle Virtual Technology Summit, 2016What's new in MySQL 5.7, Oracle Virtual Technology Summit, 2016
What's new in MySQL 5.7, Oracle Virtual Technology Summit, 2016Geir Høydalsvik
 
Mysql User Camp : 20th June - Mysql New Features
Mysql User Camp : 20th June - Mysql New FeaturesMysql User Camp : 20th June - Mysql New Features
Mysql User Camp : 20th June - Mysql New FeaturesTarique Saleem
 

What's hot (20)

Upcoming changes in MySQL 5.7
Upcoming changes in MySQL 5.7Upcoming changes in MySQL 5.7
Upcoming changes in MySQL 5.7
 
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
 
Query Optimization with MySQL 5.7 and MariaDB 10: Even newer tricks
Query Optimization with MySQL 5.7 and MariaDB 10: Even newer tricksQuery Optimization with MySQL 5.7 and MariaDB 10: Even newer tricks
Query Optimization with MySQL 5.7 and MariaDB 10: Even newer tricks
 
MySQL NoSQL APIs
MySQL NoSQL APIsMySQL NoSQL APIs
MySQL NoSQL APIs
 
Upgrade to MySQL 5.7 and latest news planned for MySQL 8
Upgrade to MySQL 5.7 and latest news planned for MySQL 8Upgrade to MySQL 5.7 and latest news planned for MySQL 8
Upgrade to MySQL 5.7 and latest news planned for MySQL 8
 
MySQL For Linux Sysadmins
MySQL For Linux SysadminsMySQL For Linux Sysadmins
MySQL For Linux Sysadmins
 
MySQL Tech Tour 2015 - 5.7 InnoDB
MySQL Tech Tour 2015 - 5.7 InnoDBMySQL Tech Tour 2015 - 5.7 InnoDB
MySQL Tech Tour 2015 - 5.7 InnoDB
 
MySQL 5.7 - What's new, How to upgrade and Document Store
MySQL 5.7 - What's new, How to upgrade and Document StoreMySQL 5.7 - What's new, How to upgrade and Document Store
MySQL 5.7 - What's new, How to upgrade and Document Store
 
MySQL Security
MySQL SecurityMySQL Security
MySQL Security
 
MySQL Performance Tuning at COSCUP 2014
MySQL Performance Tuning at COSCUP 2014MySQL Performance Tuning at COSCUP 2014
MySQL Performance Tuning at COSCUP 2014
 
MySQL Performance Metrics that Matter
MySQL Performance Metrics that MatterMySQL Performance Metrics that Matter
MySQL Performance Metrics that Matter
 
Mysql 57-upcoming-changes
Mysql 57-upcoming-changesMysql 57-upcoming-changes
Mysql 57-upcoming-changes
 
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...
 
My sql 5.6&MySQL Cluster 7.3
My sql 5.6&MySQL Cluster 7.3My sql 5.6&MySQL Cluster 7.3
My sql 5.6&MySQL Cluster 7.3
 
MySQL 5.7: Focus on InnoDB
MySQL 5.7: Focus on InnoDBMySQL 5.7: Focus on InnoDB
MySQL 5.7: Focus on InnoDB
 
Mysql User Camp : 20-June-14 : Mysql Fabric
Mysql User Camp : 20-June-14 : Mysql FabricMysql User Camp : 20-June-14 : Mysql Fabric
Mysql User Camp : 20-June-14 : Mysql Fabric
 
My sql5.7 whatsnew_presentedatgids2015
My sql5.7 whatsnew_presentedatgids2015My sql5.7 whatsnew_presentedatgids2015
My sql5.7 whatsnew_presentedatgids2015
 
What's new in MySQL 5.7, Oracle Virtual Technology Summit, 2016
What's new in MySQL 5.7, Oracle Virtual Technology Summit, 2016What's new in MySQL 5.7, Oracle Virtual Technology Summit, 2016
What's new in MySQL 5.7, Oracle Virtual Technology Summit, 2016
 
MySQL Cluster
MySQL ClusterMySQL Cluster
MySQL Cluster
 
Mysql User Camp : 20th June - Mysql New Features
Mysql User Camp : 20th June - Mysql New FeaturesMysql User Camp : 20th June - Mysql New Features
Mysql User Camp : 20th June - Mysql New Features
 

Viewers also liked

A Storage Story #ChefConf2013
A Storage Story #ChefConf2013A Storage Story #ChefConf2013
A Storage Story #ChefConf2013Kyle Bader
 
Framework Shootout
Framework ShootoutFramework Shootout
Framework ShootoutZendCon
 
PHP on IBM i Tutorial
PHP on IBM i TutorialPHP on IBM i Tutorial
PHP on IBM i TutorialZendCon
 
MySQL Manchester TT - Replication Features
MySQL Manchester TT  - Replication FeaturesMySQL Manchester TT  - Replication Features
MySQL Manchester TT - Replication FeaturesMark Swarbrick
 
MySQL Tech Tour 2015 - 5.7 Connector/J/Net
MySQL Tech Tour 2015 - 5.7 Connector/J/NetMySQL Tech Tour 2015 - 5.7 Connector/J/Net
MySQL Tech Tour 2015 - 5.7 Connector/J/NetMark Swarbrick
 
Solving the C20K problem: Raising the bar in PHP Performance and Scalability
Solving the C20K problem: Raising the bar in PHP Performance and ScalabilitySolving the C20K problem: Raising the bar in PHP Performance and Scalability
Solving the C20K problem: Raising the bar in PHP Performance and ScalabilityZendCon
 
PHP on Windows - What's New
PHP on Windows - What's NewPHP on Windows - What's New
PHP on Windows - What's NewZendCon
 
Zend_Tool: Practical use and Extending
Zend_Tool: Practical use and ExtendingZend_Tool: Practical use and Extending
Zend_Tool: Practical use and ExtendingZendCon
 
PHP and Platform Independance in the Cloud
PHP and Platform Independance in the CloudPHP and Platform Independance in the Cloud
PHP and Platform Independance in the CloudZendCon
 
Zend Core on IBM i - Security Considerations
Zend Core on IBM i - Security ConsiderationsZend Core on IBM i - Security Considerations
Zend Core on IBM i - Security ConsiderationsZendCon
 
Tiery Eyed
Tiery EyedTiery Eyed
Tiery EyedZendCon
 
MySQL Manchester TT - 5.7 Whats new
MySQL Manchester TT - 5.7 Whats newMySQL Manchester TT - 5.7 Whats new
MySQL Manchester TT - 5.7 Whats newMark Swarbrick
 
Why MySQL High Availability Matters
Why MySQL High Availability MattersWhy MySQL High Availability Matters
Why MySQL High Availability MattersMark Swarbrick
 
Application Diagnosis with Zend Server Tracing
Application Diagnosis with Zend Server TracingApplication Diagnosis with Zend Server Tracing
Application Diagnosis with Zend Server TracingZendCon
 
Oracle Compute Cloud Service快速实践
Oracle Compute Cloud Service快速实践Oracle Compute Cloud Service快速实践
Oracle Compute Cloud Service快速实践Zhaoyang Wang
 
Oracle cloud 使用云市场快速搭建小型电商网站
Oracle cloud 使用云市场快速搭建小型电商网站Oracle cloud 使用云市场快速搭建小型电商网站
Oracle cloud 使用云市场快速搭建小型电商网站Zhaoyang Wang
 
Oracle Compute Cloud Service介绍
Oracle Compute Cloud Service介绍Oracle Compute Cloud Service介绍
Oracle Compute Cloud Service介绍Zhaoyang Wang
 
MySQL Optimizer Overview
MySQL Optimizer OverviewMySQL Optimizer Overview
MySQL Optimizer OverviewOlav Sandstå
 

Viewers also liked (20)

A Storage Story #ChefConf2013
A Storage Story #ChefConf2013A Storage Story #ChefConf2013
A Storage Story #ChefConf2013
 
Framework Shootout
Framework ShootoutFramework Shootout
Framework Shootout
 
PHP on IBM i Tutorial
PHP on IBM i TutorialPHP on IBM i Tutorial
PHP on IBM i Tutorial
 
MySQL Manchester TT - Replication Features
MySQL Manchester TT  - Replication FeaturesMySQL Manchester TT  - Replication Features
MySQL Manchester TT - Replication Features
 
MySQL Tech Tour 2015 - 5.7 Connector/J/Net
MySQL Tech Tour 2015 - 5.7 Connector/J/NetMySQL Tech Tour 2015 - 5.7 Connector/J/Net
MySQL Tech Tour 2015 - 5.7 Connector/J/Net
 
Solving the C20K problem: Raising the bar in PHP Performance and Scalability
Solving the C20K problem: Raising the bar in PHP Performance and ScalabilitySolving the C20K problem: Raising the bar in PHP Performance and Scalability
Solving the C20K problem: Raising the bar in PHP Performance and Scalability
 
PHP on Windows - What's New
PHP on Windows - What's NewPHP on Windows - What's New
PHP on Windows - What's New
 
Zend_Tool: Practical use and Extending
Zend_Tool: Practical use and ExtendingZend_Tool: Practical use and Extending
Zend_Tool: Practical use and Extending
 
PHP and Platform Independance in the Cloud
PHP and Platform Independance in the CloudPHP and Platform Independance in the Cloud
PHP and Platform Independance in the Cloud
 
Zend Core on IBM i - Security Considerations
Zend Core on IBM i - Security ConsiderationsZend Core on IBM i - Security Considerations
Zend Core on IBM i - Security Considerations
 
Tiery Eyed
Tiery EyedTiery Eyed
Tiery Eyed
 
MySQL in your laptop
MySQL in your laptopMySQL in your laptop
MySQL in your laptop
 
MySQL Manchester TT - 5.7 Whats new
MySQL Manchester TT - 5.7 Whats newMySQL Manchester TT - 5.7 Whats new
MySQL Manchester TT - 5.7 Whats new
 
Why MySQL High Availability Matters
Why MySQL High Availability MattersWhy MySQL High Availability Matters
Why MySQL High Availability Matters
 
Application Diagnosis with Zend Server Tracing
Application Diagnosis with Zend Server TracingApplication Diagnosis with Zend Server Tracing
Application Diagnosis with Zend Server Tracing
 
Script it
Script itScript it
Script it
 
Oracle Compute Cloud Service快速实践
Oracle Compute Cloud Service快速实践Oracle Compute Cloud Service快速实践
Oracle Compute Cloud Service快速实践
 
Oracle cloud 使用云市场快速搭建小型电商网站
Oracle cloud 使用云市场快速搭建小型电商网站Oracle cloud 使用云市场快速搭建小型电商网站
Oracle cloud 使用云市场快速搭建小型电商网站
 
Oracle Compute Cloud Service介绍
Oracle Compute Cloud Service介绍Oracle Compute Cloud Service介绍
Oracle Compute Cloud Service介绍
 
MySQL Optimizer Overview
MySQL Optimizer OverviewMySQL Optimizer Overview
MySQL Optimizer Overview
 

Similar to MySQL Manchester TT - Performance Tuning

MySQL 5.7: What's New, Nov. 2015
MySQL 5.7: What's New, Nov. 2015MySQL 5.7: What's New, Nov. 2015
MySQL 5.7: What's New, Nov. 2015Mario Beck
 
MySQL The State of the Dolphin - jun15
MySQL The State of the Dolphin - jun15MySQL The State of the Dolphin - jun15
MySQL The State of the Dolphin - jun15MySQL Brasil
 
Performance Schema and Sys Schema in MySQL 5.7
Performance Schema and Sys Schema in MySQL 5.7Performance Schema and Sys Schema in MySQL 5.7
Performance Schema and Sys Schema in MySQL 5.7Mark Leith
 
Upgrading to my sql 8.0
Upgrading to my sql 8.0Upgrading to my sql 8.0
Upgrading to my sql 8.0Ståle Deraas
 
MySQL Tech Tour 2015 - Manage & Tune
MySQL Tech Tour 2015 - Manage & TuneMySQL Tech Tour 2015 - Manage & Tune
MySQL Tech Tour 2015 - Manage & TuneMark Swarbrick
 
MySQL for Oracle DBAs
MySQL for Oracle DBAsMySQL for Oracle DBAs
MySQL for Oracle DBAsBen Krug
 
Basic MySQL Troubleshooting for Oracle DBAs
Basic MySQL Troubleshooting for Oracle DBAsBasic MySQL Troubleshooting for Oracle DBAs
Basic MySQL Troubleshooting for Oracle DBAsSveta Smirnova
 
What's New in MySQL 5.7
What's New in MySQL 5.7What's New in MySQL 5.7
What's New in MySQL 5.7Olivier DASINI
 
2015: Whats New in MySQL 5.7, At Oracle Open World, November 3rd, 2015
2015: Whats New in MySQL 5.7, At Oracle Open World, November 3rd, 2015 2015: Whats New in MySQL 5.7, At Oracle Open World, November 3rd, 2015
2015: Whats New in MySQL 5.7, At Oracle Open World, November 3rd, 2015 Geir Høydalsvik
 
20150110 my sql-performanceschema
20150110 my sql-performanceschema20150110 my sql-performanceschema
20150110 my sql-performanceschemaIvan Ma
 
01 demystifying mysq-lfororacledbaanddeveloperv1
01 demystifying mysq-lfororacledbaanddeveloperv101 demystifying mysq-lfororacledbaanddeveloperv1
01 demystifying mysq-lfororacledbaanddeveloperv1Ivan Ma
 
MySQL 5.7 -- SCaLE Feb 2014
MySQL 5.7 -- SCaLE Feb 2014MySQL 5.7 -- SCaLE Feb 2014
MySQL 5.7 -- SCaLE Feb 2014Dave Stokes
 
MySql'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 disksDave Stokes
 
MySQL Day Paris 2018 - Upgrade from MySQL 5.7 to MySQL 8.0
MySQL Day Paris 2018 - Upgrade from MySQL 5.7 to MySQL 8.0MySQL Day Paris 2018 - Upgrade from MySQL 5.7 to MySQL 8.0
MySQL Day Paris 2018 - Upgrade from MySQL 5.7 to MySQL 8.0Olivier DASINI
 
6 Tips to MySQL Performance Tuning
6 Tips to MySQL Performance Tuning6 Tips to MySQL Performance Tuning
6 Tips to MySQL Performance TuningOracleMySQL
 
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
 
OUGLS 2016: How profiling works in MySQL
OUGLS 2016: How profiling works in MySQLOUGLS 2016: How profiling works in MySQL
OUGLS 2016: How profiling works in MySQLGeorgi Kodinov
 
My sql cluster case study apr16
My sql cluster case study apr16My sql cluster case study apr16
My sql cluster case study apr16Sumi Ryu
 
1 my sql20151219-kaji_ivan
1 my sql20151219-kaji_ivan1 my sql20151219-kaji_ivan
1 my sql20151219-kaji_ivanIvan Tu
 
Netherlands Tech Tour 02 - MySQL Fabric
Netherlands Tech Tour 02 -   MySQL FabricNetherlands Tech Tour 02 -   MySQL Fabric
Netherlands Tech Tour 02 - MySQL FabricMark Swarbrick
 

Similar to MySQL Manchester TT - Performance Tuning (20)

MySQL 5.7: What's New, Nov. 2015
MySQL 5.7: What's New, Nov. 2015MySQL 5.7: What's New, Nov. 2015
MySQL 5.7: What's New, Nov. 2015
 
MySQL The State of the Dolphin - jun15
MySQL The State of the Dolphin - jun15MySQL The State of the Dolphin - jun15
MySQL The State of the Dolphin - jun15
 
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
 
Upgrading to my sql 8.0
Upgrading to my sql 8.0Upgrading to my sql 8.0
Upgrading to my sql 8.0
 
MySQL Tech Tour 2015 - Manage & Tune
MySQL Tech Tour 2015 - Manage & TuneMySQL Tech Tour 2015 - Manage & Tune
MySQL Tech Tour 2015 - Manage & Tune
 
MySQL for Oracle DBAs
MySQL for Oracle DBAsMySQL for Oracle DBAs
MySQL for Oracle DBAs
 
Basic MySQL Troubleshooting for Oracle DBAs
Basic MySQL Troubleshooting for Oracle DBAsBasic MySQL Troubleshooting for Oracle DBAs
Basic MySQL Troubleshooting for Oracle DBAs
 
What's New in MySQL 5.7
What's New in MySQL 5.7What's New in MySQL 5.7
What's New in MySQL 5.7
 
2015: Whats New in MySQL 5.7, At Oracle Open World, November 3rd, 2015
2015: Whats New in MySQL 5.7, At Oracle Open World, November 3rd, 2015 2015: Whats New in MySQL 5.7, At Oracle Open World, November 3rd, 2015
2015: Whats New in MySQL 5.7, At Oracle Open World, November 3rd, 2015
 
20150110 my sql-performanceschema
20150110 my sql-performanceschema20150110 my sql-performanceschema
20150110 my sql-performanceschema
 
01 demystifying mysq-lfororacledbaanddeveloperv1
01 demystifying mysq-lfororacledbaanddeveloperv101 demystifying mysq-lfororacledbaanddeveloperv1
01 demystifying mysq-lfororacledbaanddeveloperv1
 
MySQL 5.7 -- SCaLE Feb 2014
MySQL 5.7 -- SCaLE Feb 2014MySQL 5.7 -- SCaLE Feb 2014
MySQL 5.7 -- SCaLE Feb 2014
 
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
 
MySQL Day Paris 2018 - Upgrade from MySQL 5.7 to MySQL 8.0
MySQL Day Paris 2018 - Upgrade from MySQL 5.7 to MySQL 8.0MySQL Day Paris 2018 - Upgrade from MySQL 5.7 to MySQL 8.0
MySQL Day Paris 2018 - Upgrade from MySQL 5.7 to MySQL 8.0
 
6 Tips to MySQL Performance Tuning
6 Tips to MySQL Performance Tuning6 Tips to MySQL Performance Tuning
6 Tips to MySQL Performance Tuning
 
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
 
OUGLS 2016: How profiling works in MySQL
OUGLS 2016: How profiling works in MySQLOUGLS 2016: How profiling works in MySQL
OUGLS 2016: How profiling works in MySQL
 
My sql cluster case study apr16
My sql cluster case study apr16My sql cluster case study apr16
My sql cluster case study apr16
 
1 my sql20151219-kaji_ivan
1 my sql20151219-kaji_ivan1 my sql20151219-kaji_ivan
1 my sql20151219-kaji_ivan
 
Netherlands Tech Tour 02 - MySQL Fabric
Netherlands Tech Tour 02 -   MySQL FabricNetherlands Tech Tour 02 -   MySQL Fabric
Netherlands Tech Tour 02 - MySQL Fabric
 

More from Mark Swarbrick

MySQL NoSQL Document Store
MySQL NoSQL Document StoreMySQL NoSQL Document Store
MySQL NoSQL Document StoreMark Swarbrick
 
MySQL @ the University Of Nottingham
MySQL @ the University Of NottinghamMySQL @ the University Of Nottingham
MySQL @ the University Of NottinghamMark Swarbrick
 
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 8Mark 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 DolphinMark 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 StoreMark Swarbrick
 
TLV - MySQL Security overview
TLV - MySQL Security overviewTLV - MySQL Security overview
TLV - MySQL Security overviewMark Swarbrick
 
TLV - MySQL Enterprise Edition + Cloud
TLV - MySQL Enterprise Edition + CloudTLV - MySQL Enterprise Edition + Cloud
TLV - MySQL Enterprise Edition + CloudMark Swarbrick
 
TLV - Whats new in MySQL 8
TLV - Whats new in MySQL 8TLV - Whats new in MySQL 8
TLV - Whats new in MySQL 8Mark 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 DaysMark Swarbrick
 
MySQL At Mastercard - 2018 MySQL Days
MySQL At Mastercard - 2018 MySQL DaysMySQL At Mastercard - 2018 MySQL Days
MySQL At Mastercard - 2018 MySQL DaysMark Swarbrick
 
MySQL 8 - 2018 MySQL Days
MySQL 8 - 2018 MySQL DaysMySQL 8 - 2018 MySQL Days
MySQL 8 - 2018 MySQL DaysMark Swarbrick
 
MySQL Security + GDPR - 2018 MySQL Days
MySQL Security + GDPR - 2018 MySQL DaysMySQL Security + GDPR - 2018 MySQL Days
MySQL Security + GDPR - 2018 MySQL DaysMark 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 DaysMark Swarbrick
 
MySQL Cloud - 2018 MySQL Days
MySQL Cloud - 2018 MySQL DaysMySQL Cloud - 2018 MySQL Days
MySQL Cloud - 2018 MySQL DaysMark Swarbrick
 
MySQL 2018 Intro - 2018 MySQL Days
MySQL 2018 Intro - 2018 MySQL DaysMySQL 2018 Intro - 2018 MySQL Days
MySQL 2018 Intro - 2018 MySQL DaysMark 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

Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 

Recently uploaded (20)

Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 

MySQL Manchester TT - Performance Tuning

  • 1. 1  Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   MySQL  Server     Performance  Tuning  101   Ligaya  Turmelle   Principal  Technical  Support  Engineer  -­‐  MySQL   ligaya.turmelle@oracle.com   @lig     hKps://legacy.joind.in/16770   Copyright  ©  2014,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   1  
  • 2. 2   Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Safe  Harbor  Statement   The  following  is  intended  to  outline  our  general  product  direcTon.  It  is  intended  for   informaTon  purposes  only,  and  may  not  be  incorporated  into  any  contract.  It  is  not  a   commitment  to  deliver  any  material,  code,  or  funcTonality,  and  should  not  be  relied  upon   in  making  purchasing  decisions.  The  development,  release,  and  Tming  of  any  features  or   funcTonality  described  for  Oracle’s  products  remains  at  the  sole  discreTon  of  Oracle.  
  • 3. 3   Copyright  ©  2014,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |  Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Laying  the  FoundaTon  
  • 4. 4   Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Step  0   • General   -­‐  No  easy  answers   -­‐  Benchmark  and  test   -­‐  Under  allocate  
  • 5. 5   Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Step  0   • The Server - OS - Network - Filesystem
  • 6. 6   Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Step  0   • MySQL  Server   -­‐  OpTmize  the  queries   -­‐  Database  schema  
  • 7. 7   Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   MySQL  and  Memory   2   Global Per Connection Server Start As Needed Large Values Small Values Allocated Once Allocated 0-N Times Global Memory + (Max Connections * Per Connection Buffers)
  • 8. 8  Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Current  Seangs   •  mysql>  SHOW  GLOBAL  VARIABLES;   •  mysql>  SELECT  *  FROM   INFORMATION_SCHEMA.GLOBAL_VARIABLES;   •  (5.7)  mysql>  SELECT  *  FROM   PERFORMANCE_SCHEMA.GLOBAL_VARIABLES ;   mysql> SHOW GLOBAL VARIABLES;+----------------------------------------- +------------------| Variable_name | Value +-----------------------------------------+------------------| auto_increment_increment | 1| auto_increment_offset | 1 | autocommit | ON | automatic_sp_privileges | ON | back_log | 80 | basedir | /Users/ligaya/mysql_installs/ mysql-5.6.16-osx10.7-x86_64 | big_tables | OFF | bind_address | * | binlog_cache_size | 32768 | binlog_checksum | CRC32 | binlog_direct_non_transactional_updates | OFF | binlog_format | STATEMENT | binlog_max_flush_queue_time | 0 | binlog_order_commits | ON | binlog_row_image | FULL | binlog_rows_query_log_events | OFF | binlog_stmt_cache_size | 32768 | bulk_insert_buffer_size | 8388608 | character_set_client | latin1 | character_set_connection | latin1 | character_set_database | latin1 | character_set_filesystem | binary | character_set_results | latin1 | character_set_server | latin1 | character_set_system | utf8 | character_sets_dir | /Users/ligaya/ mysql_installs/mysql-5.6.16-osx10.7-x86_64/share/charsets/ | collation_connection | latin1_swedish_ci 8  
  • 9. 9  Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Current  Seangs   • my.cnf  /  my.ini   # The following options will be passed to all MySQL clients[client]#password = your_passwordport = 5626socket = /tmp/mysql.5.6.26.sock# The MySQL server[mysqld]##################### specific to this test instanceport = 5626socket = /tmp/mysql.5.6.26.socklog- error = /mysql-5.6.26/data/ error.logbasedir = / mysql-5.6.26datadir = /mysql-5.6.26/ datasafe-user-create server-id = 1#################### 9  
  • 10. 10   Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Anything  Else?   • RAM?   • Dedicated?   • 32/64  bit  OS/MySQL?   • Workload?   • Storage  Engines?  
  • 11. 11  Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Current  Status   •  mysql>  SHOW  GLOBAL  STATUS;   •  mysql>  SELECT  *  FROM   INFORMATION_SCHEMA.GLOBAL_STATUS;   •  (5.7)  mysql>  SELECT  *  FROM   PERFORMANCE_SCHEMA.GLOBAL_STATUS;   mysql> SHOW GLOBAL STATUS; +--------------------------------------+---------------+ | Variable_name | Value | +--------------------------------------+---------------+ | Aborted_clients | 9363 | | Aborted_connects | 15925 | | Binlog_cache_disk_use | 15684 | | Binlog_cache_use | 272758675 | | Bytes_received | 1219816389366 | | Bytes_sent | 5227022143540 | | Com_admin_commands | 12803263 | | Com_assign_to_keycache | 0 | | Com_alter_db | 0 | | Com_alter_db_upgrade | 0 | | Com_alter_event | 0 | | Com_alter_function | 0 | | Com_alter_procedure | 0 | | Com_alter_server | 0 | | Com_alter_table | 37 | | Com_alter_tablespace | 0 | | Com_analyze | 0 | | Com_begin | 33025640 | | Com_binlog | 0 | 11  
  • 12. 12   Copyright  ©  2014,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |  Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Time  to  Start  
  • 13. Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Areas  We  Will  Cover   •  General  Info   •  InnoDB     •  MyISAM  -­‐  Older  systems   1   2   3  
  • 14. Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Areas  We  Will  Cover   •  Query  Cache  -­‐  Older  systems     •  Thread  and  Table  Cache   •  Session  Level   5   4   6  
  • 15. Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Areas  We  Will  Cover   •  General  Info   •  InnoDB     •  MyISAM  -­‐  Older  systems   1   2   3  
  • 16. 16   Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Et  Al.   • ConnecTons  and  Max_used_connecTons   • Queries  and  QuesTons   • Slow_queries   • Handler_read_*  
  • 17. 17   Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   max_connecTons   •  Max  permiKed  concurrent  connecTons.   •  Value  affects  memory  usage   •  higher  values  (1000+)  consider/invesTgate     -­‐  thread  pooling   -­‐  connecTon  pooling  
  • 18. 18   Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   skip_name_resolve   •  Do  not  resolve  host  name  for  client  connecTons   •  Removes  DNS  lookups     -­‐  faster  connecTons   -­‐  no  need  to  worry  about  slow  DNS   •  Drawback:  Use  only  IP  addresses  
  • 19. Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Areas  We  Will  Cover   •  General  Info   •  InnoDB     1   2   1   2  
  • 20. 20   Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   How  is  InnoDB  doing?   • Efficiency   - Innodb_buffer_pool_reads_requests - Innodb_buffer_pool_reads   Formula: 1 - (Innodb_buffer_pool_read / Innodb_buffer_pool_read_requests) = buffer pool hit ratio
  • 21. 21   Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   innodb_buffer_pool_size   •  Global   •  Dynamic  (5.7.5)   •  Caches  data  and  indexes   •  Larger  values  reduces  IO   •  Self-­‐contained   •  Max  value  -­‐  Manual:  80%  ;  Personal:  60-­‐70%    
  • 22. 22   Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   innodb_buffer_pool_instances   •  5.5+   •  Problem:  contenTon  for  the  buffer  pool  resources   •  For  systems  with  large  mulT-­‐GB  buffer  pools   •  Total  buffer  pool  size  divided  between  this  many  instances   •  Each  instance   -­‐  Manages  its  own  resources   -­‐  Has  its  own  mutex  
  • 23. 23   Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   innodb_log_file_size   •  Size  of  file  on  disk   •  Larger  the  file,  the  less  checkpoint  acTvity   •  Size  for  each  log  file   •  Max  combined  log  file  size   -­‐  4G  <  5.5   -­‐  5.6  =  512G   •  Larger  the  log  file  ➯  longer  recovery  Tme  
  • 24. 24   Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   innodb_log_buffer_size   •  Global   •  Buffer  for  wriTng  to  log  files  on  disk   •  Large  transacTons?  Write  heavy?   -­‐  Yes  -­‐  increasing  can  help  with  IO   •  Default:  8M  
  • 25. 25   Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   innodb_file_per_table   •  .ibd  files   •  Default:  Off  <=  5.6.5  >  On   •  Easier  to  reclaim  space   •  TRUNCATE  for  a  table  is  faster   •  Can  monitor  table  size  on  the  file  system   •  Can  store  specific  tables  on  different  storage  devices   •  (5.6)  Transportable  tablespaces   -­‐  (5.7)  ParTToned  tables  supported  
  • 26. 26   Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   innodb_flushlog_at_trx_commit   •  Performance  Vs  Durability   •  1  -­‐  Default   -­‐  ACID  Compliant   •  2  -­‐  Can  lose  up  to  1  second  of  transacTons   -­‐  InnoDB  log  buffer  wriKen  to  log  file  at  each  commit     -­‐  flushed  to  disk  once  per  second   •  0  -­‐  Can  lose  up  to  1  second  of  transacTons   -­‐  InnoDB  log  buffer  wriKen  to  log  file  once  per  second  and  then  flushed  to  disk  
  • 27. 27   Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   innodb_flush_method   •  For  Unix  and  Linux   •  Method  used  to  flush  data  and  log  files  to  disk   •  Dependent  on  hardware   •  Default:  fdatasync   •  O_DIRECT  recommended  if  you  use  a  hardware  RAID  controller  
  • 28. Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Areas  We  Will  Cover     •  Threads  and  Table  Cache   •  Session  Level   5   6  
  • 29. 29   Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Gotchas!  
  • 30. Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Areas  We  Will  Cover   •  Query  Cache  -­‐  Older  systems     •  Threads  and  Table  Caches   •  Session  Level   5   4   6  
  • 31. 31   Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Threads   •  Threads  ==  ConnecTon   •  Thread  Cache   -­‐  Threads_cached   -­‐  Threads_connected   -­‐  Threads_created   Formula: Threads_created / Connections = Thread cache miss rate
  • 32. 32   Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   thread_cache_size   •  Global  but  grows  as  needed   •  Number  to  be  cached  unTl  needed   •  May  increase  performance  with  lots  of  new  connecTons   -­‐  Or  may  not   Formula: 100 - ((Threads_created / Connections) * 100) = Thread cache efficiency
  • 33. 33   Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   table_open_cache   •  table_cache  <=  5.1.3  >  table_open_cache   •  Global  but  expands  as  needed   •  Number  of  open  tables  for  all  connecTons   -­‐  higher  max_connecTons,  more  you  need   •  Watch  Opened_tables  
  • 34. 34   Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   table_open_cache_instances   •  Reduces  contenTon  between  sessions   •  Default  1   -­‐  Consider  8  or  16  on  16+  core  systems   •  5.6+  
  • 35. 35   Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   table_definiTon_cache   •  Global  but  expands  as  needed   •  Number  of  table  definiTons  (.frm  file)  to  hold   •  Large  number  of  tables  ➯large  definiTon  cache  =  speed  up  table  opening   •  InnoDB   -­‐  Sow  limit  for  open  table  instances  in  data  dicTonary   -­‐  Sow  limit  for  number  of  InnoDB  file  per  table  tablespaces  open  at  1  Tme   •  5.1+   •  Autosizes  >=5.6.8  
  • 36. Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Areas  We  Will  Cover   •  Query  Cache  -­‐  Older  systems     •  Threads  and  Table  Cache   •  Session  Level   5   4   6  
  • 37. 37   Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Temporary  Tables   max_heap_table_size • Dynamic • Set maximum size of all MEMORY tables tmp_table_size • Dynamic • In-memory - MEMORY table • max size of internal in- memory temp tables • Becomes on-disk table
  • 38. 38   Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   sort_buffer_size   •  Dynamic   •  Doing  a  sort  -­‐  allocates  a  buffer  this  size   •  Helps  with  ORDER  BY  and/or  GROUP  BY   •  256K  is  a  decent  starTng  place   •  Watch  Sort_merge_passes  
  • 39. 39   Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   join_buffer_size   •  Use  with  care   •  Use  for   -­‐  Plain  index  scan   -­‐  Range  index  scan   -­‐  Joins  that  do  not  use  indexes  -­‐  full  table  scan   •  One  buffer  for  each  full  join  between  tables  
  • 40. 40   Copyright  ©  2014,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |  Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   QuesTons?  
  • 41. 41  Copyright  ©  2015,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   MySQL  Server     Performance  Tuning  101   Ligaya  Turmelle   Principal  Technical  Support  Engineer  -­‐  MySQL   ligaya.turmelle@oracle.com   @lig       hKps://legacy.joind.in/16770   Copyright  ©  2014,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   41  
  • 42. Copyright  ©  2014,  Oracle  and/or  its  affiliates.  All  rights  reserved.    |