Note
This parameter is available starting with V4.4.2.
Description
syslog_sync_size_threshold specifies the threshold of the accumulated data volume that triggers a disk synchronization of the syslog.
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 | Capacity |
| Default value | 0M, which indicates that this synchronization mechanism is disabled. |
| Value range | [0M, +∞) |
| 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 the accumulated data volume written to the syslog exceeds a certain threshold, the system actively triggers a disk synchronization to disperse the I/O pressure and avoid the accumulation of I/O operations. This approach ensures a smoother disk write load and minimizes the impact of high I/O on the business.
Examples
Set the threshold of the accumulated data volume that triggers a disk synchronization of the syslog to 128K.
obclient> ALTER SYSTEM SET syslog_sync_size_threshold = '128K';