oracle rebalance参数,理解ASM(四)条带化原理和rebalance

zz/2023/6/4 16:07:10

㈠ 条带化

ASM的条带化有两种:coarse和fine-gained

AU是最小空间分配单元,缺省是1M,每个AU缺省由8个128K条带空间组成。

在coarse条带化中,一个磁盘对应一个AU

所以该条带化适合连续的I/O读写,比如全表扫描表

在fine-gained条带化里,一个AU中的8个128K条带空间,平均打散在磁盘上

也就是说,4个磁盘,1个AU是平均分布在4个磁盘,每个磁盘2个128K

适合于对数据读写延迟比较敏感的文件。如redo日志,控制文件,spfile等

㈡ 重平衡

从diskgroup中添加或删除disk时候,将触发RBAL进程创建rebalance计划、计算时间开销

而后、发消息给ARBn进程(ASM Reblance)处理该请求

ARBn进程对每个extents进行locked, relocated和unlocked操作,执行过程中可以参考v$asm_operation视图

ARBn进程的数量由参数ASM_POWER_LIMIT决定

COD (Continuting Operation Directory)用于记录rebalances情况

如果rebalance失败,在重启instance时候,将从COD读取记录,重新启动rebalance

注意事项:

① rebalance仅仅在diskgroup发生改变时候才进行的,并不是定时执行

如果rebalance执行过程中,server宕机,重启后会自动进行rebalance

② 每个disk的大小必须是相同,如果存在一个小盘,因为rebalance将对每个盘的分配相同比例的空间,可能造成rebalance时候空间不足

如果执行过程中,空闲空间不足,造成rebalance失败,将出现ORA-15041错误,需要再添加disk

如果需要频繁添加disk,每一次都可能造成数据的频繁移动,为提高效率,最好批量添加

如果磁盘大小一样,仍然没有进行rebalance,需要查看asm_power_limit

OCP题库有道题:

16. Immediately after adding a new disk to or removing an existing disk from an Automatic Storage Management (ASM) instance,

you find that the performance of the database decreases initially, until the addition or removal process is completed.

Performance then gradually returns to normal levels.

Which two activities could you perform to maintain a consistent performance of the database while adding or removing disks? (Choose two.)

A. increase the number of checkpoint processes

B. define the POWER option while adding or removing the disks

C. increase the number of DBWR processes by setting up a higher value for DB_WRITER_PROCESSES

D. increase the number of slave database writer processes by setting up a higher value for DBWR_IO_SLAVES

E. increase the number of ASM Rebalance processes by setting upa higher value for ASM_POWER_LIMIT during the disk addition or removal

Answer: B, E

http://www.ngui.cc/zz/2389898.html

相关文章

kafka consumer、partition、rebalance

发送消息分配partition Producer发送消息到Topic时,分配partition的算法如下: 如果指定了一个partition,那么直接使用指定的partition 如果没有指定partition,但是指定了key,那么会根据key进行哈希,分配到…

oracle12.2 asm进程,Oracle ASM Rebalance执行过程

磁盘组的rebalance什么时候能完成?这没有一个具体的数值,但ASM本身已经给你提供了一个估算值(GV$ASM_OPERATION.EST_MINUTES),想知道rebalance完成的精确的时间,虽然不能给出一个精确的时间,但是可以查看一些rebalance…

10.Kafka ---- 重新负载Rebalance过程

1.什么是Rebalance重新负载? Rebalance,即对 Kafka 中的分区进行重新分配的过程。如需详细了解 Kafka 的分区分配策略,请点击链接跳转了解更多:8.Kafka 分区分配策略 2.什么时候触发Rebalance操作 当出现以下几种情况时&#xff…

asm rebalance 三个阶段

The disk group rebalance operation has three phases: Planning -一般30秒内File extents relocation --add 3块2t盘- 1T数据 2小时 drop 1T 1.5小时 add 10块2t盘- 8T数据 8小时 drop 5T 8小时Disk compacting --drop 3块2t盘-1T 40分钟 ,add 8T 4小时GOAL Wha…

rebalance的使用

上篇:project的使用 rebalance the output elements are distributed evenly to instances of the next operation in a round-robin fashion 按照round-robin的方式,决定上游算子的某个并发的数据发往下游的哪个并发。该方法可以保证从上游算子到下游…

Kafka rebalance 重平衡深度解析

文章目录rebalance 触发条件分区分配策略rebalance generation消费者状态机rebalance 协议消费者端 rebalance 流程Broker 端重平衡场景解析新成员入组组成员主动离场组成员崩溃离场重平衡时协调者对组内成员提交位移的处理rebalance 监听器consumer group 是用于实现高伸缩性、…

kafka消费者Rebalance机制

目录 1、Rebalance机制 2、消费者Rebalance分区分配策略 3、Rebalance过程 1、Rebalance机制 rebalance就是说如果消费组里的消费者数量有变化或消费的分区数有变化,kafka会重新分配消费者消费分区的关系。比如consumer group中某个消费者挂了,此时会…

RocketMQ源码(十九)之消费者Rebalance

文章目录版本简介Broker端ConsumerManagerConsumerOffsetManagerSubscriptionGroupManager消费端RebalanceService分配策略版本 基于rocketmq-all-4.3.1版本 简介 集群消息同一个消费组只能有一个消费者消费,如果一个Topic有4个MessageQueue,对于Consu…

oracle rebalance参数,【案例】Oracle ASM扩展新LAN加入asm diskgroup asm rebalance 原理

天萃荷净Oracle研究中心案例分析:运维DBA反映Oracle数据库的ASM空间不足,需要扩展。通过划新的LAN加入asm diskgroup并分析asm rebalance 原理。本站文章除注明转载外,均为本站原创: 转载自love wife & love life —Roger 的O…

HDFS Rebalance 介绍

原文:https://blog.csdn.net/xiaofei0859/article/details/49763705 HDFS中的数据按照一定策略分布在集群中的多个数据节点上,但在某些情况下,数据的分布也会出现不均衡的情况,比如说集群新增加了节点,在新增加的节点上…