Agent parameters
Parameter | Reference |
---|---|
InitialAgents | |
MaxAgents | |
MaxPrepares |
The following figure shows an example of the [Agent] parameters.
[Agent]
InitialAgents=2
MaxAgents=10
MaxPrepares=50
InitialAgents=2
MaxAgents=10
MaxPrepares=50
High-speed Apply Engine provides multi-threaded execution to increase parallelism and improve the overall performance of an apply request. Using more agents can often improve performance, but several factors affect this general rule.
- The distribution of work in your input greatly influences performance. Distribution can reduce or eliminate the advantages of multiple agents. For example, if ninety percent of your input affects one table and your configuration parameters require that the same agent process all updates to that table, additional agents provide little benefit.
- High-speed Apply Engine uses only the number of agents that it needs to complete an apply request. You can specify a minimum and a maximum number of agents, but the actual number that High-speed Apply Engine uses depends on the following criteria:
- Type of processing that is required by the request
- Number of unique objects that are affected by the request
- How the target objects are grouped (for example, by referential integrity or data sharing requirements)
Be aware of the following points about the [Agent] parameters:
- Each agent that High-speed Apply Engine uses requires a separate connection to the target database (a separate thread on the Db2 subsystem). Consider how your [Agent] parameters match the number of connections available in your environment. In some environments, the number of connections is constrained by workload or policy.
- Under distribution by UR, High-speed Apply Engine is more likely to use the maximum number of agents available (especially if your input contains a large number of transactions with many dependencies between them). Use the MaxAgents parameter to prevent High-speed Apply Engine from using more database connections than your environment can tolerate. (For more information, see MaxAgents.)
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*