Rate This Document
Findability
Accuracy
Completeness
Readability

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

Table 1 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:

  • Result directory generated after automatic tuning: You can use the analysis capability of the Kunpeng AutoTuner, for example, by running the show importance or test 1 2 command.
  • Directory of the prepared template file: You can retest the baseline, or directly train the template and run an analysis command.
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).

  • 0: DEBUG
  • 1: INFO
  • 2: WARNING
  • 3: ERROR

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
Table 2 Subcommands on the interaction screen

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.
  • 0: DEBUG
  • 1: INFO
  • 2: WARNING
  • 3: ERROR

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.