Enabling and configuring parallel rating
You can enable parallel rating by setting the ParallelizedRatingEnabled configuration parameter in config.xml. By default, parallel rating is enabled in the base configuration.
- ParallelizedRatingEnabled
- Enable or disable parallel rating. If
true, parallel rating is enabled for each line of business which supports parallel rating. Iffalse, parallel rating is disabled. - MaxRatingThreadPoolSize
- Maximum number of threads spawned during parallel rating. The optimum number of threads depends upon how many tasks the typical policy generates and how long each task takes to complete. The optimum number of threads also depends upon the number of available processors, the typical number of users, and competition for processors from other PolicyCenter features which also implement parallel rating. As a starting point, set the initial value to the number of available processors in your environment. Be aware that other processes or PolicyCenter features which use parallel processing, such as product model availability, may be competing for processors. Perform benchmark testing to better determine the maximum number of threads.
- ParallelRatingTimeoutPerCoverable
The number of milliseconds per coverable to wait for parallel rating to complete. Because the timeout is per coverable, policies with a large number of coverables will have a longer timeout than smaller policies. This timeout applies to all lines of business that implement parallel rating.
For example, when quoting a policy with 10 coverables and using the default timeout of 20 seconds per coverable, the server times out on rating 200 seconds after it starts. When the timeout is reached, PolicyCenter displays an error to the user and attempts to stop the rating thread.
A value of
-1implies no timeout and the queue waits until rating completes or the session times out. This is not recommended.
The ParallelizedRatingEnabled configuration parameter setting enables
parallel rating for the whole PolicyCenter implementation. In addition, each line can
implement and enable parallel rating. PolicyLine#shouldParallelizeRating is
set globally false in AbstractPolicyLineMethodsImpl.gs. To
enable parallel rating in a policy line, override the global setting by setting
shouldParallelizeRating to true in the
XXPolicyLineMethods class. You can also configure
criteria for when to use parallel rating in the shouldParallelizeRating
method.
In the base configuration, parallel rating is enabled for commercial property. The
CPPolicyLineMethods class, shouldParallelizeRating returns
true.
Additional parameter for parallel rating using DTOs
- EnableCPDTOParallelRating – Enable parallel rating using data transfer objects (DTOs) for commercial property. This parameter also enables access to Rating Management components in the sample data, such as rate table and rate routines, that use DTOs. These components are included in the small sample data set and are provided for demonstration purposes.
