Note
This parameter is available starting with V1.4.
Description
enable_rereplication is the switch for automatic migration and replication of log stream replicas.
Privilege requirements
Query the parameter
sysand 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. |
Considerations
When enable_rereplication is set to False:
The following scenarios will not trigger log stream migration and replication:
Adding or removing replicas through Locality changes
Unit migration (except when the source OBServer node is in
INACTIVEstate)Log stream migration caused by
UNIT_NUMchanges
The following scenarios can still trigger log stream migration and replication normally:
- Unit migration when the source OBServer node is in
INACTIVEstate
- Unit migration when the source OBServer node is in
Examples
Enable automatic migration and replication of log stream replicas.
obclient> ALTER SYSTEM SET enable_rereplication = True;