Overview
enable_rereplication is the master switch for automatic migration and replication of log stream replicas.
Privilege requirements
Query parameters
Both the
systenant and all user tenants can query this parameter using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify parameters
Only the
systenant can modify this parameter. User tenants cannot modify it.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | Bool |
| Default Value | True |
| Value range |
|
| Modifiable | Yes, you can use theALTER SYSTEM SETStatement modification. |
| Whether to restart the OBServer node for the change to take effect | No, the setting takes effect immediately. |
When the enable_rereplication parameter is disabled (with a value of False), the following behavior occurs:
Log stream migration and replication cannot be initiated in the following scenarios:
- Add or remove replicas by changing locality
- Unit migration (except when the source OBServer node is in the
INACTIVEstate) - Log stream migration caused by
UNIT_NUMchanges
Log stream migration and replication can still be initiated in the following scenarios:
- Migration of units whose source OBServer node is in the
INACTIVEstate.
- Migration of units whose source OBServer node is in the
Configuration example
Enable automatic migration replication for log stream replicas.
obclient> ALTER SYSTEM SET enable_rereplication = True;