调优结果处理功能说明
命令功能
运用自动调优后的报告结果;也可直接指定参数文件目录,在use功能交互界面进行调优。
命令格式
1 | devkit kat use [-h] -i <dir> [-l {0,1,2,3}] |
参数说明
参数 |
参数选项 |
说明 |
---|---|---|
-h/--help |
- |
获取帮助信息。 |
-l/--log-level |
0/1/2/3 |
设置日志级别,默认为2。
说明:
新增功能采用更合理设计,默认级别调整为2(WARNING)。
|
-i/--input |
- |
必选参数,配置已自动调优后得到的结果目录或模板文件目录。 说明:
若直接指定模板文件目录,train子命令参数的默认值因无历史数据将使用参数配置文件中的配置值。 |
使用示例
自动调优后的参数集生成在“/opt/template/template_Postgresql_20250225_091524/train-20250225-112832”目录下。
1 | devkit kat use -i /opt/template/template_Postgresql_20250225_091524/train-20250225-112832 |
进入交互界面返回信息如下:
... ... ... [2025-05-20 03:12:01 UTC] [KAT] [message] - System: Initiating system parameter audit and backup process... [2025-05-20 03:12:01 UTC] [KAT] [message] - System: System parameter backup completed successfully. Available Commands: exit - Exit the program help - Show this help message ibesttest - Test best parameters inferenced 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
子命令 |
选项 |
说明 |
---|---|---|
exit |
- |
退出交互界面。 |
help |
- |
获取帮助信息。 |
ibesttest |
- |
使用参数重要性分析推断出的最佳参数进行测试。 |
log |
0/1/2/3 |
设置日志级别,默认为2。
|
man |
- |
鲲鹏自动调优使用手册,包括全量介绍和子命令(show、train、test和set)的使用示例。 |
set |
- |
将某轮次运行的参数值设置到应用或系统中。 |
show |
- |
展示某些轮次的性能测试数据,并可以对参数重要性进行分析。 |
test |
- |
使某些轮次按其参数再次进行测试。 |
train |
- |
继续自动调优,任务的参数配置根据业务场景指标自动调优。 |

use交互界面中使用“round”和数字的组合表示第几轮,如展示全部调优轮次中第二轮信息:show round 2 。
父主题: 调优结果处理