Overview
zone_deploy_mode specifies the deployment mode for tenants across zones.
Privilege requirements
Query parameters
Both the
systenant and all user tenants can query this parameter using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify parameters
Both the
systenant and user tenants can modify this parameter.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | String |
| Default Value | homo |
| Value range |
|
| Modifiable | Yes, you can use the following methods:ALTER SYSTEM SETStatement modification. |
| Whether to restart the OBServer node for the change to take effect | No |
Usage instructions
By default, a newly created tenant or an upgraded existing tenant operates in homogeneous zone mode. In homogeneous zone mode, the number of units must be the same across all zones. Log streams are symmetrically distributed across zones and are bound to unit groups:
A unit group consists of one unit from each zone, and each unit belongs to only one unit group.
A log stream belongs to only one unit group. Replicas of each log stream are distributed across units within that unit group.
For scaling units, you can only operate at the unit group granularity. The number of units in each zone must be adjusted synchronously to maintain consistency.
To enable the heterogeneous zone mode, you need to change the value of the zone_deploy_mode parameter to hetero. After modification, the value of the zone_deploy_mode parameter cannot be changed back to homo.
Heterogeneous zone mode differs from homogeneous zone mode in the following key aspects:
The concept of unit groups no longer exists for log stream distribution. Log stream replicas in each zone are no longer restricted to symmetric units.
The
UNIT_NUMvalues of resource pools in a tenant can be different, but there can be at most two distinctUNIT_NUMvalues.You can individually modify the
UNIT_NUMof a resource pool under a tenant to achieve scaling at the resource pool level.When you use the
ALTER RESOURCE TENANTstatement to scale down by reducingUNIT_NUM, specifyingUNIT_GROUPfor deletion is not supported.The
UNIT_GROUPparameter is not supported when using the log stream O&M commandsALTER SYSTEM CREATE LSandALTER SYSTEM MODIFY LS.
Configuration example
Set the zone distribution mode for each tenant to heterogeneous zones.
obclient> ALTER SYSTEM SET zone_deploy_mode = 'hetero';