Database Ingestion and Replication > Key concepts > Auto-tuning
  

Auto-tuning

For database ingestion and replication initial load jobs and the unload phase of combined load jobs, you can enable auto-tuning of some key parameters to optimize job performance on the source side and target side. The jobs can use a Db2 for i, Db2 for LUW, Db2 for z/OS, MySQL, Oracle, PostgreSQL, SAP HANA, SQL Server, or Teradata source type with any supported target type.
Auto-tuning is based on performance and system metrics automatically collected from your environment, such as network and database latency, row counts, table sizes, CPU cores, and memory usage. It’s also based on application-specific metrics such as JVM heap allocation and task capacity. These metrics are used collectively to make dynamic tuning adjustments for optimal efficiency and resource use.
Collecting some of the system and workload metrics requires additional database user privileges. Specifically, retrieving allocated table size from source tables requires access grants specific to the source type. For detailed information about the required privileges, see Sources - preparation and usage. If those grants are not available, the auto-tuner uses a fallback method. It runs a standard COUNT(*) query to obtain the row count, then derives an estimated row size and multiplies the two values to approximate the table size. Without additional user privileges, the table-size estimate might be less precise.
To enable auto-tuning for a task, select the Auto-Tune option on the final Let's Go! page of the task configuration wizard.
You can override any value set by auto-tuning by adding a custom property in the Custom Properties section of the advanced properties on the Task Details or Let's Go! pages in the task configuration wizard, depending on the property. To add a property, click the + icon to add a row. In the Property Name field, select a property from the list and enter the value, or select the Custom option and manually enter both the property name and value.
Auto-tuning automatically optimizes settings for the following properties:

Evaluate-and-stop mode

To preview the Auto-Tune recommendations without moving any data, you can run auto-tuning in evaluate-and-stop mode. In this mode, auto-tuning collects metrics and runs a full tuning evaluation, logs the recommended values for all components, and then stops the task gracefully before the unload and load execution begins. The task exits with a SUCCESS status.
Use this mode to validate the auto-tuning decisions against a real task's metrics, compare recommended values across different source and target configurations, and identify regressions in the tuning algorithm without incurring the cost of a full data-movement run.
To enable the evaluate-and-stop mode, select the Auto-tune checkbox and set the enableAutoTuningEvaluateAndStop property to true. Add this property in the Custom Properties section of the Let's Go! page in the task configuration wizard by selecting the Custom option and manually entering the property name and value. The default value is false.
Note:
This mode applies to initial load jobs only. If the property is set on a CDC job or any phase of a combined job, the task logs a warning and continues its normal run.