Applicable scenarios
This article is suitable for root cause analysis of transaction disconnection scenarios, based on OceanBase database internal table data and logs.
Currently, OceanBase database V4.0.0.0 and later versions are supported. When using obdiag, you need to configure the cluster information in the ~/.obdiag/config.yml file according to your choice, or configure the cluster information through the --config option in the command.
Attention
Due to the timeliness of internal data, only current data is supported for analysis.
Can import environment variables
Variable name |
Is it required |
Data type |
Default value |
Description |
|---|---|---|---|---|
| since | No | string | "30m" | Specify the time period of the logs to be analyzed. The default is 30m, which means analyzing the logs within the past 30 minutes. |
Usage example
- Configure analysis scenarios, executed by default
obdiag rca run --scene=transaction_disconnection
```* Configure the analysis scenario and specify to analyze the logs of the past 40 minutes
```shell
obdiag rca run --scene=transaction_disconnection --env since=40m
