Step 4: Production: Apply Tuning Configuration
Imagine that you are now in the production phase. You will use the
tuning configuration file generated in the preproduction phase to tune a
production environment. For this demo, you will walk through the
data streams optimizer production workflow, using the same target board
as a proxy for a production environment.
- On the host system, go to the tools directory.cd ${TCC_TOOLS_PATH}
- Run the production tool to apply the tuning configuration to the target board. Replace<target_hostname>with the target name from environment file and<date>as appropriate.python3 tcc_data_streams_optimizer_prod.py --apply <target_hostname>/single_corepcierd_1_<date>/tuning_configuration.json --rebootwhereOptionDescription--apply <target_hostname>/single_corepcierd_1_<date>/tuning_configuration.jsonApply the tuning from the specified configuration file.--rebootReboot the target after applying the capsule. A reboot is required to apply the tuning configuration to the target system.
- The tool applies the configuration. Confirm that you see output similar to the example below.Applying capsule(s) for target... Capsule(s) were applied for target. Configuration ready. Rebooting target...
- To verify successful configuration, use the same command as in the previous step but change--applyto--verify, and remove--reboot.python3 ${TCC_ROOT}/tools/tcc_data_streams_optimizer_prod.py --verify <target_hostname>/single_corepcierd_1_<date>/tuning_configuration.jsonwhereOptionDescription--verify /usr/share/tcc_tools/<target_hostname>/single_corepcierd_1_<date>/tuning_configuration.jsonVerify the current tuning against the specified configuration file.
- The tool compares the tuning configuration file to the target’s current configuration. Confirm that you see output similar to the example below.Verifying that configuration was applied successfully... Configuration applied.In this release, the verification always passes.
Next Steps
You have confirmed that the tool is functioning properly. For your use
case and workload, you will need to create your own input files, such as
a workload validation script, requirements file, and environment file.
Learn more about customizing the input files for your workload, starting in
Create Input Files for Your Workload.