Configure worker threads for consistency checks in work-queue.xml

About this task

PolicyCenter uses the work queue mechanism to run consistency checks.

Procedure

  1. In the Guidewire Studio Project window, expand configuration > config > workqueue:
    1. Open file work-queue.xml for editing.
    2. Locate the block of code that contains the following workQueueClass value.
      • com.guidewire.pl.system.database.checker.DBConsistencyCheckWorkQueue
    3. Locate the <worker> element for this code block.
    4. Set the instances and batchsize attributes as appropriate for your PolicyCenter installation.
      For example, the following code sets the consistency check work queue to use five worker threads, with each worker checking out ten work items at a time.
      • <worker instances="5" batchsize="10"/>
  2. Restart the application server for your changes to take effect:
    • If working in a development environment, restart the QuickStart server.
    • If working in a production environment, create a new WAR or EAR file and deploy the file to the production server.