MySQL High Availability- P8
... key cache and the MyISAM stor- age engine, see the online MySQL Reference Manual. MySQL, Replication, and High Availability There is a higher probability of corruption of MyISAM data than InnoDB ... EXPLAIN, there is no single tool in a standard MySQL distribution that you can use to profile a query in MySQL. The “Optimization” chapter in the online MySQL Reference Manual has a host...
Ngày tải lên: 24/10/2013, 15:15
MySQL High Availability- P4
... "/var/run/mysqld/mysqld1.sock"); $NODE[] = array("localhost", 3308, "/var/run/mysqld/mysqld2.sock"); $NODE[] = array("localhost", 3309, "/var/run/mysqld/mysqld3.sock"); 176 ... { mysql_ query("START TRANSACTION", $link); } function commit_trans($link) { mysql_ select_db("common", $link); mysql_ query("SET SQL_L...
Ngày tải lên: 17/10/2013, 22:15
MySQL High Availability- P5
... shard_to_node WHERE shard = %d"; mysql_ select_db("common", $common); $result = mysql_ query(sprintf($query, $shardNo), $common); $row = mysql_ fetch_row($result); $db_server = ... ? ":{$row[2]}" : "{$row[0]}:{$row[1]}"; $conn = mysql_ connect($db_server, 'query_user'); mysql_ select_db("shard_$shardNo", $conn); return array($...
Ngày tải lên: 20/10/2013, 17:15
MySQL High Availability- P6
... is relatively high (it is time-consuming compared to accessing main memory directly), modern operating systems can do it so quickly that the penalty isn’t normally an issue unless it reaches such a high ... swapping at a high level periodically to reclaim memory. Be sure to measure memory usage over a period of time to ensure you are not observing a normal cleanup operation. When period...
Ngày tải lên: 20/10/2013, 17:15
MySQL High Availability- P7
... sub- layer in MySQL an area not well understood or covered by other reference sources. How MySQL Communicates Performance There are two mechanisms you can use to govern and monitor behavior in the MySQL server. ... performance in MySQL, there is no (free) advanced profiling tool available. While the basic MySQL installation does not include formal tools for monitoring da- tabase impro...
Ngày tải lên: 24/10/2013, 15:15
MySQL High Availability- P9
... online MySQL Reference Man ual. The following shows a configuration file with typical settings for the first file, cov- ering the data you want to back up: [mysqld] datadir = /usr/local /mysql/ data innodb_data_home_dir ... /usr/local /mysql/ data innodb_data_home_dir = /usr/local /mysql/ data innodb_data_file_path = ibdata1:10M:autoextend innodb_log_group_home_dir = /usr/local /mysql/ data...
Ngày tải lên: 28/10/2013, 22:15
MySQL High Availability- P10
... image.binlog_files) command = ["mysqlbinlog", " start-position=%s" % (image.backup_position.pos), " stop-datetime=%s" % (datetime)] mysqlbinlog_proc = Popen(mysqlbinlog_command ... stdout=PIPE) mysql_ command = [" ;mysql& quot;, " host=%s" % (server.host), " user=%s" % (server.sql_user.name), " password=%s" % (server.sql...
Ngày tải lên: 28/10/2013, 22:15
MySQL High Availability- P11
... resource in the cloud tomorrow. Using MySQL in the Amazon cloud is only slightly different from using MySQL on your own hardware. If you use an AMI with MySQL installed and configured, you can quickly ... a few of the more common practices to get the best performance using MySQL in the cloud: Run only one MySQL server per EC2 instance MySQL will run faster with dedicated computati...
Ngày tải lên: 07/11/2013, 19:15
MySQL High Availability- P12
... paper “Optimizing Performance of the MySQL Cluster Database” at http://www .mysql. com/why -mysql/ white-papers /mysql_ wp_cluster_perfomance.php. 560 | Chapter 15: MySQL Cluster Please purchase PDF ... will be well on your way to making MySQL Cluster the best high- performance, high- availability solution for your organization. For more information about optimizing MySQL Cluster, s...
Ngày tải lên: 07/11/2013, 20:15
MySQL High Availability- P13
... 457, 463 Query Analyzer, 458 MySQL Enterprise Server, 456 MySQL Forge, 155 MySQL Migration Toolkit, 302 MySQL monitor, 294 MySQL Monitor and Advisor (MONyog) tool, 317 MySQL Proxy data sharding ... promotion, 135–141 MySQL Query Browser, 312–313 MySQL servers benchmark suite, 318–319 communicating performance, 293 GUI tools, 302 MySQL Administrator, 302–312 MySQL Query Bro...
Ngày tải lên: 07/11/2013, 20:15