Note
In OceanBase Database V4.x, the corresponding logic is changed, and the corresponding feature is no longer available. This parameter has been deprecated since OceanBase Database V4.2.0.
Description
trace_log_sampling_interval specifies the interval at which trace logs are printed.
Attributes
| Attribute | Description |
|---|---|
| Type | Time |
| Default value | 10ms |
| Value range | [0ms, +∞) |
| 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_record_trace_log is set to False, this parameter determines the time interval at which the information about slow queries and allowlists is printed.
Examples
Set the interval at which trace logs are printed to 10 ms.
obclient> ALTER SYSTEM SET trace_log_sampling_interval='10ms';