Scenarios
You can use the obdiag rca run command to analyze the suspend_transaction scenario based on internal table data and logs of OceanBase Database.
OceanBase Database V4.0.0.0 and later are supported for this feature. When you use OceanBase Diagnostic Tool (obdiag) commands, you must configure cluster information in the config.yml file stored in the ~/.obdiag directory or by specifying --config options in the commands.
Notice
Internal data is updated in real time. Therefore, obdiag only supports the analysis of current data.
Supported environment variables
| Variable | Required | Data type | Default value | Description |
|---|---|---|---|---|
| since | No | string | "30m" | The time range of logs to analyze. The default value 30m specifies to analyze logs of the last 30 minutes. |
Examples
Specify only the scenario in the command. In this case, the default time range of logs to analyze is used.
obdiag rca run --scene=suspend_transactionSpecify the scenario and set the time range of logs to analyze to
40min the command.obdiag rca run --scene=suspend_transaction --env since=40m