Petals SE Activiti

The async job executor should be tunnable

Details

  • Type: Improvement Request Improvement Request
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.0.0
  • Fix Version/s: 1.0.1, 1.1.0
  • Component/s: Configuration
  • Security Level: Public
  • Description:
    Hide

    The Petals SE Activiti provides a parameter to enable or disable the async job executor, but we can't set the parameters of this async job executor.

    The following parameters are described in the Activiti engine documentation. Please reuse the same names and the same default values:

    Parameter name Default value Description
    corePoolSize 2 The minimal number of threads that are kept alive in the thread pool for job execution.
    maxPoolSize 10 The maximum number of threads that are kept alive in the thread pool for job execution.
    keepAliveTime 5000 The time (in milliseconds) a thread used for job execution must be kept alive before it is destroyed. Default setting is 0. Having a non-default setting of 0 takes resources, but in the case of many job executions it avoids creating new threads all the time.
    queueSize 100 The size of the queue on which jobs to be executed are placed.
    maxTimerJobsPerAcquisition 1 The number of timer jobs that are fetched from the database in one query.
    maxAsyncJobsDuePerAcquisition 1 The number of asynchronous jobs due that are fetched from the database in one query.
    defaultAsyncJobAcquireWaitTimeInMillis 10000 The time in milliseconds between asynchronous job due queries being executed.
    defaultTimerJobAcquireWaitTimeInMillis 10000 The time in milliseconds between timer job queries being executed.
    timerLockTimeInMillis 300000 The time in milliseconds that a timer job is locked before being retried again. The Activiti Engine considers the timer job to have failed after this period of time and will retry.
    asyncJobLockTimeInMillis 300000 The time in milliseconds that an asynchronous job is locked before being retried again. The Activiti Engine considers the asynchronous job to have failed after this period of time and will retry.
    Show
    The Petals SE Activiti provides a parameter to enable or disable the async job executor, but we can't set the parameters of this async job executor. The following parameters are described in the Activiti engine documentation. Please reuse the same names and the same default values:
    Parameter name Default value Description
    corePoolSize 2 The minimal number of threads that are kept alive in the thread pool for job execution.
    maxPoolSize 10 The maximum number of threads that are kept alive in the thread pool for job execution.
    keepAliveTime 5000 The time (in milliseconds) a thread used for job execution must be kept alive before it is destroyed. Default setting is 0. Having a non-default setting of 0 takes resources, but in the case of many job executions it avoids creating new threads all the time.
    queueSize 100 The size of the queue on which jobs to be executed are placed.
    maxTimerJobsPerAcquisition 1 The number of timer jobs that are fetched from the database in one query.
    maxAsyncJobsDuePerAcquisition 1 The number of asynchronous jobs due that are fetched from the database in one query.
    defaultAsyncJobAcquireWaitTimeInMillis 10000 The time in milliseconds between asynchronous job due queries being executed.
    defaultTimerJobAcquireWaitTimeInMillis 10000 The time in milliseconds between timer job queries being executed.
    timerLockTimeInMillis 300000 The time in milliseconds that a timer job is locked before being retried again. The Activiti Engine considers the timer job to have failed after this period of time and will retry.
    asyncJobLockTimeInMillis 300000 The time in milliseconds that an asynchronous job is locked before being retried again. The Activiti Engine considers the asynchronous job to have failed after this period of time and will retry.
  • Environment:
    -

Issue Links

Activity

Hide
Christophe DENEUX added a comment - Fri, 11 Dec 2015 - 12:14:48 +0100

Configuration parameters added in branch 'master'

Show
Christophe DENEUX added a comment - Fri, 11 Dec 2015 - 12:14:48 +0100 Configuration parameters added in branch 'master'
Hide
Christophe DENEUX added a comment - Thu, 26 Jan 2017 - 16:38:54 +0100

Reopen because the queue size parameter is not available at installation configuration MBean level

Show
Christophe DENEUX added a comment - Thu, 26 Jan 2017 - 16:38:54 +0100 Reopen because the queue size parameter is not available at installation configuration MBean level
Hide
Christophe DENEUX added a comment - Thu, 26 Jan 2017 - 16:39:45 +0100

The parameter about queue size is now available at installation configuration MBean level (see PETALSSEACTIVITI-31)

Show
Christophe DENEUX added a comment - Thu, 26 Jan 2017 - 16:39:45 +0100 The parameter about queue size is now available at installation configuration MBean level (see PETALSSEACTIVITI-31)
Hide
Christophe DENEUX added a comment - Thu, 26 Jan 2017 - 16:41:05 +0100

Reopened because several parameters are not available at installation configuration MBean level:

  • maxTimerJobsPerAcquisition
  • maxAsyncJobsDuePerAcquisition
  • defaultAsyncJobAcquireWaitTimeInMillis
  • defaultTimerJobAcquireWaitTimeInMillis
  • timerLockTimeInMillis
  • asyncJobLockTimeInMillis
Show
Christophe DENEUX added a comment - Thu, 26 Jan 2017 - 16:41:05 +0100 Reopened because several parameters are not available at installation configuration MBean level:
  • maxTimerJobsPerAcquisition
  • maxAsyncJobsDuePerAcquisition
  • defaultAsyncJobAcquireWaitTimeInMillis
  • defaultTimerJobAcquireWaitTimeInMillis
  • timerLockTimeInMillis
  • asyncJobLockTimeInMillis
Hide
Christophe DENEUX added a comment - Mon, 30 Jan 2017 - 11:32:59 +0100

Fix in trunk. 'engine-job-executor-async-job-due-acquire-wait-time' was renamed into 'engine-job-executor-async-job-acquire-wait-time'.

Show
Christophe DENEUX added a comment - Mon, 30 Jan 2017 - 11:32:59 +0100 Fix in trunk. 'engine-job-executor-async-job-due-acquire-wait-time' was renamed into 'engine-job-executor-async-job-acquire-wait-time'.

People

Dates

  • Created:
    Thu, 10 Dec 2015 - 12:49:52 +0100
    Updated:
    Mon, 30 Jan 2017 - 11:32:59 +0100
    Resolved:
    Mon, 30 Jan 2017 - 11:32:59 +0100