PT-1536 Added tests for enryption section in mysql-summary

This commit is contained in:
Carlos Salguero
2018-05-11 13:13:07 -03:00
parent b6526f6739
commit 87d754555e
7 changed files with 1857 additions and 0 deletions

View File

@@ -0,0 +1,159 @@
#!/usr/bin/env perl
BEGIN {
die "The PERCONA_TOOLKIT_BRANCH environment variable is not set.\n"
unless $ENV{PERCONA_TOOLKIT_BRANCH} && -d $ENV{PERCONA_TOOLKIT_BRANCH};
unshift @INC, "$ENV{PERCONA_TOOLKIT_BRANCH}/lib";
};
use strict;
use warnings FATAL => 'all';
use English qw(-no_match_vars);
use PerconaTest;
use Sandbox;
use DSNParser;
require VersionParser;
use Test::More;
use File::Temp qw( tempdir );
local $ENV{PTDEBUG} = "";
my $dp = new DSNParser(opts=>$dsn_opts);
my $sb = new Sandbox(basedir => '/tmp', DSNParser => $dp);
my $master_dbh = $sb->get_dbh_for('master');
my $has_keyring_plugin;
my $db_flavor = VersionParser->new($master_dbh)->flavor();
if ( $db_flavor =~ m/Percona Server/ ) {
my $rows = $master_dbh->selectall_hashref("SHOW PLUGINS", "name");
while (my ($key, $values) = each %$rows) {
if ($key =~ m/^keyring_/) {
$has_keyring_plugin=1;
last;
}
}
}
if (!$has_keyring_plugin) {
plan skip_all => 'Keyring plugins are not enabled.';
} elsif ( $sandbox_version lt '5.7' || $db_flavor !~ m/Percona Server/) {
plan skip_all => 'These tests need Percona Server 5.7+';
}
my ($tool) = $PROGRAM_NAME =~ m/([\w-]+)_encryption\.t$/;
# mysqldump from earlier versions doesn't seem to work with 5.6,
# so use the actual mysqldump from each MySQL bin which should
# always be compatible with itself.
my $env = qq\CMD_MYSQLDUMP="$ENV{PERCONA_TOOLKIT_SANDBOX}/bin/mysqldump"\;
#
# --save-samples
#
my $dir = tempdir( "percona-testXXXXXXXX", CLEANUP => 1 );
`$env $trunk/bin/$tool --sleep 1 --save-samples $dir -- --defaults-file=/tmp/12345/my.sandbox.cnf`;
ok(
-e $dir,
"Using --save-samples doesn't mistakenly delete the target dir"
);
# If the box has a default my.cnf (e.g. /etc/my.cnf) there
# should be 15 files, else 14.
my @files = glob("$dir/*");
my $n_files = scalar @files;
ok(
$n_files >= 15 && $n_files <= 18,
"And leaves all files in there"
) or diag($n_files, `ls -l $dir`);
undef($dir); # rm the dir because CLEANUP => 1
#
# --databases
#
my $out = `$env $trunk/bin/$tool --sleep 1 --databases mysql 2>/dev/null -- --defaults-file=/tmp/12345/my.sandbox.cnf`;
like(
$out,
qr/Database Tables Views SPs Trigs Funcs FKs Partn\s+\Qmysql\E/,
"--databases works"
);
like(
$out,
qr/# InnoDB #.*Version.*# MyISAM #/s,
"InnoDB section present"
);
like(
$out,
qr/Users \| 2/,
"Security works"
);
# --read-samples
for my $i (2..7) {
ok(
no_diff(
sub {
local $ENV{_NO_FALSE_NEGATIVES} = 1;
print `$env $trunk/bin/$tool --read-samples $trunk/t/pt-mysql-summary/samples/temp00$i -- --defaults-file=/tmp/12345/my.sandbox.cnf | tail -n+3 | perl -wlnpe 's/Skipping schema analysis.*/Specify --databases or --all-databases to dump and summarize schemas/' | grep -v jemalloc`
},
"t/pt-mysql-summary/samples/expected_output_temp_enc00$i.txt",
),
"--read-samples works for t/pt-mysql-summary/temp00$i",
) or diag($test_diff);
}
# Test that --help works under sh
my $sh = `sh $trunk/bin/$tool --help`;
my $bash = `bash $trunk/bin/$tool --help`;
is(
$sh,
$bash,
"--help works under sh and bash"
);
$master_dbh->do("DROP DATABASE IF EXISTS test");
$master_dbh->do("CREATE DATABASE test");
$master_dbh->do("CREATE TABLE test.t1(a INT PRIMARY KEY) ENCRYPTION='Y'");
$master_dbh->do("CREATE TABLESPACE foo ADD DATAFILE 'foo.ibd' ENCRYPTION='Y'");
$master_dbh->do("ALTER TABLE test.t1 TABLESPACE=foo");
$master_dbh->do("CREATE TABLE test.t2(a INT PRIMARY KEY) ENCRYPTION='Y'");
$out = `bash $trunk/bin/$tool --list-encrypted-tables`;
like(
$out,
qr/Encryption/,
"Encryption section included in report"
) or diag $out;
like(
$out,
qr/Keyring plugins/,
"Keyring plugins included in report"
) or diag $out;
like(
$out,
qr/Encrypted tables/,
"Encrypted tables included in report"
) or diag $out;
like(
$out,
qr/Encrypted tablespaces/,
"Encrypted tablespaces included in report"
) or diag $out;
$master_dbh->do("DROP DATABASE IF EXISTS test");
$master_dbh->do("DROP TABLESPACE foo");
done_testing;

View File

@@ -0,0 +1,286 @@
# Instances ##################################################
Port Data Directory Nice OOM Socket
===== ========================== ==== === ======
3306 /var/lib/mysql ? ? /var/run/mysqld/mysqld.sock
# Report On Port 3306 ########################################
User | hugmeir@localhost
Time | 2012-03-23 21:05:32 (ART)
Hostname | hugmeir
Version | 5.5.20-rel24.1 Percona Server with XtraDB (GPL), Release rel24.1, Revision 217
Built On | Linux i686
Started | 2012-03-22 18:50 (up 1+02:15:21)
Databases | 6
Datadir | /var/lib/mysql/
Processes | 1 connected, 1 running
Replication | Is not a slave, has 0 slaves connected
Pidfile | /var/lib/mysql/hugmeir.pid (does not exist)
# Processlist ################################################
Command COUNT(*) Working SUM(Time) MAX(Time)
------------------------------ -------- ------- --------- ---------
Query 1 1 0 0
User COUNT(*) Working SUM(Time) MAX(Time)
------------------------------ -------- ------- --------- ---------
hugmeir 1 1 0 0
Host COUNT(*) Working SUM(Time) MAX(Time)
------------------------------ -------- ------- --------- ---------
localhost 1 1 0 0
db COUNT(*) Working SUM(Time) MAX(Time)
------------------------------ -------- ------- --------- ---------
NULL 1 1 0 0
State COUNT(*) Working SUM(Time) MAX(Time)
------------------------------ -------- ------- --------- ---------
NULL 1 1 0 0
# Status Counters (Wait 10 Seconds) ##########################
Variable Per day Per second 11 secs
Bytes_received 175000 2 175
Bytes_sent 2500000 30 2000
Com_change_db 45
Com_install_plugin 1
Com_select 700 1
Com_set_option 1250
Com_show_binlogs 25
Com_show_create_db 4
Com_show_create_table 400
Com_show_databases 30
Com_show_engine_status 25
Com_show_fields 400
Com_show_function_status 20
Com_show_master_status 25
Com_show_plugins 25
Com_show_processlist 25
Com_show_slave_status 25
Com_show_status 50
Com_show_table_status 400
Com_show_tables 20
Com_show_variables 25
Connections 450 1
Created_tmp_disk_tables 700 1
Created_tmp_files 4
Created_tmp_tables 2500 5
Handler_read_first 2
Handler_read_rnd_next 35000 40
Handler_write 35000 35
Innodb_adaptive_hash_cells 500000 5
Innodb_adaptive_hash_non_hash_searches 45
Innodb_background_log_sync 125
Innodb_buffer_pool_read_requests 1000
Innodb_buffer_pool_reads 200
Innodb_checkpoint_max_age 7000000 80
Innodb_checkpoint_target_age 7000000 80
Innodb_data_fsyncs 2
Innodb_data_read 5000000 60
Innodb_data_reads 200
Innodb_data_writes 2
Innodb_data_written 1500
Innodb_dict_tables 7
Innodb_history_list_length 25
Innodb_ibuf_segment_size 1
Innodb_lsn_current 1500000 20
Innodb_lsn_flushed 1500000 20
Innodb_lsn_last_checkpoint 1500000 20
Innodb_max_trx_id 4500
Innodb_mem_adaptive_hash 2000000 25
Innodb_mem_dictionary 500000 6
Innodb_mem_total 125000000 1500
Innodb_oldest_view_low_limit_trx_id 4500
Innodb_os_log_fsyncs 2
Innodb_os_log_written 450
Innodb_pages_read 200
Innodb_purge_trx_id 4000
Innodb_s_lock_os_waits 1
Innodb_s_lock_spin_rounds 50
Innodb_s_lock_spin_waits 1
Open_table_definitions 35
Opened_files 3500 4
Opened_table_definitions 35
Opened_tables 45
Qcache_not_cached 700 1
Queries 4000 3
Questions 4000 3
Select_scan 1000
Sort_scan 45
Table_locks_immediate 80
Uptime 90000 1 1
# Table cache ################################################
Size | 400
Usage | 10%
# Key Percona Server features ################################
Table & Index Stats | Disabled
Multiple I/O Threads | Enabled
Corruption Resilient | Enabled
Durable Replication | Disabled
Import InnoDB Tables | Disabled
Fast Server Restarts | Disabled
Enhanced Logging | Disabled
Replica Perf Logging | Disabled
Response Time Hist. | Disabled
Smooth Flushing | Enabled
HandlerSocket NoSQL | Not Supported
Fast Hash UDFs | Unknown
# Percona XtraDB Cluster #####################################
# Plugins ####################################################
InnoDB compression | ACTIVE
# Query cache ################################################
query_cache_type | ON
Size | 16.0M
Usage | 0%
HitToInsertRatio | 0%
# Schema #####################################################
Database Tables Views SPs Trigs Funcs FKs Partn
bluh 1
meh 1
mysql 22
percona 1
performance_schema
Database MyISAM InnoDB
bluh 1
meh 1
mysql 22
percona 1
performance_schema
Database BTREE
bluh
meh
mysql 31
percona 2
performance_schema
i t b b c t s e l d t s b v f
n e i l h i e n o a i m i a l
t x n o a m t u n t n a g r o
t a b r e m g e y l i c a
r s b t i l n h t
y t l i n i t a
a o m t n r
m b e t
p
Database === === === === === === === === === === === === === === ===
bluh 1 1 1 1
meh 1
mysql 19 2 4 63 8 6 77 5 4 3 3 8 1
percona 3 2 4 1 1 1
performance_schema
# Noteworthy Technologies ####################################
Full Text Indexing | No
Geospatial Types | No
Foreign Keys | No
Partitioning | No
InnoDB Compression | No
SSL | No
Explicit LOCK TABLES | No
Delayed Insert | No
XA Transactions | No
NDB Cluster | No
Prepared Statements | No
Prepared statement count | 0
# InnoDB #####################################################
Version | 1.1.8-rel24.1
Buffer Pool Size | 128.0M
Buffer Pool Fill | 2%
Buffer Pool Dirty | 0%
File Per Table | OFF
Page Size | 16k
Log File Size | 2 * 5.0M = 10.0M
Log Buffer Size | 8M
Flush Method |
Flush Log At Commit | 1
XA Support | ON
Checksums | ON
Doublewrite | ON
R/W I/O Threads | 4 4
I/O Capacity | 200
Thread Concurrency | 0
Concurrency Tickets | 500
Commit Concurrency | 0
Txn Isolation Level | REPEATABLE-READ
Adaptive Flushing | ON
Adaptive Checkpoint |
Checkpoint Age | 0
InnoDB Queue | 0 queries inside InnoDB, 0 queries in queue
Oldest Transaction | 0 Seconds
History List Len | 30
Read Views | 1
Undo Log Entries | 0 transactions, 0 total undo, 0 max undo
Pending I/O Reads | 0 buf pool reads, 0 normal AIO, 0 ibuf AIO, 0 preads
Pending I/O Writes | 0 buf pool (0 LRU, 0 flush list, 0 page); 0 AIO, 0 sync, 0 log IO (0 log, 0 chkp); 0 pwrites
Pending I/O Flushes | 0 buf pool, 0 log
Transaction States | 1xnot started
# MyISAM #####################################################
Key Cache | 16.0M
Pct Used | 10%
Unflushed | 0%
# Security ###################################################
Users | 6 users, 0 anon, 1 w/o pw, 1 old pw
Old Passwords | OFF
# Encryption #################################################
Keyring plugins:
'+--------------+---------------+
| PLUGIN_NAME | PLUGIN_STATUS |
+--------------+---------------+
| keyring_file | ACTIVE |
+--------------+---------------+'
# Binary Logging #############################################
# Noteworthy Variables #######################################
Auto-Inc Incr/Offset | 1/1
default_storage_engine | InnoDB
flush_time | 0
init_connect |
init_file |
sql_mode |
join_buffer_size | 128k
sort_buffer_size | 2M
read_buffer_size | 128k
read_rnd_buffer_size | 256k
bulk_insert_buffer | 0.00
max_heap_table_size | 16M
tmp_table_size | 16M
max_allowed_packet | 16M
thread_stack | 192k
log | OFF
log_error | /var/log/mysql/error.log
log_warnings | 1
log_slow_queries | OFF
log_queries_not_using_indexes | OFF
log_slave_updates | OFF
# Configuration File #########################################
Config File | /etc/mysql/my.cnf
[client]
user = msandbox
password = msandbox
port = 12345
socket = /tmp/12345/mysql_sandbox12345.sock
[mysqld]
port = 12345
socket = /tmp/12345/mysql_sandbox12345.sock
pid-file = /tmp/12345/data/mysql_sandbox12345.pid
basedir = /home/hugmeir/mysql5/mysqlbrew/mysqls/Percona-Server-5.1/
datadir = /tmp/12345/data
key_buffer_size = 16M
innodb_buffer_pool_size = 16M
innodb_data_home_dir = /tmp/12345/data
innodb_log_group_home_dir = /tmp/12345/data
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_file_size = 5M
log-bin = mysql-bin
relay_log = mysql-relay-bin
log_slave_updates
server-id = 12345
report-host = 127.0.0.1
report-port = 12345
log-error = mysqld.log
innodb_lock_wait_timeout = 3
# Memory management library ##################################
Jemalloc library not found
# The End ####################################################

View File

@@ -0,0 +1,229 @@
# Instances ##################################################
Port Data Directory Nice OOM Socket
===== ========================== ==== === ======
12345 /tmp/12345/data 0 0 /tmp/12345/mysql_sandbox12345.sock
# Report On Port 12345 #######################################
User | msandbox@%
Time | 2012-03-27 16:33:46 (BST)
Hostname | vagrant-debian-squeeze
Version | 5.1.49-log MySQL Community Server (GPL)
Built On | pc-linux-gnu i686
Started | 2012-03-27 16:15 (up 0+00:18:12)
Databases | 2
Datadir | /tmp/12345/data/
Processes | 1 connected, 1 running
Replication | Is not a slave, has 0 slaves connected
Pidfile | /tmp/12345/data/mysql_sandbox12345.pid (exists)
# Processlist ################################################
Command COUNT(*) Working SUM(Time) MAX(Time)
------------------------------ -------- ------- --------- ---------
Query 1 1 0 0
User COUNT(*) Working SUM(Time) MAX(Time)
------------------------------ -------- ------- --------- ---------
msandbox 1 1 0 0
Host COUNT(*) Working SUM(Time) MAX(Time)
------------------------------ -------- ------- --------- ---------
localhost 1 1 0 0
db COUNT(*) Working SUM(Time) MAX(Time)
------------------------------ -------- ------- --------- ---------
NULL 1 1 0 0
State COUNT(*) Working SUM(Time) MAX(Time)
------------------------------ -------- ------- --------- ---------
NULL 1 1 0 0
# Status Counters (Wait 10 Seconds) ##########################
Variable Per day Per second 10 secs
Bytes_received 250000 2 200
Bytes_sent 3500000 40 1500
Com_admin_commands 80
Com_select 2250 1
Com_show_binlogs 80
Com_show_databases 80
Com_show_engine_status 150
Com_show_master_status 80
Com_show_plugins 80
Com_show_processlist 80
Com_show_slave_status 80
Com_show_status 225
Com_show_variables 150
Connections 1750 1
Created_tmp_disk_tables 800 1
Created_tmp_files 400
Created_tmp_tables 3000 3
Flush_commands 80
Handler_read_first 225
Handler_read_rnd_next 90000 1 30
Handler_write 90000 1 30
Innodb_buffer_pool_pages_flushed 15000
Innodb_buffer_pool_read_requests 100000 1
Innodb_buffer_pool_write_requests 90000 1
Innodb_data_fsyncs 1250
Innodb_data_writes 3000
Innodb_data_written 250000000 3000
Innodb_dblwr_pages_written 1250
Innodb_dblwr_writes 80
Innodb_log_write_requests 6000
Innodb_log_writes 300
Innodb_os_log_fsyncs 800
Innodb_os_log_written 3000000 35
Innodb_pages_created 15000
Innodb_pages_written 15000
Open_table_definitions 1750
Opened_files 10000 4
Opened_table_definitions 1750
Opened_tables 2250
Queries 5000 4
Questions 5000 4
Select_scan 700
Table_locks_immediate 1500
Threads_created 1750 1
Uptime 90000 1 1
# Table cache ################################################
Size | 64
Usage | 35%
# Key Percona Server features ################################
Table & Index Stats | Not Supported
Multiple I/O Threads | Not Supported
Corruption Resilient | Not Supported
Durable Replication | Not Supported
Import InnoDB Tables | Not Supported
Fast Server Restarts | Not Supported
Enhanced Logging | Not Supported
Replica Perf Logging | Not Supported
Response Time Hist. | Not Supported
Smooth Flushing | Not Supported
HandlerSocket NoSQL | Not Supported
Fast Hash UDFs | Unknown
# Percona XtraDB Cluster #####################################
# Plugins ####################################################
InnoDB compression | Not found
# Query cache ################################################
query_cache_type | ON
Size | 0.0
Usage | 0%
HitToInsertRatio | 0%
# Schema #####################################################
Specify --databases or --all-databases to dump and summarize schemas
# Noteworthy Technologies ####################################
SSL | No
Explicit LOCK TABLES | No
Delayed Insert | No
XA Transactions | No
NDB Cluster | No
Prepared Statements | No
Prepared statement count | 0
# InnoDB #####################################################
Version | default
Buffer Pool Size | 16.0M
Buffer Pool Fill | 15%
Buffer Pool Dirty | 0%
File Per Table | OFF
Page Size | 16k
Log File Size | 2 * 5.0M = 10.0M
Log Buffer Size | 1M
Flush Method |
Flush Log At Commit | 1
XA Support | ON
Checksums | ON
Doublewrite | ON
R/W I/O Threads |
I/O Capacity |
Thread Concurrency | 8
Concurrency Tickets | 500
Commit Concurrency | 0
Txn Isolation Level | REPEATABLE-READ
Adaptive Flushing |
Adaptive Checkpoint |
Checkpoint Age | 0
InnoDB Queue | 0 queries inside InnoDB, 0 queries in queue
Oldest Transaction | 0 Seconds
History List Len | 0
Read Views | 1
Undo Log Entries | 0 transactions, 0 total undo, 0 max undo
Pending I/O Reads | 0 buf pool reads, 0 normal AIO, 0 ibuf AIO, 0 preads
Pending I/O Writes | 0 buf pool (0 LRU, 0 flush list, 0 page); 0 AIO, 0 sync, 0 log IO (0 log, 0 chkp); 0 pwrites
Pending I/O Flushes | 0 buf pool, 0 log
Transaction States | 1xnot started
# MyISAM #####################################################
Key Cache | 16.0M
Pct Used | 10%
Unflushed | 0%
# Security ###################################################
Users | 2 users, 0 anon, 0 w/o pw, 0 old pw
Old Passwords | OFF
# Encryption #################################################
Keyring plugins:
'+--------------+---------------+
| PLUGIN_NAME | PLUGIN_STATUS |
+--------------+---------------+
| keyring_file | ACTIVE |
+--------------+---------------+'
# Binary Logging #############################################
Binlogs | 1
Zero-Sized | 0
Total Size | 106.0
binlog_format | STATEMENT
expire_logs_days | 0
sync_binlog | 0
server_id | 12345
binlog_do_db |
binlog_ignore_db |
# Noteworthy Variables #######################################
Auto-Inc Incr/Offset | 1/1
default_storage_engine |
flush_time | 0
init_connect |
init_file |
sql_mode |
join_buffer_size | 128k
sort_buffer_size | 2M
read_buffer_size | 128k
read_rnd_buffer_size | 256k
bulk_insert_buffer | 0.00
max_heap_table_size | 16M
tmp_table_size | 16M
max_allowed_packet | 1M
thread_stack | 192k
log | OFF
log_error | /tmp/12345/data/mysqld.log
log_warnings | 1
log_slow_queries | OFF
log_queries_not_using_indexes | OFF
log_slave_updates | ON
# Configuration File #########################################
Config File | /tmp/12345/my.sandbox.cnf
[client]
user = msandbox
password = msandbox
port = 12345
socket = /tmp/12345/mysql_sandbox12345.sock
[mysqld]
port = 12345
socket = /tmp/12345/mysql_sandbox12345.sock
pid-file = /tmp/12345/data/mysql_sandbox12345.pid
basedir = /home/hugmeir/mysql5/mysqlbrew/mysqls/Percona-Server-5.1/
datadir = /tmp/12345/data
key_buffer_size = 16M
innodb_buffer_pool_size = 16M
innodb_data_home_dir = /tmp/12345/data
innodb_log_group_home_dir = /tmp/12345/data
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_file_size = 5M
log-bin = mysql-bin
relay_log = mysql-relay-bin
log_slave_updates
server-id = 12345
report-host = 127.0.0.1
report-port = 12345
log-error = mysqld.log
innodb_lock_wait_timeout = 3
# Memory management library ##################################
Jemalloc library not found
# The End ####################################################

View File

@@ -0,0 +1,228 @@
# Instances ##################################################
Port Data Directory Nice OOM Socket
===== ========================== ==== === ======
12345 /tmp/12345/data 0 0 /tmp/12345/mysql_sandbox12345.sock
# Report On Port 12345 #######################################
User | msandbox@%
Time | 2012-03-27 09:16:44 (CEST)
Hostname | localhost.localdomain
Version | 5.1.49-log MySQL Community Server (GPL)
Built On | pc-linux-gnu i686
Started | 2012-03-27 09:09 (up 0+00:07:37)
Databases | 3
Datadir | /tmp/12345/data/
Processes | 1 connected, 1 running
Replication | Is not a slave, has 0 slaves connected
Pidfile | /tmp/12345/data/mysql_sandbox12345.pid (exists)
# Processlist ################################################
Command COUNT(*) Working SUM(Time) MAX(Time)
------------------------------ -------- ------- --------- ---------
Query 1 1 0 0
User COUNT(*) Working SUM(Time) MAX(Time)
------------------------------ -------- ------- --------- ---------
msandbox 1 1 0 0
Host COUNT(*) Working SUM(Time) MAX(Time)
------------------------------ -------- ------- --------- ---------
localhost 1 1 0 0
db COUNT(*) Working SUM(Time) MAX(Time)
------------------------------ -------- ------- --------- ---------
NULL 1 1 0 0
State COUNT(*) Working SUM(Time) MAX(Time)
------------------------------ -------- ------- --------- ---------
NULL 1 1 0 0
# Status Counters (Wait 10 Seconds) ##########################
Variable Per day Per second 10 secs
Bytes_received 500000 6 200
Bytes_sent 8000000 90 1500
Com_admin_commands 200
Com_select 5000 1
Com_show_binlogs 200
Com_show_databases 200
Com_show_engine_status 200
Com_show_master_status 200
Com_show_plugins 200
Com_show_processlist 200
Com_show_slave_status 200
Com_show_status 600
Com_show_variables 400
Connections 4000 1
Created_tmp_disk_tables 2000 1
Created_tmp_files 900
Created_tmp_tables 7000 3
Flush_commands 200
Handler_read_first 600
Handler_read_key 2500
Handler_read_rnd_next 225000 2 30
Handler_write 225000 2 30
Innodb_buffer_pool_read_ahead_rnd 600
Innodb_buffer_pool_read_requests 350000 3
Innodb_buffer_pool_reads 25000
Innodb_data_fsyncs 600
Innodb_data_read 1500000000 17500
Innodb_data_reads 50000
Innodb_data_writes 600
Innodb_data_written 300000 3
Innodb_log_writes 200
Innodb_os_log_fsyncs 600
Innodb_os_log_written 100000 1
Innodb_pages_read 40000
Open_table_definitions 9000
Opened_files 30000 4
Opened_table_definitions 7000
Opened_tables 9000
Queries 12500 4
Questions 12500 4
Select_scan 1750
Table_locks_immediate 3500
Threads_created 4000 1
Uptime 90000 1 1
# Table cache ################################################
Size | 64
Usage | 60%
# Key Percona Server features ################################
Table & Index Stats | Not Supported
Multiple I/O Threads | Not Supported
Corruption Resilient | Not Supported
Durable Replication | Not Supported
Import InnoDB Tables | Not Supported
Fast Server Restarts | Not Supported
Enhanced Logging | Not Supported
Replica Perf Logging | Not Supported
Response Time Hist. | Not Supported
Smooth Flushing | Not Supported
HandlerSocket NoSQL | Not Supported
Fast Hash UDFs | Unknown
# Percona XtraDB Cluster #####################################
# Plugins ####################################################
InnoDB compression | Not found
# Query cache ################################################
query_cache_type | ON
Size | 0.0
Usage | 0%
HitToInsertRatio | 0%
# Schema #####################################################
Specify --databases or --all-databases to dump and summarize schemas
# Noteworthy Technologies ####################################
SSL | No
Explicit LOCK TABLES | No
Delayed Insert | No
XA Transactions | No
NDB Cluster | No
Prepared Statements | No
Prepared statement count | 0
# InnoDB #####################################################
Version | default
Buffer Pool Size | 16.0M
Buffer Pool Fill | 20%
Buffer Pool Dirty | 0%
File Per Table | OFF
Page Size | 16k
Log File Size | 2 * 5.0M = 10.0M
Log Buffer Size | 1M
Flush Method |
Flush Log At Commit | 1
XA Support | ON
Checksums | ON
Doublewrite | ON
R/W I/O Threads |
I/O Capacity |
Thread Concurrency | 8
Concurrency Tickets | 500
Commit Concurrency | 0
Txn Isolation Level | REPEATABLE-READ
Adaptive Flushing |
Adaptive Checkpoint |
Checkpoint Age | 0
InnoDB Queue | 0 queries inside InnoDB, 0 queries in queue
Oldest Transaction | 0 Seconds
History List Len | 0
Read Views | 1
Undo Log Entries | 0 transactions, 0 total undo, 0 max undo
Pending I/O Reads | 0 buf pool reads, 0 normal AIO, 0 ibuf AIO, 0 preads
Pending I/O Writes | 0 buf pool (0 LRU, 0 flush list, 0 page); 0 AIO, 0 sync, 0 log IO (0 log, 0 chkp); 0 pwrites
Pending I/O Flushes | 0 buf pool, 0 log
Transaction States | 1xnot started
# MyISAM #####################################################
Key Cache | 16.0M
Pct Used | 10%
Unflushed | 0%
# Security ###################################################
Users | 2 users, 0 anon, 0 w/o pw, 0 old pw
Old Passwords | OFF
# Encryption #################################################
Keyring plugins:
'+--------------+---------------+
| PLUGIN_NAME | PLUGIN_STATUS |
+--------------+---------------+
| keyring_file | ACTIVE |
+--------------+---------------+'
# Binary Logging #############################################
Binlogs | 2
Zero-Sized | 0
Total Size | 3.1M
binlog_format | STATEMENT
expire_logs_days | 0
sync_binlog | 0
server_id | 12345
binlog_do_db |
binlog_ignore_db |
# Noteworthy Variables #######################################
Auto-Inc Incr/Offset | 1/1
default_storage_engine |
flush_time | 0
init_connect |
init_file |
sql_mode |
join_buffer_size | 128k
sort_buffer_size | 2M
read_buffer_size | 128k
read_rnd_buffer_size | 256k
bulk_insert_buffer | 0.00
max_heap_table_size | 16M
tmp_table_size | 16M
max_allowed_packet | 1M
thread_stack | 192k
log | OFF
log_error | /tmp/12345/data/mysqld.log
log_warnings | 1
log_slow_queries | OFF
log_queries_not_using_indexes | OFF
log_slave_updates | ON
# Configuration File #########################################
Config File | /tmp/12345/my.sandbox.cnf
[client]
user = msandbox
password = msandbox
port = 12345
socket = /tmp/12345/mysql_sandbox12345.sock
[mysqld]
port = 12345
socket = /tmp/12345/mysql_sandbox12345.sock
pid-file = /tmp/12345/data/mysql_sandbox12345.pid
basedir = /home/hugmeir/mysql5/mysqlbrew/mysqls/Percona-Server-5.1/
datadir = /tmp/12345/data
key_buffer_size = 16M
innodb_buffer_pool_size = 16M
innodb_data_home_dir = /tmp/12345/data
innodb_log_group_home_dir = /tmp/12345/data
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_file_size = 5M
log-bin = mysql-bin
relay_log = mysql-relay-bin
log_slave_updates
server-id = 12345
report-host = 127.0.0.1
report-port = 12345
log-error = mysqld.log
innodb_lock_wait_timeout = 3
# Memory management library ##################################
Jemalloc library not found
# The End ####################################################

View File

@@ -0,0 +1,301 @@
# Instances ##################################################
Port Data Directory Nice OOM Socket
===== ========================== ==== === ======
12345 /tmp/12345/data 0 0 /tmp/12345/mysql_sandbox12345.sock
12346 /tmp/12346/data 0 0 /tmp/12346/mysql_sandbox12346.sock
12347 /tmp/12347/data 0 0 /tmp/12347/mysql_sandbox12347.sock
# MySQL Executable ###########################################
Path to executable | /home/hugmeir/mysql5/mysqlbrew/mysqls/Percona-Server-5.1/libexec/mysqld
Has symbols | Yes
# Report On Port 12345 #######################################
User | msandbox@%
Time | 2012-03-30 22:33:19 (ART)
Hostname | hugmeir
Version | 5.1.61rel13.2-log Percona Server with XtraDB (GPL), Release rel13.2, Revision 430
Built On | pc-linux-gnu i686
Started | 2012-03-30 21:45 (up 0+00:48:00)
Databases | 3
Datadir | /tmp/12345/data/
Processes | 2 connected, 2 running
Replication | Is not a slave, has 1 slaves connected
Pidfile | /tmp/12345/data/mysql_sandbox12345.pid (exists)
# Processlist ################################################
Command COUNT(*) Working SUM(Time) MAX(Time)
------------------------------ -------- ------- --------- ---------
Binlog Dump 1 1 3000 3000
Query 1 1 0 0
User COUNT(*) Working SUM(Time) MAX(Time)
------------------------------ -------- ------- --------- ---------
msandbox 2 2 3000 3000
Host COUNT(*) Working SUM(Time) MAX(Time)
------------------------------ -------- ------- --------- ---------
localhost 2 2 3000 3000
db COUNT(*) Working SUM(Time) MAX(Time)
------------------------------ -------- ------- --------- ---------
NULL 2 2 3000 3000
State COUNT(*) Working SUM(Time) MAX(Time)
------------------------------ -------- ------- --------- ---------
Has sent all binlog to slave; 1 1 3000 3000
NULL 1 1 0 0
# Status Counters (Wait 10 Seconds) ##########################
Variable Per day Per second 11 secs
Binlog_cache_disk_use 30
Binlog_cache_use 30
Bytes_received 100000000 1250 3000
Bytes_sent 150000000 1750 20000
Com_admin_commands 60
Com_begin 30
Com_change_db 4500 4
Com_commit 30
Com_create_db 30
Com_create_function 90
Com_create_procedure 90
Com_create_table 500
Com_create_trigger 175
Com_create_view 200
Com_drop_db 30
Com_insert 30000
Com_select 22500 6
Com_set_option 30000 30
Com_show_binlogs 500
Com_show_create_db 175
Com_show_create_func 250
Com_show_create_proc 250
Com_show_create_table 8000 8
Com_show_create_trigger 500
Com_show_databases 1000
Com_show_engine_status 1000
Com_show_fields 4000 4
Com_show_function_status 175
Com_show_master_status 500
Com_show_plugins 900
Com_show_procedure_status 175
Com_show_processlist 900
Com_show_slave_status 900
Com_show_status 1500
Com_show_table_status 4000 4
Com_show_tables 350
Com_show_triggers 4000 4
Com_show_variables 1000
Connections 12500 1
Created_tmp_disk_tables 15000 10
Created_tmp_files 175
Created_tmp_tables 50000 20
Flush_commands 30
Handler_commit 1250
Handler_prepare 1000
Handler_read_first 450
Handler_read_key 600
Handler_read_next 2250 2
Handler_read_rnd_next 900000 10 90
Handler_write 2250000 25 80
Innodb_buffer_pool_pages_flushed 20000
Innodb_buffer_pool_read_requests 12500000 150 70
Innodb_buffer_pool_write_requests 7000000 80
Innodb_data_fsyncs 3000
Innodb_data_writes 5000
Innodb_data_written 700000000 9000
Innodb_dblwr_pages_written 12500
Innodb_dblwr_writes 350
Innodb_dict_tables 700
Innodb_log_write_requests 450000 5
Innodb_log_writes 1500
Innodb_os_log_fsyncs 2000
Innodb_os_log_written 200000000 2500
Innodb_pages_created 15000
Innodb_pages_written 20000
Innodb_rows_inserted 1500000 15
Key_read_requests 900000 10 2
Key_write_requests 350000 3
Key_writes 6000
Open_table_definitions 1500
Opened_files 80000 60
Opened_table_definitions 2000
Opened_tables 2250
Queries 125000 1 70
Questions 100000 1 70
Select_scan 20000 15
Sort_scan 175
Table_locks_immediate 4500 1
Threads_created 12500 1
Uptime 90000 1 1
# Table cache ################################################
Size | 64
Usage | 60%
# Key Percona Server features ################################
Table & Index Stats | Disabled
Multiple I/O Threads | Enabled
Corruption Resilient | Disabled
Durable Replication | Disabled
Import InnoDB Tables | Disabled
Fast Server Restarts | Disabled
Enhanced Logging | Disabled
Replica Perf Logging | Disabled
Response Time Hist. | Disabled
Smooth Flushing | Enabled
HandlerSocket NoSQL | Not Supported
Fast Hash UDFs | Unknown
# Percona XtraDB Cluster #####################################
# Plugins ####################################################
InnoDB compression | ACTIVE
# Query cache ################################################
query_cache_type | ON
Size | 0.0
Usage | 0%
HitToInsertRatio | 0%
# Schema #####################################################
Database Tables Views SPs Trigs Funcs FKs Partn
mysql 21
sakila 16 7 3 6 3 22
Database MyISAM InnoDB
mysql 21
sakila 8 15
Database BTREE FULLTEXT
mysql 29
sakila 63 1
c t s e l d i t s t b v b y d m
h i e n o a n i m e i a l e e e
a m t u n t t n a x g r o a c d
r e m g e y l t i c b r i i
s b t i l n h m u
t l i n i t a a m
a o m t n r l i
m b e t n
p t
Database === === === === === === === === === === === === === === === ===
mysql 58 7 6 77 5 4 19 2 3 2 8 1 4
sakila 1 15 1 3 4 2 19 26 4 45 1 1 7 2
# Noteworthy Technologies ####################################
Full Text Indexing | Yes
Geospatial Types | No
Foreign Keys | Yes
Partitioning | No
InnoDB Compression | No
SSL | No
Explicit LOCK TABLES | No
Delayed Insert | No
XA Transactions | No
NDB Cluster | No
Prepared Statements | No
Prepared statement count | 0
# InnoDB #####################################################
Version | 1.0.17-13.2
Buffer Pool Size | 32.0M
Buffer Pool Fill | 25%
Buffer Pool Dirty | 0%
File Per Table | OFF
Page Size | 16k
Log File Size | 2 * 5.0M = 10.0M
Log Buffer Size | 8M
Flush Method |
Flush Log At Commit | 1
XA Support | ON
Checksums | ON
Doublewrite | ON
R/W I/O Threads | 4 4
I/O Capacity | 200
Thread Concurrency | 0
Concurrency Tickets | 500
Commit Concurrency | 0
Txn Isolation Level | REPEATABLE-READ
Adaptive Flushing | OFF
Adaptive Checkpoint | estimate
Checkpoint Age | 0
InnoDB Queue | 0 queries inside InnoDB, 0 queries in queue
Oldest Transaction | 0 Seconds
History List Len | 0
Read Views | 1
Undo Log Entries | 0 transactions, 0 total undo, 0 max undo
Pending I/O Reads | 0 buf pool reads, 0 normal AIO, 0 ibuf AIO, 0 preads
Pending I/O Writes | 0 buf pool (0 LRU, 0 flush list, 0 page); 0 AIO, 0 sync, 0 log IO (0 log, 0 chkp); 0 pwrites
Pending I/O Flushes | 0 buf pool, 0 log
Transaction States | 1xnot started
# MyISAM #####################################################
Key Cache | 16.0M
Pct Used | 10%
Unflushed | 0%
# Security ###################################################
Users | 2 users, 0 anon, 0 w/o pw, 0 old pw
Old Passwords | OFF
# Encryption #################################################
Keyring plugins:
'+--------------+---------------+
| PLUGIN_NAME | PLUGIN_STATUS |
+--------------+---------------+
| keyring_file | ACTIVE |
+--------------+---------------+'
# Binary Logging #############################################
Binlogs | 1
Zero-Sized | 0
Total Size | 3.1M
binlog_format | STATEMENT
expire_logs_days | 0
sync_binlog | 0
server_id | 12345
binlog_do_db |
binlog_ignore_db |
# Noteworthy Variables #######################################
Auto-Inc Incr/Offset | 1/1
default_storage_engine |
flush_time | 0
init_connect |
init_file |
sql_mode |
join_buffer_size | 128k
sort_buffer_size | 2M
read_buffer_size | 128k
read_rnd_buffer_size | 256k
bulk_insert_buffer | 0.00
max_heap_table_size | 16M
tmp_table_size | 16M
max_allowed_packet | 1M
thread_stack | 192k
log | OFF
log_error | /tmp/12345/data/mysqld.log
log_warnings | 1
log_slow_queries | OFF
log_queries_not_using_indexes | OFF
log_slave_updates | ON
# Configuration File #########################################
Config File | /tmp/12345/my.sandbox.cnf
[client]
user = msandbox
password = msandbox
port = 12345
socket = /tmp/12345/mysql_sandbox12345.sock
[mysqld]
port = 12345
socket = /tmp/12345/mysql_sandbox12345.sock
pid-file = /tmp/12345/data/mysql_sandbox12345.pid
basedir = /home/hugmeir/mysql5/mysqlbrew/mysqls/Percona-Server-5.1/
datadir = /tmp/12345/data
key_buffer_size = 16M
innodb_buffer_pool_size = 16M
innodb_data_home_dir = /tmp/12345/data
innodb_log_group_home_dir = /tmp/12345/data
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_file_size = 5M
log-bin = mysql-bin
relay_log = mysql-relay-bin
log_slave_updates
server-id = 12345
report-host = 127.0.0.1
report-port = 12345
log-error = mysqld.log
innodb_lock_wait_timeout = 3
# Memory management library ##################################
Jemalloc library not found
# The End ####################################################

View File

@@ -0,0 +1,350 @@
# Instances ##################################################
Port Data Directory Nice OOM Socket
===== ========================== ==== === ======
12345 /tmp/12345/data 0 0 /tmp/12345/mysql_sandbox12345.sock
12346 /tmp/12346/data 0 0 /tmp/12346/mysql_sandbox12346.sock
12347 /tmp/12347/data 0 0 /tmp/12347/mysql_sandbox12347.sock
# MySQL Executable ###########################################
# Report On Port 12345 #######################################
User | msandbox@%
Time | 2012-11-27 17:38:42 (ART)
Hostname | hugmeir
Version | 5.5.28-23.7-log Percona XtraDB Cluster (GPL) 5.5.28-23.7, Revision 373, wsrep_23.7.r3821
Built On | Linux i686
Started | 2012-11-27 16:56 (up 0+00:41:51)
Databases | 5
Datadir | /tmp/12345/data/
Processes | 4 connected, 1 running
Replication | Is not a slave, has 0 slaves connected
Pidfile | /tmp/12345/data/mysql_sandbox12345.pid (exists)
# Processlist ################################################
Command COUNT(*) Working SUM(Time) MAX(Time)
------------------------------ -------- ------- --------- ---------
Query 1 1 0 0
Sleep 3 0 8000 2500
User COUNT(*) Working SUM(Time) MAX(Time)
------------------------------ -------- ------- --------- ---------
msandbox 1 1 0 0
system user 3 0 0 0
Host COUNT(*) Working SUM(Time) MAX(Time)
------------------------------ -------- ------- --------- ---------
3 0 0 0
localhost 1 1 0 0
db COUNT(*) Working SUM(Time) MAX(Time)
------------------------------ -------- ------- --------- ---------
NULL 4 1 0 0
State COUNT(*) Working SUM(Time) MAX(Time)
------------------------------ -------- ------- --------- ---------
NULL 2 0 0 0
sleeping 1 1 0 0
wsrep aborter idle 1 0 0 0
# Status Counters (Wait 10 Seconds) ##########################
Variable Per day Per second 10 secs
Binlog_cache_disk_use 35
Binlog_cache_use 150
Binlog_stmt_cache_use 35
Bytes_received 125000000 1250 225
Bytes_sent 25000000 300 2500
Com_admin_commands 35
Com_alter_table 70
Com_begin 35
Com_change_db 2000
Com_checksum 35
Com_commit 70
Com_create_db 70
Com_create_function 100
Com_create_procedure 100
Com_create_table 700
Com_create_trigger 200
Com_create_view 250
Com_drop_db 35
Com_drop_table 35
Com_flush 70
Com_insert 35000
Com_load 35
Com_rollback 35
Com_select 10000 1
Com_set_option 12500
Com_show_binlogs 400
Com_show_create_db 100
Com_show_create_func 100
Com_show_create_proc 100
Com_show_create_table 3500
Com_show_create_trigger 200
Com_show_databases 450
Com_show_engine_status 400
Com_show_fields 1750
Com_show_function_status 100
Com_show_master_status 400
Com_show_plugins 400
Com_show_procedure_status 100
Com_show_processlist 400
Com_show_slave_status 400
Com_show_status 600
Com_show_table_status 1750
Com_show_tables 250
Com_show_triggers 1750
Com_show_variables 400
Com_update 35
Connections 7000 1
Created_tmp_disk_tables 8000 1
Created_tmp_files 250
Created_tmp_tables 35000 6
Flush_commands 100
Handler_commit 8000
Handler_prepare 6000
Handler_read_first 900
Handler_read_key 800
Handler_read_next 1250
Handler_read_rnd_next 2250000 25 45
Handler_rollback 1000
Handler_update 200
Handler_write 2000000 25 45
Innodb_adaptive_hash_cells 5000000 60
Innodb_adaptive_hash_heap_buffers 200
Innodb_adaptive_hash_hash_searches 4500000 50
Innodb_adaptive_hash_non_hash_searches 1750000 20
Innodb_background_log_sync 1500
Innodb_buffer_pool_pages_flushed 30000
Innodb_buffer_pool_pages_old 8000
Innodb_buffer_pool_read_requests 15000000 175
Innodb_buffer_pool_write_requests 8000000 90
Innodb_checkpoint_max_age 250000000 3000
Innodb_checkpoint_target_age 250000000 3000
Innodb_data_fsyncs 4500
Innodb_data_writes 35000
Innodb_data_written 1250000000 15000
Innodb_dblwr_pages_written 25000
Innodb_dblwr_writes 600
Innodb_dict_tables 900
Innodb_history_list_length 35
Innodb_ibuf_segment_size 70
Innodb_ibuf_size 35
Innodb_log_write_requests 600000 7
Innodb_log_writes 2500
Innodb_lsn_current 300000000 3500
Innodb_lsn_flushed 300000000 3500
Innodb_lsn_last_checkpoint 300000000 3500
Innodb_master_thread_1_second_loops 1500
Innodb_master_thread_10_second_loops 150
Innodb_master_thread_background_loops 100
Innodb_master_thread_main_flush_loops 100
Innodb_master_thread_sleeps 1500
Innodb_max_trx_id 30000
Innodb_mem_adaptive_hash 22500000 250
Innodb_mem_dictionary 8000000 90
Innodb_mem_total 1250000000 12500
Innodb_mutex_os_waits 200
Innodb_mutex_spin_rounds 9000
Innodb_mutex_spin_waits 400
Innodb_oldest_view_low_limit_trx_id 30000
Innodb_os_log_fsyncs 3000
Innodb_os_log_written 300000000 3500
Innodb_pages_created 25000
Innodb_pages_written 30000
Innodb_purge_trx_id 30000
Innodb_rows_inserted 1750000 20
Innodb_rows_read 1750000 20
Innodb_s_lock_os_waits 800
Innodb_s_lock_spin_rounds 25000
Innodb_s_lock_spin_waits 800
Innodb_x_lock_os_waits 300
Innodb_x_lock_spin_rounds 9000
Key_read_requests 1500
Key_reads 35
Key_write_requests 400
Key_writes 400
Open_table_definitions 1750
Opened_files 45000 4
Opened_table_definitions 3500
Opened_tables 4000
Queries 80000 4
Questions 50000 4
Select_scan 8000
Sort_scan 70
Table_locks_immediate 7000
Threads_created 7000 1
Uptime 90000 1 1
binlog_commits 175
binlog_group_commits 175
wsrep_protocol_version 150
wsrep_last_committed 1750
wsrep_replicated 1750
wsrep_replicated_bytes 125000000 1250
wsrep_received 400
wsrep_received_bytes 22500
wsrep_local_commits 150
wsrep_local_state 150
wsrep_cert_index_size 2500000 30
wsrep_cluster_conf_id 100
wsrep_cluster_size 100
# Table cache ################################################
Size | 400
Usage | 10%
# Key Percona Server features ################################
Table & Index Stats | Disabled
Multiple I/O Threads | Enabled
Corruption Resilient | Enabled
Durable Replication | Disabled
Import InnoDB Tables | Disabled
Fast Server Restarts | Disabled
Enhanced Logging | Disabled
Replica Perf Logging | Disabled
Response Time Hist. | Disabled
Smooth Flushing | Enabled
HandlerSocket NoSQL | Not Supported
Fast Hash UDFs | Unknown
# Percona XtraDB Cluster #####################################
Cluster Name | pt_sandbox_cluster
Cluster Address | gcomm://
Cluster Size | 3
Cluster Nodes | 192.168.0.100,192.168.0.100,192.168.0.100
Node Name | 12345
Node Status | Primary
SST Method | rsync
Slave Threads | 2
Ignore Split Brain | false
Ignore Quorum | false
gcache Size | 128M
gcache Directory | /tmp/12345/data/
gcache Name | /tmp/12345/data//galera.cache
# Plugins ####################################################
InnoDB compression | ACTIVE
# Query cache ################################################
query_cache_type | ON
Size | 0.0
Usage | 0%
HitToInsertRatio | 0%
# Schema #####################################################
Database Tables Views SPs Trigs Funcs FKs Partn
mysql 22
percona_test 3
sakila 16 7 3 6 3 22
Database MyISAM InnoDB
mysql 22
percona_test 3
sakila 7 16
Database BTREE
mysql 31
percona_test 2
sakila 63
c t s e l d i t s t b v b y d m
h i e n o a n i m e i a l e e e
a m t u n t t n a x g r o a c d
r e m g e y l t i c b r i i
s b t i l n h m u
t l i n i t a a m
a o m t n r l i
m b e t n
p t
Database === === === === === === === === === === === === === === === ===
mysql 61 8 6 78 5 4 19 3 3 4 8 3 4
percona_test 3 2
sakila 1 15 1 3 4 2 19 26 7 42 1 1 7 2
# Noteworthy Technologies ####################################
Full Text Indexing | No
Geospatial Types | No
Foreign Keys | Yes
Partitioning | No
InnoDB Compression | No
SSL | No
Explicit LOCK TABLES | No
Delayed Insert | No
XA Transactions | No
NDB Cluster | No
Prepared Statements | No
Prepared statement count | 0
# InnoDB #####################################################
Version | 1.1.8-rel29.1
Buffer Pool Size | 32.0M
Buffer Pool Fill | 35%
Buffer Pool Dirty | 0%
File Per Table | OFF
Page Size | 16k
Log File Size | 2 * 5.0M = 10.0M
Log Buffer Size | 8M
Flush Method |
Flush Log At Commit | 1
XA Support | ON
Checksums | ON
Doublewrite | ON
R/W I/O Threads | 4 4
I/O Capacity | 200
Thread Concurrency | 0
Concurrency Tickets | 500
Commit Concurrency | 0
Txn Isolation Level | REPEATABLE-READ
Adaptive Flushing | ON
Adaptive Checkpoint |
Checkpoint Age | 0
InnoDB Queue | 0 queries inside InnoDB, 0 queries in queue
Oldest Transaction | 0 Seconds
History List Len | 1
Read Views | 1
Undo Log Entries | 0 transactions, 0 total undo, 0 max undo
Pending I/O Reads | 0 buf pool reads, 0 normal AIO, 0 ibuf AIO, 0 preads
Pending I/O Writes | 0 buf pool (0 LRU, 0 flush list, 0 page); 0 AIO, 0 sync, 0 log IO (0 log, 0 chkp); 0 pwrites
Pending I/O Flushes | 0 buf pool, 0 log
Transaction States | 1xnot started
# MyISAM #####################################################
Key Cache | 16.0M
Pct Used | 10%
Unflushed | 0%
# Security ###################################################
Users | 2 users, 0 anon, 0 w/o pw, 0 old pw
Old Passwords | OFF
# Encryption #################################################
Keyring plugins:
'+--------------+---------------+
| PLUGIN_NAME | PLUGIN_STATUS |
+--------------+---------------+
| keyring_file | ACTIVE |
+--------------+---------------+'
# Binary Logging #############################################
Binlogs | 1
Zero-Sized | 0
Total Size | 1.4M
binlog_format | ROW
expire_logs_days | 0
sync_binlog | 0
server_id | 12345
binlog_do_db |
binlog_ignore_db |
# Noteworthy Variables #######################################
Auto-Inc Incr/Offset | 3/1
default_storage_engine | InnoDB
flush_time | 0
init_connect |
init_file |
sql_mode |
join_buffer_size | 128k
sort_buffer_size | 2M
read_buffer_size | 128k
read_rnd_buffer_size | 256k
bulk_insert_buffer | 0.00
max_heap_table_size | 16M
tmp_table_size | 16M
max_allowed_packet | 1M
thread_stack | 192k
log | ON
log_error | /tmp/12345/data/mysqld.log
log_warnings | 1
log_slow_queries | OFF
log_queries_not_using_indexes | OFF
log_slave_updates | ON
# Configuration File #########################################
Config File | Cannot autodetect or find, giving up
# Memory management library ##################################
Jemalloc library not found
# The End ####################################################

View File

@@ -0,0 +1,304 @@
# Instances ##################################################
Port Data Directory Nice OOM Socket
===== ========================== ==== === ======
12345 /tmp/12345/data 0 0 /tmp/12345/mysql_sandbox12345.sock
12346 /tmp/12346/data 0 0 /tmp/12346/mysql_sandbox12346.sock
12347 /tmp/12347/data 0 0 /tmp/12347/mysql_sandbox12347.sock
# MySQL Executable ###########################################
Path to executable | /home/hugmeir/mysql5/mysqlbrew/mysqls/Percona-XtraDB-Cluster-5.5.28-23.7.373.Linux.i686/bin/mysqld
Has symbols | Yes
# Report On Port 12345 #######################################
User | msandbox@%
Time | 2012-11-27 18:59:59 (ART)
Hostname | hugmeir
Version | 5.5.28-23.7-log Percona XtraDB Cluster (GPL) 5.5.28-23.7, Revision 373, wsrep_23.7.r3821
Built On | Linux i686
Started | 2012-11-27 18:58 (up 0+00:01:36)
Databases | 5
Datadir | /tmp/12345/data/
Processes | 2 connected, 2 running
Replication | Is not a slave, has 1 slaves connected
Pidfile | /tmp/12345/data/mysql_sandbox12345.pid (exists)
# Processlist ################################################
Command COUNT(*) Working SUM(Time) MAX(Time)
------------------------------ -------- ------- --------- ---------
Binlog Dump 1 1 90 90
Query 1 1 0 0
User COUNT(*) Working SUM(Time) MAX(Time)
------------------------------ -------- ------- --------- ---------
msandbox 2 2 90 90
Host COUNT(*) Working SUM(Time) MAX(Time)
------------------------------ -------- ------- --------- ---------
localhost 2 2 90 90
db COUNT(*) Working SUM(Time) MAX(Time)
------------------------------ -------- ------- --------- ---------
NULL 2 2 90 90
State COUNT(*) Working SUM(Time) MAX(Time)
------------------------------ -------- ------- --------- ---------
Master has sent all binlog to 1 1 90 90
NULL 1 1 0 0
# Status Counters (Wait 10 Seconds) ##########################
Variable Per day Per second 11 secs
Binlog_cache_disk_use 900
Binlog_cache_use 3500
Binlog_stmt_cache_use 900
Bytes_received 3000000000 35000 200
Bytes_sent 3000000000 35000 2250
Com_admin_commands 1750
Com_begin 900
Com_change_db 1750
Com_checksum 900
Com_commit 1750
Com_create_db 1750
Com_create_function 2500
Com_create_procedure 2500
Com_create_table 17500
Com_create_trigger 5000
Com_create_view 6000
Com_drop_db 900
Com_drop_table 900
Com_insert 1000000 10
Com_load 900
Com_rollback 900
Com_select 15000 1
Com_set_option 10000
Com_show_engine_status 900
Com_show_status 900
Com_show_tables 900
Com_show_variables 1750
Com_update 900
Connections 12500 1
Created_tmp_files 6000
Created_tmp_tables 3500 6
Flush_commands 900
Handler_commit 125000 1
Handler_prepare 100000 1
Handler_read_first 17500
Handler_read_key 15000
Handler_read_rnd_next 45000000 500 40
Handler_rollback 12500
Handler_update 5000
Handler_write 45000000 500 40
Innodb_adaptive_hash_cells 125000000 1500
Innodb_adaptive_hash_heap_buffers 5000
Innodb_adaptive_hash_hash_searches 125000000 1250
Innodb_adaptive_hash_non_hash_searches 50000000 500
Innodb_background_log_sync 30000
Innodb_buffer_pool_pages_flushed 700000 8
Innodb_buffer_pool_pages_old 200000 2
Innodb_buffer_pool_read_requests 400000000 4500
Innodb_buffer_pool_write_requests 200000000 2500
Innodb_checkpoint_max_age 7000000000 80000
Innodb_checkpoint_target_age 7000000000 80000
Innodb_data_fsyncs 100000 1
Innodb_data_writes 900000 9
Innodb_data_written 30000000000 350000
Innodb_dblwr_pages_written 600000 6
Innodb_dblwr_writes 15000
Innodb_dict_tables 22500
Innodb_ibuf_segment_size 1750
Innodb_ibuf_size 900
Innodb_log_write_requests 15000000 175
Innodb_log_writes 60000
Innodb_lsn_current 8000000000 90000
Innodb_lsn_flushed 8000000000 90000
Innodb_lsn_last_checkpoint 8000000000 90000
Innodb_master_thread_1_second_loops 30000
Innodb_master_thread_10_second_loops 2500
Innodb_master_thread_background_loops 3500
Innodb_master_thread_main_flush_loops 3500
Innodb_master_thread_sleeps 30000
Innodb_max_trx_id 800000 8
Innodb_mem_adaptive_hash 600000000 7000
Innodb_mem_dictionary 200000000 2250
Innodb_mem_total 30000000000 350000
Innodb_mutex_os_waits 3500
Innodb_mutex_spin_rounds 200000 2
Innodb_mutex_spin_waits 12500
Innodb_oldest_view_low_limit_trx_id 700000 8
Innodb_os_log_fsyncs 80000
Innodb_os_log_written 8000000000 90000
Innodb_pages_created 600000 7
Innodb_pages_written 700000 8
Innodb_rows_inserted 40000000 500
Innodb_rows_read 40000000 500
Innodb_s_lock_os_waits 22500
Innodb_s_lock_spin_rounds 600000 7
Innodb_s_lock_spin_waits 22500
Innodb_x_lock_os_waits 7000
Innodb_x_lock_spin_rounds 225000 2
Key_read_requests 25000000 300
Key_reads 900
Key_write_requests 10000000 125
Key_writes 200000 2
Open_table_definitions 50000
Opened_files 200000 2 4
Opened_table_definitions 80000
Opened_tables 80000
Queries 1000000 10 3
Questions 150000 1 3
Select_scan 4500
Table_locks_immediate 175000 1
Threads_created 12500 1
Uptime 90000 1 1
binlog_commits 4500
binlog_group_commits 4500
wsrep_local_index 4000000000000 45000000
# Table cache ################################################
Size | 400
Usage | 15%
# Key Percona Server features ################################
Table & Index Stats | Disabled
Multiple I/O Threads | Enabled
Corruption Resilient | Enabled
Durable Replication | Disabled
Import InnoDB Tables | Disabled
Fast Server Restarts | Disabled
Enhanced Logging | Disabled
Replica Perf Logging | Disabled
Response Time Hist. | Disabled
Smooth Flushing | Enabled
HandlerSocket NoSQL | Not Supported
Fast Hash UDFs | Unknown
# Percona XtraDB Cluster #####################################
wsrep_on | OFF
# Plugins ####################################################
InnoDB compression | ACTIVE
# Query cache ################################################
query_cache_type | ON
Size | 0.0
Usage | 0%
HitToInsertRatio | 0%
# Schema #####################################################
Database Tables Views SPs Trigs Funcs FKs Partn
mysql 22
percona_test 3
sakila 16 7 3 6 3 22
Database MyISAM InnoDB
mysql 22
percona_test 3
sakila 8 15
Database BTREE FULLTEXT
mysql 31
percona_test 2
sakila 63 1
c t s e l d i t s t b v b y d m
h i e n o a n i m e i a l e e e
a m t u n t t n a x g r o a c d
r e m g e y l t i c b r i i
s b t i l n h m u
t l i n i t a a m
a o m t n r l i
m b e t n
p t
Database === === === === === === === === === === === === === === === ===
mysql 61 8 6 78 5 4 19 3 3 4 8 3 4
percona_test 3 2
sakila 1 15 1 3 4 2 19 26 7 42 1 1 7 2
# Noteworthy Technologies ####################################
Full Text Indexing | Yes
Geospatial Types | No
Foreign Keys | Yes
Partitioning | No
InnoDB Compression | No
SSL | No
Explicit LOCK TABLES | No
Delayed Insert | No
XA Transactions | No
NDB Cluster | No
Prepared Statements | No
Prepared statement count | 0
# InnoDB #####################################################
Version | 1.1.8-rel29.1
Buffer Pool Size | 32.0M
Buffer Pool Fill | 35%
Buffer Pool Dirty | 0%
File Per Table | OFF
Page Size | 16k
Log File Size | 2 * 5.0M = 10.0M
Log Buffer Size | 8M
Flush Method |
Flush Log At Commit | 1
XA Support | ON
Checksums | ON
Doublewrite | ON
R/W I/O Threads | 4 4
I/O Capacity | 200
Thread Concurrency | 0
Concurrency Tickets | 500
Commit Concurrency | 0
Txn Isolation Level | REPEATABLE-READ
Adaptive Flushing | ON
Adaptive Checkpoint |
Checkpoint Age | 0
InnoDB Queue | 0 queries inside InnoDB, 0 queries in queue
Oldest Transaction | 0 Seconds
History List Len | 0
Read Views | 1
Undo Log Entries | 0 transactions, 0 total undo, 0 max undo
Pending I/O Reads | 0 buf pool reads, 0 normal AIO, 0 ibuf AIO, 0 preads
Pending I/O Writes | 0 buf pool (0 LRU, 0 flush list, 0 page); 0 AIO, 0 sync, 0 log IO (0 log, 0 chkp); 0 pwrites
Pending I/O Flushes | 0 buf pool, 0 log
Transaction States | 1xnot started
# MyISAM #####################################################
Key Cache | 16.0M
Pct Used | 10%
Unflushed | 0%
# Security ###################################################
Users | 2 users, 0 anon, 0 w/o pw, 0 old pw
Old Passwords | OFF
# Encryption #################################################
Keyring plugins:
'+--------------+---------------+
| PLUGIN_NAME | PLUGIN_STATUS |
+--------------+---------------+
| keyring_file | ACTIVE |
+--------------+---------------+'
# Binary Logging #############################################
Binlogs | 1
Zero-Sized | 0
Total Size | 3.1M
binlog_format | STATEMENT
expire_logs_days | 0
sync_binlog | 0
server_id | 12345
binlog_do_db |
binlog_ignore_db |
# Noteworthy Variables #######################################
Auto-Inc Incr/Offset | 1/1
default_storage_engine | InnoDB
flush_time | 0
init_connect |
init_file |
sql_mode |
join_buffer_size | 128k
sort_buffer_size | 2M
read_buffer_size | 128k
read_rnd_buffer_size | 256k
bulk_insert_buffer | 0.00
max_heap_table_size | 16M
tmp_table_size | 16M
max_allowed_packet | 1M
thread_stack | 192k
log | ON
log_error | /tmp/12345/data/mysqld.log
log_warnings | 1
log_slow_queries | OFF
log_queries_not_using_indexes | OFF
log_slave_updates | ON
# Configuration File #########################################
Config File | Cannot autodetect or find, giving up
# Memory management library ##################################
Jemalloc library not found
# The End ####################################################