mysql innodbrowlocktime_MYSQL INNODB参数

innodb_adaptive_flushing

命令行格式

--innodb_adaptive_flushing=#

系统变量

参数名称

innodb_adaptive_flushing

参数范围

Global

动态变量

Yes

允许值

类型

Boolean

默认值

ON

·        Specifies whether to dynamicallyadjust the rate of flushing dirty

pages inthe InnoDB buffer pool basedon

the workload. Adjusting the flush rate dynamically is intended to avoidbursts of I/O activity. This setting is enabled by default. See Section 14.13.1.2,“Configuring

the Rate of InnoDB Buffer Pool Flushing” for more information. For general I/O tuningadvice, see Section 8.5.7,“Optimizing

InnoDB Disk I/O”.

·          指定是否要根据负荷动态地调整InnoDB缓冲池中的刷新垃圾页面率。动态地调整垃圾页面率是为了避免突发的I/O并发量。该设置默认为启用。

详见第14.13.1.2,“配置InnoDB缓冲池刷新率”。通用I/O调优建议,见第8.5.7,“优化InnoDB磁盘I/O”。

innodb_adaptive_flushing_lwm

引入版本

5.6.6

命令格式

--innodb_adaptive_flushing_lwm=#

系统参数

名称

innodb_adaptive_flushing_lwm

参数范围

Global

可否动态调整

Yes

允许值范围

类型

numeric

默认值

10

最小值

0

最大值

70

·        Low water mark representingpercentage of redo log capacityat which adaptive

flushing is enabled.

当自适应刷新功能开启时,低水位线表示重做日志的能力的百分比。

innodb_adaptive_hash_index

命令格式

--innodb_adaptive_hash_index=#

系统参数

名称

innodb_adaptive_hash_index

参数范围

Global

是否动态参数

Yes

允许值范围

类型

boolean

默认值

ON

·        Whether the InnoDB adaptive

hash index is enabled or disabled. It may be desirable,depending on your workload, to dynamically enable or disable adaptive

hash indexing to improve query performance. Because the adaptivehash index may not be useful for all workloads, conduct benchmarks with it bothenabled and disabled, using realistic workloads. See Section 14.2.13.6,“Adaptive

Hash Indexes” fordetails.

·        This variable is enabled bydefault. You can modify this parameter using the SET GLOBAL statement,without restarting the server. Changing the setting requires the SUPER privilege.You

can also use --skip-innodb_adaptive_hash_index at server startup to disable it.

·        Disabling the adaptive hash indexempties the hash table immediately. Normal operations can continue while thehash table is emptied, and executing queries that were using the hash tableaccess the index B-trees directly instead. When

the adaptive hash index is re-enabled,the hash table is populated again during normal operation.

无论InnoDBadaptive hash

index是启用还是关闭,需要根据负荷来判断,通过动态地开关 adaptive hash indexing来提高查询功能。由于adaptive hash index不是对所有的负荷都起作用,需根据实际的负荷来控制它启动和关闭的基准。详情请见14.2.13.6,

“Adaptive Hash Indexes”。 该设置默认为启用。只需通过修改GLOBAL配置项来修改,不需要重启服务器。修改改配置需有超级权限。你也可以在服务器通过--skip-innodb_adaptive_hash_index来关闭该功能。

关闭the adaptive hash index,散列表将被立即清空。虽然散列表被清空但正常的操作仍然能继续。之前通过散列表执行的查询而现在将通过B-trees索引查询。当the adaptive hash index重启时,普通操作时将再次使用散列表。

innodb_adaptive_max_sleep_delay

引入版本

5.6.3

命令格式

--innodb_adaptive_max_sleep_delay=#

系统参数

名称

innodb_adaptive_max_sleep_delay

参数范围

Global

可否动态调整

Yes

允许值范围

类型

numeric

默认

150000

最小值

0

最大值

1000000

·        Allows InnoDB toautomatically adjust the value of innodb_thread_sleep_delay up

ordown according to the current workload. Any non-zero value enables automated,dynamic adjustment of theinnodb_thread_sleep_delay value, up to the maximum value specified in theinnodb_adaptive_max_sleep_delay option.

The value represents the number ofmicroseconds. This option can be useful in busy systems, with greater than16 InnoDB threads.(In practice, it is most valuable for MySQL systems with hundreds or thousandsof

simultaneous connections.)

·        For more information, see Section 14.13.5,“Configuring

Thread Concurrency for InnoDB”.

允许InnoDB根据现有负荷自动调整 innodb_thread_sleep_delay值的大小。任何一个非零的值都允许自动使能,动态的调整 innodb_thread_sleep_delay的值,最高值可达 innodb_thread_sleep_delay配置的最大值。在大于16线程并发的InnoDB这样繁忙的系统中,这一配置项很有作用。(在实践中,有数百或成千上万的并发连接MySQL系统,它是最有价值的)

详见14.13.5,“Configuring Thread Concurrency for InnoDB”

innodb_additional_mem_pool_size

不适用版本

5.6.3

命令格式

--innodb_additional_mem_pool_size=#

系统参数

名称

innodb_additional_mem_pool_size

参数范围

Global

可否动态调整

No

允许值范围

类型

numeric

默认值

8388608

最小值

2097152

最大值

4294967295

·        The size in bytes of a memorypool InnoDB usesto store data

dictionary information and other internal data structures. Themore tables you have in your application, the more memory you allocate here.If InnoDB runsout of memory in this pool, it starts

to allocate memory from the operatingsystem and writes warning messages to the MySQL error log. The default value is8MB.

·        This variable relates to the InnoDB internalmemory allocator, which is unused if innodb_use_sys_malloc isenabled.

As of MySQL 5.6.3, innodb_additional_mem_pool_size isdeprecated and will be removed in a future MySQL release.

内存池的空间用于InnoDB字节存储数据字典信息和其他内部数据结构。你的应用程序使用越多的表,分配的内存就越多。如果InnoDB用完了内存储容量,它开始请求操作系统分配内存并将警告消息写入MySQL错误日志。默认值为8MB。

这一变量与InnoDB的内部存储分配有关,当 innodb_use_sys_malloc开启时,这一变量不使用。根据MySQL

5.6.3, innodb_additional_mem_pool_size被弃用并将在新版的MySQL中被删除。

innodb_api_bk_commit_interval

引入版本

5.6.7

命令格式

--innodb_api_bk_commit_interval=#

系统参数

名称

innodb_api_bk_commit_interval

参数范围

Global

可否动态调整

Yes

允许值范围

类型

numeric

默认值

5

最小值

1

最大值

1073741824

·        How often to auto-commit idleconnections that use the InnoDB memcached interface,in seconds. SeeSection 14.18,“InnoDB

Integration with memcached” forusage details for this option.

在短时间内,多久通过InnoDB memcached 界面自动提交空闲连接。详情请看Section 14.18,“InnoDB Integration with memcached”。

innodb_api_disable_rowlock

引入版本

5.6.6

命令格式

--innodb_api_disable_rowlock=#

系统参数

名称

innodb_api_disable_rowlock

参数范围

Global

可否动态调整

No

允许值范围

类型

boolean

默认值

OFF

Use this variable to disable row locks when InnoDB memcached performs DML operations. By default,innodb_api_disable_rowlock is

set to OFF which means that memcached requests row locks for get and setoperations. When innodb_api_disable_rowlock is set

to ON, memcached requestsa table lock instead of row locks.

The innodb_api_disable_rowlock optionis not dynamic. It must be specified on the mysqld commandline

or entered in the MySQL configuration file. Configuration takes effectwhen the plug in is installed, which you do each time the MySQL server isstarted.

当innodb 分页式缓存执行DML操作的时候,使用这个变量去禁用行级锁。默认情况下innodb_api_disable_rowlocky设置为off, 这意味着分页式缓存请求获取和设置操作的行锁。当innodb_api_disable_rowlock 设置为on ,分页式缓存请求表锁而来代替行锁。

Innodb_api_disable_rowlock选项不是动态,它必须指定在mydqld命令行或MYSQL配置文件设置。插件安装后配置才会有效,在配置该参数需要重启数据库服务生效

innodb_api_enable_binlog

引入版本

5.6.6

命令格式

--innodb_api_enable_binlog=#

系统参数

名称

innodb_api_enable_binlog

参数范围

Global

可否动态调整

No

充许值范围

类型

boolean

默认值

OFF

·        Lets you use the InnoDB memcached plugin with the MySQL binary

log. See Section 14.18,“InnoDB Integration with memcached” forusage details

for this option.

允许您使用innodb memcached插件和mysql binary log

详情请看Section 14.18,“InnoDB Integration with memcached”

innodb_api_enable_mdl

引入版本

5.6.6

命令格式

--innodb_api_enable_mdl=#

系统参数

名称

innodb_api_enable_mdl

参数范围

Global

可否动态调整

No

充许值范围

类型

boolean

默认值

OFF

Locks the table used by the InnoDB memcached plugin, so that it cannot be dropped oraltered by DDL through

the SQL interface. See Section 14.18,“InnoDB Integration with memcached” forusage

details for this option.

锁表被用于InnoDB分布式缓存插件中。因此可以在SQL接口被DDL去掉和修改。

详情请看14.18节,

“InnoDB Integration with memcached”。

innodb_api_trx_level

引入版本

5.6.6

命令格式

--innodb_api_trx_level=#

系统参数

名称

innodb_api_trx_level

参数范围

Global

可否动态调整

Yes

充许值范围

类型

numeric

默认值

0

·        Lets you control thetransaction isolation level on queries processed

by the memcached interface. SeeSection 14.18,“InnoDB Integration with memcached” forusage

details for this option. The constants corresponding to the familiarnames are:

§ 0 = READ UNCOMMITTED

§ 1 = READ COMMITTED

§ 2 = REPEATABLE READ

§ 3 = SERIALIZABLE

允许在分布式缓存接口处理中控制独立事务处理等级。细节请参看Section 14.18, “InnoDB Integration with memcached

一些数值的含义为:

§ 0 = READ UNCOMMITTED

§ 1 = READ COMMITTED

§ 2 = REPEATABLE READ

§ 3 = SERIALIZABLE

innodb_autoextend_increment

命令格式

--innodb_autoextend_increment=#

系统参数

名称

innodb_autoextend_increment

参数范围

Global

可否动态调整

Yes

充许值范围 (<= 5.6.5)

类型

numeric

默认值

8

Min Value

1

Max Value

1000

充许值范围 (>= 5.6.6)

类型

numeric

默认值

64

Min Value

1

Max Value

1000

·        The increment size (in MB) forextending the size of an auto-extend InnoDB system

tablespace file when it becomes full. The default value is 64as of MySQL 5.6.6, 8 before that. This variable does not affect the per-tabletablespace files that are created if you use innodb_file_per_table=1.

Thosefiles are auto-extending regardless of the value of innodb_autoextend_increment.

Theinitial extensions are by small amounts, after which extensions occur inincrements of 4MB.

当内存空间满时,增量空间被用来扩展InnoDB system tablespace,在MySQL5.6.6,

8之前默认值为64,如果你设置innodb_file_per_table=1。这个变量将不会在你创建的tablespace 文件里生效。这此文件是自动扩展的,不会参照innodb_autoextend_increment

值。初始化的扩展非常小,当扩展发生时增至4MB。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值