I’m using tidb 7.5 now
how to check my current set up : tiflash enable_resource_control is on or off ?
and anyway to verify “Pipeline execution model” is used at run-time ?
To check whether the enable_resource_control configuration item for TiFlash is enabled or disabled in TiDB 7.5, you can follow these steps:
Check the TiFlash Configuration:
The enable_resource_control configuration item controls whether the TiFlash resource control feature is enabled. You can find this configuration in the tiflash-learner.toml file.
Open the tiflash-learner.toml file and look for the enable_resource_control setting. If it is set to true, then the TiFlash resource control feature is enabled. If it is set to false, then the feature is disabled.
Verify Pipeline Execution Model:
To verify whether the Pipeline execution model is used at runtime, you can monitor the TiFlash logs or performance metrics during query execution.
When enable_resource_control is enabled, TiFlash uses the Pipeline execution model. You can observe the query execution behavior to see if it aligns with the characteristics of the Pipeline execution model, such as pipelined processing of data.
By checking the enable_resource_control configuration item in the tiflash-learner.toml file and monitoring the query execution behavior, you can determine if TiFlash resource control is enabled and if the Pipeline execution model is being used in your TiDB 7.5 setup.
To monitor the query execution behavior and verify if the Pipeline execution model is being used in TiDB, you can follow these steps:
Monitoring in Grafana Dashboard:
Access the Grafana dashboard for TiDB.
Look for relevant metrics related to query execution and performance. You can check metrics such as query execution time, query throughput, and resource utilization.
Specifically, pay attention to metrics that indicate the execution model being used, such as pipelined processing or batch processing.
Slow Query Log:
Check the Slow Query Log in TiDB to identify queries that are taking longer to execute.
Slow queries may provide insights into the execution behavior and performance characteristics of the queries.
You can analyze the slow queries to see if they exhibit characteristics of the Pipeline execution model.
TiDB Performance Schema:
Utilize the TiDB Performance Schema to gather detailed information about query execution.
The Performance Schema provides performance-related metrics at a granular level, allowing you to analyze query execution behavior.
By monitoring the Grafana dashboard, reviewing the Slow Query Log, and utilizing the Performance Schema in TiDB, you can observe query execution behavior and gather insights into whether the Pipeline execution model is being used effectively.