Tuning Result Processing Functions
The tuning result processing tool facilitates report display, single-round value setting, retests, and importance analysis in interactive mode.
Command Function
Uses the report result after automatic tuning. You can also specify the parameter file directory and perform tuning on the use screen.
Syntax
1 | devkit kat use [-h] -i <dir> [-l {0,1,2,3}] |
Parameter Description
Parameter |
Option |
Description |
|---|---|---|
-h/--help |
- |
Obtains help information. This parameter is optional. |
-i/--input |
- |
Training result directory. This parameter is mandatory. You can set this parameter using either of the following methods:
NOTE:
If you specify the template file directory, the default values of the train subcommand parameters are the values given in the parameter configuration file because there is no historical data. |
-l/--log-level |
0/1/2/3 |
Log level, which defaults to 2. This parameter is optional.
NOTE:
The default level is 2 (WARNING).
|
Example
The parameter set generated after automatic tuning is located in the /opt/template/template_PostgreSQL_20250225_091524/train-20250225-112832 directory.
1 | devkit kat use -i /opt/template/template_PostgreSQL_20250225_091524/train-20250225-112832 |
The following information is displayed on the interaction screen:
1 2 3 4 5 6 7 8 9 10 11 12 13 | Available Commands: exit - Exit the program help - Show this help message ibesttest - Test best parameters inferred by parameter importance analysis log - Change the log level man - Manual of use set - Set the config of round n show - Show round <n> information test - Retest round sequence. test <n> times train - Additional training after original result For more usage, please refer to "help <command>". e.g., help test |
Subcommand |
Option |
Description |
|---|---|---|
exit |
- |
Exits the interactive user interface. This parameter is optional. |
help |
- |
Obtains help information. This parameter is optional. |
ibesttest |
- |
Uses the optimal parameters inferred from parameter importance analysis to perform tests. This parameter is optional. |
log |
0/1/2/3 |
Log level, which defaults to 2. This parameter is optional.
|
man |
- |
Kunpeng AutoTuner manual, including the full introduction and usage examples of subcommands (show, train, test, and set). This parameter is optional. |
set |
- |
Applies the parameter values of a tuning round to the application or system. This parameter is optional. |
show |
- |
Displays the performance test data of some rounds and analyzes the importance of parameters. This parameter is optional. |
test |
- |
Performs the tests again using the same parameters of some rounds. This parameter is optional. |
train |
- |
Resumes automatic tuning. The Kunpeng AutoTuner automatically tunes task parameters based on service scenario metrics. This parameter is optional. |
On the use interaction screen, the combination of round and a number indicates a specific round. For example, run show round 2 to display the information about the second tuning round.