Note
For V4.4.0, this parameter is available starting with V4.4.0.
Description
enable_logservice specifies whether to enable the log service mode.
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
You must configure this parameter using the
-ostartup parameter of an OBServer node. The parameter is specified during the initial startup of the cluster's RS node and cannot be dynamically modified after it takes effect. User tenants do not have the privilege to modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | Bool |
| Default value | False |
| Value range |
|
| Modifiable | No. The parameter is specified during the initial startup and cannot be modified. |
| Effective upon OBServer node restart | No. The parameter is read-only. |
Considerations
When you scale out the cluster, the enable_logservice parameter of the new node must be set to the same value as that of the existing nodes. Otherwise, the log service status may be abnormal or the root service election may fail. In other words, the enable_logservice parameter of all nodes in the cluster must remain globally consistent.
Examples
To start an OBServer node in the log service mode, set the enable_logservice parameter to True in the -o parameter of the command line.
./observer -P 42904 -p 42905
-z zone1
-n ob22.xxxx.qqq.xx.xx.xx.xx
-c 1
-o memory_limit=400G,enable_logservice=True