Note
This parameter is available starting with V1.4.
Description
enable_rereplication specifies whether to enable automatic migration and replication of log stream replicas.
Privilege requirements
Query the parameter
The
systenant and all user tenants can query this parameter by using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify the parameter
Only the
systenant can modify this parameter. User tenants cannot modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | Bool |
| Default value | True |
| Value range |
|
| Modifiable | Yes. You can use the ALTER SYSTEM SET statement to modify the parameter. |
| Effective upon OBServer node restart | No. The setting takes effect immediately. |
If you set the enable_rereplication parameter to False:
Automatic migration and replication of log stream replicas cannot be initiated in the following scenarios:
- Adding or removing replicas by changing locality
- Unit migration (excluding unit migration from an
INACTIVEOBServer node) - Changing the
UNIT_NUMparameter
Automatic migration and replication of log stream replicas can still be initiated in the following scenario:
- Unit migration from an
INACTIVEOBServer node
- Unit migration from an
Examples
Enable automatic migration and replication of log stream replicas.
obclient> ALTER SYSTEM SET enable_rereplication = True;