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 use theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview to query this parameter.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. |
When enable_rereplication is disabled (value is False):
Automatic migration and replication of log stream replicas cannot be initiated in the following scenarios:
- Changing the locality to add or remove replicas
- Unit migration (excluding units on 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 on an
INACTIVEOBServer node
- Unit migration on an
Examples
Enable automatic migration and replication of log stream replicas.
obclient> ALTER SYSTEM SET enable_rereplication = True;
