Mysql undo

MySQL的Undo表空间用于存储回滚日志,这些日志记录如何撤销事务对聚集索引记录的更改。Undo日志存在于回滚段内,可以存储在单独的表空间而非系统表空间中。配置Undo表空间涉及设定innodb_undo_tablespaces和innodb_rollback_segments等参数,并考虑性能影响。当Undo表空间超出innodb_max_undo_log_size限制时,可通过启用innodb_undo_log_truncate并调整innodb_purge_rseg_truncate_frequency来加速截断,但频繁截断可能短暂影响性能,建议增加Undo表空间数量以降低影响。
摘要由CSDN通过智能技术生成

14.6.3.4 Undo Tablespaces

   Undo tablespaces contain undo logs, which are collections of undo log records that contain information about how to undo the latest change by a transaction to a clustered index record.Undo logs exist within undo log segments, which are contained within rollback segments. The innodb_rollback_segments variable defines the number of rollback segments allocated to each undo tablespace.

   回滚表空间包含回滚日志,回滚日志是回滚日志记录的集合,其中包含有关如何回滚事务对聚集索引记录的最新更改的信息。回滚日志存在于回滚日志段中,回滚日志段包含在回滚段中。innodb_rollback_segments变量定义分配给每个undo表空间的回滚段数。

 

   Undo logs can be stored in one or more undo tablespaces instead of the system tablespace. This layout differs from the default configuration in which undo logs reside in the system tablespace. The I/O patterns for undo logs make undo tablespaces good candidates for SSD storage, while keeping the system tablespace on hard disk storage.

   撤消日志可以存储在一个或多个撤消表空间中,而不是存储在系统表空间中。这种设计有别于回滚日志包含在系统表空间中的默认配置。undo日志的I/O模式使undo表空间很适合SSD存储,同时将系统表空间保留在硬盘存储上。

 

   The number of undo tablespaces used by InnoDB is controlled by the innodb_undo_tablespaces
configuration option. This option can only be configured when initializing the MySQL instance. It cannot
be changed afterward.

  InnoDB使用的undo表空间的数量由Innodb_undo_tablespaces配置选项控制。此选项只能在初始化MySQL实例时配置。以后不能更改。

 

Note
The innodb_undo_tablespaces configuration option is deprecated and will
be removed in a future release.

innodb_undo_tablespaces配置项已被废弃,将在高版本中移除。

 

Undo tablespaces and individual segments inside those tablespaces cannot be dropped. However,
undo logs stored in undo tablespaces can be truncated. For more information, see Truncating Undo
Tablespaces.

回滚表空间和这些表空间中的各个段是不能被删除的。但是,可以truncate存储在undo表空间中的undo日志。有关详细信息,请参见truncate undo表空间。

 

 

 

Configuring Undo Tablespaces

To configure undo tablespaces for a MySQL instance, perform the following steps. It is assumed that
you are performing the procedure on a test instance prior to deploying the configuration to a production
system.

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值