MySQL Cluster7.5でNDBINFOに新たに便利なテーブルが追加されているので、此方にリストアップしておきました。詳細に関しては、以下のマニュアルを参照下さい。
MySQL Cluster7.5 pdfマニュアル
20.1.4 What is New in MySQL NDB Cluster 7.5
あと、オンラインでデータノードを追加したあとに、テーブルのデータを再分布する場合のコマンドがALTER TABLE ~ ONLINEではなくなりました。
MySQLと同じALTER TABLE ~ ALGORITHM = INPLACE ~に変わりました。
ALTER TABLE Changes:
NDB Cluster formerly supported an alternative syntax for online ALTER TABLE.
This is no longer supported in NDB Cluster 7.5, which makes exclusive use of
ALGORITHM = DEFAULT|COPY|INPLACE for table DDL, as in the standard MySQL Server.
New Tables in NDBINFO
メタデータの確認や、MySQL Cluster内部で何処でLOCKが発生しているか確認し易くなってます。
便利です。
/***** provides per-thread CPU statistics gathered each second, for each thread running in the NDB kernel. ******/ mysql> select * from cpustat; +---------+--------+---------+-----------+---------+-------------+-----------------+-----------------+-------------+--------------------+--------------+ | node_id | thr_no | OS_user | OS_system | OS_idle | thread_exec | thread_sleeping | thread_spinning | thread_send | thread_buffer_full | elapsed_time | +---------+--------+---------+-----------+---------+-------------+-----------------+-----------------+-------------+--------------------+--------------+ | 1 | 0 | 0 | 0 | 99 | 1 | 99 | 0 | 0 | 0 | 1022319 | | 1 | 1 | 0 | 1 | 99 | 0 | 100 | 0 | 0 | 0 | 1043157 | | 1 | 2 | 1 | 0 | 99 | 0 | 100 | 0 | 0 | 0 | 1044002 | | 1 | 3 | 6 | 1 | 93 | 2 | 98 | 0 | 0 | 0 | 1004561 | | 2 | 0 | 0 | 0 | 99 | 0 | 100 | 0 | 0 | 0 | 1021821 | | 2 | 1 | 0 | 0 | 100 | 0 | 100 | 0 | 0 | 0 | 1041181 | | 2 | 2 | 0 | 0 | 99 | 0 | 100 | 0 | 0 | 0 | 1000446 | | 2 | 3 | 4 | 4 | 92 | 2 | 98 | 0 | 0 | 0 | 1006593 | +---------+--------+---------+-----------+---------+-------------+-----------------+-----------------+-------------+--------------------+--------------+ 8 rows in set (0.01 sec) /***** provides raw, per-thread CPU data obtained each second for each thread running in the NDB kernel. ******/ mysql> select * from cpustat_1sec limit 5; +---------+--------+--------------+----------------+--------------+-----------+------------+-----------+-----------+------------------+--------------+ | node_id | thr_no | OS_user_time | OS_system_time | OS_idle_time | exec_time | sleep_time | spin_time | send_time | buffer_full_time | elapsed_time | +---------+--------+--------------+----------------+--------------+-----------+------------+-----------+-----------+------------------+--------------+ | 1 | 0 | 4249 | 6543 | 1008090 | 6723 | 1012159 | 0 | 0 | 0 | 1018882 | | 1 | 0 | 3042 | 7882 | 1012472 | 6636 | 1016760 | 0 | 0 | 0 | 1023396 | | 1 | 0 | 3779 | 6373 | 1003011 | 6882 | 1006281 | 0 | 0 | 0 | 1013163 | | 1 | 0 | 2011 | 6151 | 1030521 | 5951 | 1032732 | 0 | 0 | 0 | 1038683 | | 1 | 0 | 4056 | 5567 | 1039330 | 6329 | 1042624 | 0 | 0 | 0 | 1048953 | +---------+--------+--------------+----------------+--------------+-----------+------------+-----------+-----------+------------------+--------------+ 5 rows in set (0.00 sec) /***** provides raw, per-thread CPU data obtained each 50 milliseconds for each thread running in the NDB kernel ******/ mysql> select * from cpustat_50ms limit 5; +---------+--------+--------------+----------------+--------------+-----------+------------+-----------+-----------+------------------+--------------+ | node_id | thr_no | OS_user_time | OS_system_time | OS_idle_time | exec_time | sleep_time | spin_time | send_time | buffer_full_time | elapsed_time | +---------+--------+--------------+----------------+--------------+-----------+------------+-----------+-----------+------------------+--------------+ | 1 | 0 | 138 | 180 | 56563 | 244 | 56637 | 0 | 0 | 0 | 56881 | | 1 | 0 | 411 | 537 | 58241 | 626 | 58563 | 0 | 0 | 0 | 59189 | | 1 | 0 | 124 | 630 | 52635 | 471 | 52918 | 0 | 0 | 0 | 53389 | | 1 | 0 | 0 | 943 | 49634 | 398 | 50179 | 0 | 0 | 0 | 50577 | | 1 | 0 | 0 | 377 | 52557 | 299 | 52635 | 0 | 0 | 0 | 52934 | +---------+--------+--------------+----------------+--------------+-----------+------------+-----------+-----------+------------------+--------------+ 5 rows in set (0.00 sec) mysql> /***** provides raw, per-thread CPU data obtained each 20 seconds, for each thread running in the NDB kernel. ******/ mysql> mysql> select * from cpustat_20sec limit 5; +---------+--------+--------------+----------------+--------------+-----------+------------+-----------+-----------+------------------+--------------+ | node_id | thr_no | OS_user_time | OS_system_time | OS_idle_time | exec_time | sleep_time | spin_time | send_time | buffer_full_time | elapsed_time | +---------+--------+--------------+----------------+--------------+-----------+------------+-----------+-----------+------------------+--------------+ | 1 | 0 | 85502 | 105281 | 19833351 | 131831 | 19892303 | 0 | 0 | 0 | 20024134 | | 1 | 0 | 85028 | 98842 | 19820167 | 121907 | 19882130 | 0 | 0 | 0 | 20004037 | | 1 | 0 | 77030 | 105719 | 19842259 | 121151 | 19903857 | 0 | 0 | 0 | 20025008 | | 1 | 0 | 74431 | 101572 | 19827545 | 122715 | 19880833 | 0 | 0 | 0 | 20003548 | | 1 | 0 | 85342 | 101835 | 19813255 | 127802 | 19872630 | 0 | 0 | 0 | 20000432 | +---------+--------+--------------+----------------+--------------+-----------+------------+-----------+-----------+------------------+--------------+ 5 rows in set (0.00 sec) mysql> /***** provides information about threads running in the NDB kernel. ******/ mysql> select * from threads; +---------+--------+-------------+------------------------------------------------------------------+ | node_id | thr_no | thread_name | thread_description | +---------+--------+-------------+------------------------------------------------------------------+ | 1 | 0 | main | main thread, schema and distribution handling | | 1 | 1 | rep | rep thread, asynch replication and proxy block handling | | 1 | 2 | ldm | ldm thread, handling a set of data partitions | | 1 | 3 | recv | receive thread, performing receieve and polling for new receives | | 2 | 0 | main | main thread, schema and distribution handling | | 2 | 1 | rep | rep thread, asynch replication and proxy block handling | | 2 | 2 | ldm | ldm thread, handling a set of data partitions | | 2 | 3 | recv | receive thread, performing receieve and polling for new receives | +---------+--------+-------------+------------------------------------------------------------------+ 8 rows in set (0.01 sec) mysql> /***** provides information about current lock requests holding and waiting for locks on NDB tables in an NDB Cluster , and is intended as a companion table to cluster_operations. ******/ mysql> desc cluster_locks; +-----------------+---------------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-----------------+---------------------+------+-----+---------+-------+ | node_id | int(10) unsigned | YES | | NULL | | | block_instance | int(10) unsigned | YES | | NULL | | | tableid | int(10) unsigned | YES | | NULL | | | fragmentid | int(10) unsigned | YES | | NULL | | | rowid | bigint(20) unsigned | YES | | NULL | | | transid | bigint(22) unsigned | YES | | NULL | | | mode | varchar(1) | NO | | | | | state | varchar(1) | NO | | | | | detail | varchar(1) | NO | | | | | op | varchar(9) | NO | | | | | duration_millis | int(10) unsigned | YES | | NULL | | | lock_num | int(10) unsigned | YES | | NULL | | | waiting_for | bigint(10) unsigned | YES | | NULL | | +-----------------+---------------------+------+-----+---------+-------+ 13 rows in set (0.00 sec) mysql> /***** provides information about counts of lock claim requests, and the outcomes of these requests on a per-fragment basis, serving as a companion table to operations_per_fragment and memory_per_fragment. ******/ mysql> select * from locks_per_fragment limit 5; +------------------------------+------------------------+-------------------+----------+---------+----------------+--------------+--------+-----------+------------+--------------+--------+-----------+------------+--------------+----------------+------------------+ | fq_name | parent_fq_name | type | table_id | node_id | block_instance | fragment_num | ex_req | ex_imm_ok | ex_wait_ok | ex_wait_fail | sh_req | sh_imm_ok | sh_wait_ok | sh_wait_fail | wait_ok_millis | wait_fail_millis | +------------------------------+------------------------+-------------------+----------+---------+----------------+--------------+--------+-----------+------------+--------------+--------+-----------+------------+--------------+----------------+------------------+ | TEST_DB/def/NDB$BLOB_82_1 | TEST_DB/def/T_NDB_JSON | User table | 83 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | TEST_DB/def/NDB$BLOB_82_1 | TEST_DB/def/T_NDB_JSON | User table | 83 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | TEST_DB/def/NDB$BLOB_82_1 | TEST_DB/def/T_NDB_JSON | User table | 83 | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | TEST_DB/def/NDB$BLOB_82_1 | TEST_DB/def/T_NDB_JSON | User table | 83 | 2 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | sys/def/24/idx_memo01$unique | TEST_DB/def/T_TABLE01 | Unique hash index | 79 | 1 | 1 | 0 | 10 | 10 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | +------------------------------+------------------------+-------------------+----------+---------+----------------+--------------+--------+-----------+------------+--------------+--------+-----------+------------+--------------+----------------+------------------+ 5 rows in set (0.03 sec) mysql> mysql> select * from locks_per_fragment where fq_name like '%sbtest1'; +----------------------+----------------+------------+----------+---------+----------------+--------------+--------+-----------+------------+--------------+--------+-----------+------------+--------------+----------------+------------------+ | fq_name | parent_fq_name | type | table_id | node_id | block_instance | fragment_num | ex_req | ex_imm_ok | ex_wait_ok | ex_wait_fail | sh_req | sh_imm_ok | sh_wait_ok | sh_wait_fail | wait_ok_millis | wait_fail_millis | +----------------------+----------------+------------+----------+---------+----------------+--------------+--------+-----------+------------+--------------+--------+-----------+------------+--------------+----------------+------------------+ | sysbench/def/sbtest1 | NULL | User table | 90 | 1 | 1 | 0 | 5080 | 5080 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | sysbench/def/sbtest1 | NULL | User table | 90 | 1 | 1 | 1 | 4920 | 4920 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | sysbench/def/sbtest1 | NULL | User table | 90 | 2 | 1 | 0 | 5080 | 5080 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | sysbench/def/sbtest1 | NULL | User table | 90 | 2 | 1 | 1 | 4920 | 4920 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | +----------------------+----------------+------------+----------+---------+----------------+--------------+--------+-----------+------------+--------------+--------+-----------+------------+--------------+----------------+------------------+ 4 rows in set (0.03 sec) mysql> /***** similar in structure to the cluster_locks table, and provides a subset of the information found in the latter table, but which is specific to the SQL node ******/ mysql> desc server_locks; +---------------------+---------------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +---------------------+---------------------+------+-----+---------+-------+ | mysql_connection_id | bigint(21) unsigned | NO | | 0 | | | node_id | int(10) unsigned | YES | | NULL | | | block_instance | int(10) unsigned | YES | | NULL | | | tableid | int(10) unsigned | YES | | NULL | | | fragmentid | int(10) unsigned | YES | | NULL | | | rowid | bigint(20) unsigned | YES | | NULL | | | transid | bigint(22) unsigned | YES | | NULL | | | mode | varchar(1) | NO | | | | | state | varchar(1) | NO | | | | | detail | varchar(1) | NO | | | | | op | varchar(9) | NO | | | | | duration_millis | int(10) unsigned | YES | | NULL | | | lock_num | int(10) unsigned | YES | | NULL | | | waiting_for | bigint(10) unsigned | YES | | NULL | | +---------------------+---------------------+------+-----+---------+-------+ 14 rows in set (0.00 sec) mysql> /***** provides the names and types of database objects in NDB, as well as information about parent obejcts where applicable ******/ mysql> select * from dict_obj_info limit 5; +------+------+----------+-------+-----------------+---------------+----------------------------+ | type | id | version | state | parent_obj_type | parent_obj_id | fq_name | +------+------+----------+-------+-----------------+---------------+----------------------------+ | 6 | 89 | 1 | 4 | 2 | 88 | sys/def/88/PRIMARY | | 18 | 44 | 1 | 4 | 6 | 98 | NDB$INDEX_98_CUSTOM | | 2 | 31 | 16777218 | 4 | 0 | 0 | TEST_DB_InnoDB/def/Country | | 6 | 59 | 1 | 4 | 2 | 33 | sys/def/33/PRIMARY | | 18 | 2 | 1 | 4 | 6 | 37 | NDB$INDEX_37_CUSTOM | +------+------+----------+-------+-----------------+---------------+----------------------------+ 5 rows in set (0.00 sec) mysql> /***** provides NDB table distribution status information ******/ mysql> select * from table_distribution_status limit 5; +---------+----------+-----------------+-------------------+----------------+------------+-------------+----------------+---------------+--------------------+-----------------+------------------+ | node_id | table_id | tab_copy_status | tab_update_status | tab_lcp_status | tab_status | tab_storage | tab_partitions | tab_fragments | current_scan_count | scan_count_wait | is_reorg_ongoing | +---------+----------+-----------------+-------------------+----------------+------------+-------------+----------------+---------------+--------------------+-----------------+------------------+ | 1 | 2 | IDLE | IDLE | COMPLETED | ACTIVE | NORMAL | 2 | 2 | 0 | 0 | 0 | | 1 | 3 | IDLE | IDLE | COMPLETED | ACTIVE | NORMAL | 2 | 2 | 0 | 0 | 0 | | 1 | 11 | IDLE | IDLE | COMPLETED | ACTIVE | NORMAL | 2 | 2 | 0 | 0 | 0 | | 1 | 12 | IDLE | IDLE | COMPLETED | ACTIVE | NORMAL | 2 | 2 | 0 | 0 | 0 | | 1 | 13 | IDLE | IDLE | COMPLETED | ACTIVE | NORMAL | 2 | 2 | 0 | 0 | 0 | +---------+----------+-----------------+-------------------+----------------+------------+-------------+----------------+---------------+--------------------+-----------------+------------------+ 5 rows in set (0.00 sec) mysql> /***** provides information about the distribution of NDB table fragments ******/ mysql> select * from table_fragments limit 5; +---------+----------+--------------+-------------+-----------------+-------------+----------------+-----------------+-------------------+----------------------+-----------------------+----------------------+--------------------+-------------------+------------------+ | node_id | table_id | partition_id | fragment_id | partition_order | log_part_id | no_of_replicas | current_primary | preferred_primary | current_first_backup | current_second_backup | current_third_backup | num_alive_replicas | num_dead_replicas | num_lcp_replicas | +---------+----------+--------------+-------------+-----------------+-------------+----------------+-----------------+-------------------+----------------------+-----------------------+----------------------+--------------------+-------------------+------------------+ | 1 | 2 | 4294967295 | 0 | 0 | 0 | 2 | 1 | 1 | 2 | 0 | 0 | 2 | 0 | 0 | | 1 | 2 | 4294967295 | 1 | 0 | 0 | 2 | 2 | 2 | 1 | 0 | 0 | 2 | 0 | 0 | | 1 | 3 | 4294967295 | 0 | 0 | 1 | 2 | 1 | 1 | 2 | 0 | 0 | 2 | 0 | 0 | | 1 | 3 | 4294967295 | 1 | 0 | 1 | 2 | 2 | 2 | 1 | 0 | 0 | 2 | 0 | 0 | | 1 | 11 | 4294967295 | 0 | 0 | 3 | 2 | 1 | 1 | 2 | 0 | 0 | 2 | 0 | 0 | +---------+----------+--------------+-------------+-----------------+-------------+----------------+-----------------+-------------------+----------------------+-----------------------+----------------------+--------------------+-------------------+------------------+ 5 rows in set (0.00 sec) mysql> /***** provides information about logging, checkpointing, storage, and other options in force for each NDB table ******/ mysql> select * from table_info where table_id = 31; +----------+--------------+------------------+-----------------------+-------------+------------------+--------------+------------+-------------------+------------+ | table_id | logged_table | row_contains_gci | row_contains_checksum | read_backup | fully_replicated | storage_type | hashmap_id | partition_balance | create_gci | +----------+--------------+------------------+-----------------------+-------------+------------------+--------------+------------+-------------------+------------+ | 31 | 1 | 1 | 1 | 0 | 0 | MEMORY | 1 | FOR_RP_BY_LDM | 0 | +----------+--------------+------------------+-----------------------+-------------+------------------+--------------+------------+-------------------+------------+ 1 row in set (0.01 sec) mysql> mysql> select * from table_info where table_id = 90; +----------+--------------+------------------+-----------------------+-------------+------------------+--------------+------------+-------------------+------------+ | table_id | logged_table | row_contains_gci | row_contains_checksum | read_backup | fully_replicated | storage_type | hashmap_id | partition_balance | create_gci | +----------+--------------+------------------+-----------------------+-------------+------------------+--------------+------------+-------------------+------------+ | 90 | 1 | 1 | 1 | 1 | 0 | MEMORY | 1 | SPECIFIC | 0 | +----------+--------------+------------------+-----------------------+-------------+------------------+--------------+------------+-------------------+------------+ 1 row in set (0.01 sec) mysql> /***** provides information about fragment replicas ******/ mysql> select * from table_replicas limit 5; +---------+----------+-------------+-------------+-----------------+----------------+----------------------+----------------------+------------------------+-------------+-------------+----------------------+------------------------+-----------------+------------------+------------------+ | node_id | table_id | fragment_id | initial_gci | replica_node_id | is_lcp_ongoing | num_crashed_replicas | last_max_gci_started | last_max_gci_completed | last_lcp_id | prev_lcp_id | prev_max_gci_started | prev_max_gci_completed | last_create_gci | last_replica_gci | is_replica_alive | +---------+----------+-------------+-------------+-----------------+----------------+----------------------+----------------------+------------------------+-------------+-------------+----------------------+------------------------+-----------------+------------------+------------------+ | 1 | 2 | 0 | 2 | 1 | 0 | 0 | 100360 | 100360 | 45 | 85293 | 85293 | 44 | 85293 | 4294967295 | 1 | | 1 | 2 | 0 | 2 | 2 | 0 | 0 | 100360 | 100360 | 45 | 85293 | 85293 | 44 | 85293 | 4294967295 | 1 | | 1 | 2 | 1 | 2 | 1 | 0 | 0 | 100360 | 100360 | 45 | 85293 | 85293 | 44 | 85293 | 4294967295 | 1 | | 1 | 2 | 1 | 2 | 2 | 0 | 0 | 100360 | 100360 | 45 | 85293 | 85293 | 44 | 85293 | 4294967295 | 1 | | 1 | 3 | 0 | 2 | 1 | 0 | 0 | 100360 | 100360 | 45 | 85293 | 85293 | 44 | 85293 | 4294967295 | 1 | +---------+----------+-------------+-------------+-----------------+----------------+----------------------+----------------------+------------------------+-------------+-------------+----------------------+------------------------+-----------------+------------------+------------------+ 5 rows in set (0.00 sec) mysql> mysql> select * from table_replicas where table_id = 90; +---------+----------+-------------+-------------+-----------------+----------------+----------------------+----------------------+------------------------+-------------+-------------+----------------------+------------------------+-----------------+------------------+------------------+ | node_id | table_id | fragment_id | initial_gci | replica_node_id | is_lcp_ongoing | num_crashed_replicas | last_max_gci_started | last_max_gci_completed | last_lcp_id | prev_lcp_id | prev_max_gci_started | prev_max_gci_completed | last_create_gci | last_replica_gci | is_replica_alive | +---------+----------+-------------+-------------+-----------------+----------------+----------------------+----------------------+------------------------+-------------+-------------+----------------------+------------------------+-----------------+------------------+------------------+ | 1 | 90 | 0 | 36225 | 1 | 0 | 0 | 100360 | 100360 | 45 | 85293 | 85293 | 44 | 85293 | 4294967295 | 1 | | 1 | 90 | 0 | 36225 | 2 | 0 | 0 | 100360 | 100360 | 45 | 85293 | 85293 | 44 | 85293 | 4294967295 | 1 | | 1 | 90 | 1 | 36225 | 1 | 0 | 0 | 100360 | 100360 | 45 | 85293 | 85293 | 44 | 85293 | 4294967295 | 1 | | 1 | 90 | 1 | 36225 | 2 | 0 | 0 | 100360 | 100360 | 45 | 85293 | 85293 | 44 | 85293 | 4294967295 | 1 | +---------+----------+-------------+-------------+-----------------+----------------+----------------------+----------------------+------------------------+-------------+-------------+----------------------+------------------------+-----------------+------------------+------------------+ 4 rows in set (0.01 sec) mysql>
config_paramsとconfig_valuesをJOINした結果
パラメータ確認し易くて良い
mysql> SELECT p.param_name AS Name, -> v.node_id AS Node, -> p.param_type AS Type, -> p.param_default AS 'Default', -> p.param_min AS Minimum, -> p.param_max AS Maximum, -> CASE p.param_mandatory WHEN 1 THEN 'Y' ELSE 'N' END AS 'Required', -> v.config_value AS Current -> FROM config_params p -> JOIN config_values v -> ON p.param_number = v.config_param -> WHERE p. param_name IN ('NodeId', 'HostName','DataMemory', 'IndexMemory'); +-------------+------+----------+-----------+---------+---------------+----------+----------------+ | Name | Node | Type | Default | Minimum | Maximum | Required | Current | +-------------+------+----------+-----------+---------+---------------+----------+----------------+ | NodeId | 1 | unsigned | | 1 | 48 | Y | 1 | | HostName | 1 | string | localhost | | | N | 192.168.56.114 | | DataMemory | 1 | unsigned | 83886080 | 1048576 | 1099511627776 | N | 134217728 | | IndexMemory | 1 | unsigned | 18874368 | 1048576 | 1099511627776 | N | 68157440 | | NodeId | 2 | unsigned | | 1 | 48 | Y | 2 | | HostName | 2 | string | localhost | | | N | 192.168.56.115 | | DataMemory | 2 | unsigned | 83886080 | 1048576 | 1099511627776 | N | 134217728 | | IndexMemory | 2 | unsigned | 18874368 | 1048576 | 1099511627776 | N | 68157440 | +-------------+------+----------+-----------+---------+---------------+----------+----------------+ 8 rows in set (0.02 sec)
cluster_locksでロックを確認した場合
mysql> select * from ndbinfo.cluster_locks; +---------+----------------+---------+------------+-------+-------------------+------+-------+--------+------+-----------------+----------+-------------+ | node_id | block_instance | tableid | fragmentid | rowid | transid | mode | state | detail | op | duration_millis | lock_num | waiting_for | +---------+----------------+---------+------------+-------+-------------------+------+-------+--------+------+-----------------+----------+-------------+ | 2 | 1 | 107 | 1 | 0 | 13569072998383655 | X | W | | READ | 2593 | 0 | 1 | | 2 | 1 | 107 | 1 | 0 | 13567973486755886 | S | H | * | READ | 7641 | 1 | NULL | | 2 | 1 | 113 | 1 | 0 | 13567973486755886 | S | H | * | READ | 7641 | 3 | NULL | +---------+----------------+---------+------------+-------+-------------------+------+-------+--------+------+-----------------+----------+-------------+ 3 rows in set (0.04 sec)
MySQL7.5のDefault設定値
何も設定しなければ、こちらの値が適用されます。
+------------------------------------------+----------+------------+----------+----------------+----------+ | Name | Type | Default | Minimum | Maximum | Required | +------------------------------------------+----------+------------+----------+----------------+----------+ | MaxNoOfSubscriptions | unsigned | 0 | 0 | 4294967039 | N | | MaxNoOfSubscribers | unsigned | 0 | 0 | 4294967039 | N | | MaxNoOfConcurrentSubOperations | unsigned | 256 | 0 | 4294967039 | N | | TcpBind_INADDR_ANY | bool | 0 | | | N | | HostName | string | localhost | | | N | | NodeId | unsigned | | 1 | 48 | Y | | ServerPort | unsigned | | 1 | 65535 | N | | NoOfReplicas | unsigned | 2 | 1 | 4 | N | | MaxNoOfAttributes | unsigned | 1000 | 32 | 4294967039 | N | | MaxNoOfTables | unsigned | 128 | 8 | 20320 | N | | MaxNoOfOrderedIndexes | unsigned | 128 | 0 | 4294967039 | N | | MaxNoOfUniqueHashIndexes | unsigned | 64 | 0 | 4294967039 | N | | MaxNoOfConcurrentIndexOperations | unsigned | 8192 | 0 | 4294967039 | N | | MaxNoOfTriggers | unsigned | 768 | 0 | 4294967039 | N | | MaxNoOfFiredTriggers | unsigned | 4000 | 0 | 4294967039 | N | | MaxNoOfSavedMessages | unsigned | 25 | 0 | 4294967039 | N | | LockExecuteThreadToCPU | bitmask | | | | N | | LockMaintThreadsToCPU | unsigned | | 0 | 65535 | N | | RealtimeScheduler | bool | 0 | | | N | | LockPagesInMainMemory | unsigned | 0 | 0 | 2 | N | | TimeBetweenWatchDogCheck | unsigned | 6000 | 70 | 4294967039 | N | | SchedulerExecutionTimer | unsigned | 50 | 0 | 11000 | N | | MaxSendDelay | unsigned | 0 | 0 | 11000 | N | | SchedulerSpinTimer | unsigned | 0 | 0 | 500 | N | | SchedulerResponsiveness | unsigned | 5 | 0 | 10 | N | | __sched_scan_priority | unsigned | 6 | 1 | 6 | N | | TimeBetweenWatchDogCheckInitial | unsigned | 6000 | 70 | 4294967039 | N | | StopOnError | bool | 1 | | | N | | MaxNoOfConcurrentOperations | unsigned | 32768 | 32 | 4294967039 | N | | MaxDMLOperationsPerTransaction | unsigned | 4294967295 | 32 | 4294967295 | N | | MaxNoOfLocalOperations | unsigned | | 32 | 4294967039 | N | | MaxNoOfLocalScans | unsigned | | 32 | 4294967039 | N | | BatchSizePerLocalScan | unsigned | 256 | 1 | 992 | N | | MaxNoOfConcurrentTransactions | unsigned | 4096 | 32 | 4294967039 | N | | MaxNoOfConcurrentScans | unsigned | 256 | 2 | 500 | N | | TransactionBufferMemory | unsigned | 1048576 | 1024 | 4294967039 | N | | IndexMemory | unsigned | 18874368 | 1048576 | 1099511627776 | N | | DataMemory | unsigned | 83886080 | 1048576 | 1099511627776 | N | | UndoIndexBuffer | unsigned | 2097152 | 1048576 | 4294967039 | N | | UndoDataBuffer | unsigned | 16777216 | 1048576 | 4294967039 | N | | RedoBuffer | unsigned | 33554432 | 1048576 | 4294967039 | N | | LongMessageBuffer | unsigned | 67108864 | 524288 | 4294967039 | N | | DiskPageBufferMemory | unsigned | 67108864 | 4194304 | 1099511627776 | N | | SharedGlobalMemory | unsigned | 134217728 | 0 | 70368744177664 | N | | StartPartialTimeout | unsigned | 30000 | 0 | 4294967039 | N | | StartPartitionedTimeout | unsigned | 60000 | 0 | 4294967039 | N | | StartFailureTimeout | unsigned | 0 | 0 | 4294967039 | N | | StartNoNodegroupTimeout | unsigned | 15000 | 0 | 4294967039 | N | | HeartbeatIntervalDbDb | unsigned | 5000 | 10 | 4294967039 | N | | ConnectCheckIntervalDelay | unsigned | 0 | 0 | 4294967039 | N | | HeartbeatIntervalDbApi | unsigned | 1500 | 100 | 4294967039 | N | | TimeBetweenLocalCheckpoints | unsigned | 20 | 0 | 31 | N | | TimeBetweenGlobalCheckpoints | unsigned | 2000 | 20 | 32000 | N | | TimeBetweenGlobalCheckpointsTimeout | unsigned | 120000 | 10 | 4294967039 | N | | TimeBetweenEpochs | unsigned | 100 | 0 | 32000 | N | | TimeBetweenEpochsTimeout | unsigned | 0 | 0 | 256000 | N | | MaxBufferedEpochs | unsigned | 100 | 1 | 100000 | N | | MaxBufferedEpochBytes | unsigned | 26214400 | 26214400 | 4294967039 | N | | NoOfFragmentLogParts | unsigned | 4 | 4 | 32 | N | | NoOfFragmentLogFiles | unsigned | 16 | 3 | 4294967039 | N | | FragmentLogFileSize | unsigned | 16777216 | 4194304 | 1073741824 | N | | InitFragmentLogFiles | string | sparse | | | N | | DiskIOThreadPool | unsigned | 2 | 0 | 4294967039 | N | | MaxNoOfOpenFiles | unsigned | | 20 | 4294967039 | N | | InitialNoOfOpenFiles | unsigned | 27 | 20 | 4294967039 | N | | TimeBetweenInactiveTransactionAbortCheck | unsigned | 1000 | 1000 | 4294967039 | N | | TransactionInactiveTimeout | unsigned | 4294967039 | 0 | 4294967039 | N | | TransactionDeadlockDetectionTimeout | unsigned | 1200 | 50 | 4294967039 | N | | Diskless | bool | 0 | | | N | | ArbitrationTimeout | unsigned | 7500 | 10 | 4294967039 | N | | Arbitration | enum | Default | | | N | | DataDir | string | . | | | N | | FileSystemPath | string | | | | N | | LogLevelStartup | unsigned | 1 | 0 | 15 | N | | LogLevelShutdown | unsigned | 0 | 0 | 15 | N | | LogLevelStatistic | unsigned | 0 | 0 | 15 | N | | LogLevelCheckpoint | unsigned | 0 | 0 | 15 | N | | LogLevelNodeRestart | unsigned | 0 | 0 | 15 | N | | LogLevelConnection | unsigned | 0 | 0 | 15 | N | | LogLevelCongestion | unsigned | 0 | 0 | 15 | N | | LogLevelError | unsigned | 0 | 0 | 15 | N | | LogLevelInfo | unsigned | 0 | 0 | 15 | N | | BackupDataDir | string | | | | N | | DiskSyncSize | unsigned | 4194304 | 32768 | 4294967039 | N | | MinDiskWriteSpeed | unsigned | 10485760 | 1048576 | 1099511627776 | N | | MaxDiskWriteSpeed | unsigned | 20971520 | 1048576 | 1099511627776 | N | | MaxDiskWriteSpeedOtherNodeRestart | unsigned | 52428800 | 1048576 | 1099511627776 | N | | MaxDiskWriteSpeedOwnRestart | unsigned | 209715200 | 1048576 | 1099511627776 | N | | BackupDiskWriteSpeedPct | unsigned | 50 | 0 | 90 | N | | BackupDataBufferSize | unsigned | 16777216 | 524288 | 4294967039 | N | | BackupLogBufferSize | unsigned | 16777216 | 2097152 | 4294967039 | N | | BackupWriteSize | unsigned | 262144 | 32768 | 4294967039 | N | | BackupMaxWriteSize | unsigned | 1048576 | 262144 | 4294967039 | N | | StringMemory | unsigned | 25 | 0 | 4294967039 | N | | MaxAllocate | unsigned | 33554432 | 1048576 | 1073741824 | N | | MemReportFrequency | unsigned | 0 | 0 | 4294967039 | N | | BackupReportFrequency | unsigned | 0 | 0 | 4294967039 | N | | StartupStatusReportFrequency | unsigned | 0 | 0 | 4294967039 | N | | ODirect | bool | 0 | | | N | | CompressedBackup | bool | 0 | | | N | | CompressedLCP | bool | 0 | | | N | | ExtraSendBufferMemory | unsigned | 0 | 0 | 34359738368 | N | | TotalSendBufferMemory | unsigned | 0 | 262144 | 4294967039 | N | | Nodegroup | unsigned | | 0 | 65536 | N | | MaxNoOfExecutionThreads | unsigned | 0 | 2 | 72 | N | | __ndbmt_lqh_workers | unsigned | | 1 | 4 | N | | __ndbmt_lqh_threads | unsigned | | 1 | 4 | N | | __ndbmt_classic | bool | | | | N | | ThreadConfig | string | | | | N | | FileSystemPathDD | string | | | | N | | FileSystemPathDataFiles | string | | | | N | | FileSystemPathUndoFiles | string | | | | N | | InitialLogfileGroup | string | | | | N | | InitialTablespace | string | | | | N | | MaxLCPStartDelay | unsigned | 0 | 0 | 600 | N | | BuildIndexThreads | unsigned | 0 | 0 | 128 | N | | HeartbeatOrder | unsigned | 0 | 0 | 65535 | N | | DictTrace | unsigned | | 0 | 100 | N | | MaxStartFailRetries | unsigned | 3 | 0 | 4294967039 | N | | StartFailRetryDelay | unsigned | 0 | 0 | 4294967039 | N | | EventLogBufferSize | unsigned | 8192 | 0 | 65536 | N | | Numa | unsigned | 1 | 0 | 1 | N | | RedoOverCommitLimit | unsigned | 20 | 0 | 4294967039 | N | | RedoOverCommitCounter | unsigned | 3 | 0 | 4294967039 | N | | LateAlloc | unsigned | 1 | 0 | 1 | N | | MaxParallelCopyInstances | unsigned | 0 | 0 | 64 | N | | TwoPassInitialNodeRestartCopy | bool | 0 | | | N | | MaxParallelScansPerFragment | unsigned | 256 | 1 | 4294967039 | N | | IndexStatAutoCreate | unsigned | 0 | 0 | 1 | N | | IndexStatAutoUpdate | unsigned | 0 | 0 | 1 | N | | IndexStatSaveSize | unsigned | 32768 | 0 | 4294967039 | N | | IndexStatSaveScale | unsigned | 100 | 0 | 4294967039 | N | | IndexStatTriggerPct | unsigned | 100 | 0 | 4294967039 | N | | IndexStatTriggerScale | unsigned | 100 | 0 | 4294967039 | N | | IndexStatUpdateDelay | unsigned | 60 | 0 | 4294967039 | N | | CrashOnCorruptedTuple | bool | 1 | | | N | | MinFreePct | unsigned | 5 | 0 | 100 | N | | DefaultHashmapSize | unsigned | 0 | 0 | 3840 | N | | LcpScanProgressTimeout | unsigned | 60 | 0 | 4294967039 | N | | __at_restart_skip_indexes | bool | 0 | | | N | | __at_restart_skip_fks | bool | 0 | | | N | | __debug_mixology_level | unsigned | 0 | 0 | 4294967039 | N | | RestartSubscriberConnectTimeout | unsigned | 120000 | 0 | 4294967039 | N | | DiskPageBufferEntries | unsigned | 10 | 1 | 4294967295 | N | +------------------------------------------+----------+------------+----------+----------------+----------+