Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-69668

Need to provide facilities to configure the number of threads for background tasks

    Details

      Description

      Solution Notes
      The following configuration (OSGi Configuration Admin) option has been added for Liferay Message Bus:

      Control Panel - Configuration - System Settings - Foundation - Destination Worker Configuration. You can create entries by specifying the following attributes:

      • Destination Name: For example liferay/background_task_status
      • Max queue size: Set the maximum number of requests allowed in the worker queue before it rejects additional requests. If set to -1, then by default, the value is Integer.MAX_VALUE.
      • Worker core size: Set the number of worker threads allocated to the destination.
      • Worker max size: Set the maximum number of worker threads allocated to the destination.

      Default Background Task destination configurations are the following after this fix:

      • liferay/background_task: Worker core size: 5, Worker max size: 10
      • liferay/background_task_status: Worker core size: 1, Worker max size: 1

        Attachments

          Activity

            People

            • Assignee:
              brian.chan Brian Chan
              Reporter:
              michael.han Michael Han
              Participants of an Issue:
              Recent user:
              Csaba Turcsan
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 44 weeks, 6 days ago

                Packages

                Version Package
                7.0.0 DXP FP10
                7.0.0 DXP SP2
                7.0.3 CE GA4
                Master