Harmonize task execution naming
This commit is contained in:
@@ -161,13 +161,13 @@ content into your application. Rather, pick only the properties that you need.
|
||||
spring.sendgrid.proxy.host= # SendGrid proxy host.
|
||||
spring.sendgrid.proxy.port= # SendGrid proxy port.
|
||||
|
||||
# TASK EXECUTION ({sc-spring-boot-autoconfigure}/task/TaskProperties.{sc-ext}[TaskProperties])
|
||||
spring.task.pool.allow-core-thread-timeout=true # Whether core threads are allowed to time out. This enables dynamic growing and shrinking of the pool.
|
||||
spring.task.pool.core-size=8 # Core number of threads.
|
||||
spring.task.pool.keep-alive=60s # Time limit for which threads may remain idle before being terminated.
|
||||
spring.task.pool.max-size= # Maximum allowed number of threads. If tasks are filling up the queue, the pool can expand up to that size to accommodate the load. Ignored if the queue is unbounded.
|
||||
spring.task.pool.queue-capacity= # Queue capacity. An unbounded capacity does not increase the pool and therefore ignores the "max-size" property.
|
||||
spring.task.thread-name-prefix=task # Prefix to use for the names of newly created threads.
|
||||
# TASK EXECUTION ({sc-spring-boot-autoconfigure}/task/TaskExecutionProperties.{sc-ext}[TaskExecutionProperties])
|
||||
spring.task.execution.pool.allow-core-thread-timeout=true # Whether core threads are allowed to time out. This enables dynamic growing and shrinking of the pool.
|
||||
spring.task.execution.pool.core-size=8 # Core number of threads.
|
||||
spring.task.execution.pool.keep-alive=60s # Time limit for which threads may remain idle before being terminated.
|
||||
spring.task.execution.pool.max-size= # Maximum allowed number of threads. If tasks are filling up the queue, the pool can expand up to that size to accommodate the load. Ignored if the queue is unbounded.
|
||||
spring.task.execution.pool.queue-capacity= # Queue capacity. An unbounded capacity does not increase the pool and therefore ignores the "max-size" property.
|
||||
spring.task.execution.thread-name-prefix=task- # Prefix to use for the names of newly created threads.
|
||||
|
||||
# ----------------------------------------
|
||||
# WEB PROPERTIES
|
||||
|
||||
@@ -6146,14 +6146,14 @@ asynchronous task execution (`@EnableAsync`) and Spring MVC asynchronous request
|
||||
processing.
|
||||
|
||||
The thread pool uses 8 core threads that can grow and shrink according to the load. Those
|
||||
default settings can be fine-tuned using the `spring.task` namespace as shown in the
|
||||
following example:
|
||||
default settings can be fine-tuned using the `spring.task.execution` namespace as shown in
|
||||
the following example:
|
||||
|
||||
[source,properties,indent=0]
|
||||
----
|
||||
spring.task.pool.max-threads=16
|
||||
spring.task.pool.queue-capacity=100
|
||||
spring.task.pool.keep-alive=10s
|
||||
spring.task.execution.pool.max-threads=16
|
||||
spring.task.execution.pool.queue-capacity=100
|
||||
spring.task.execution.pool.keep-alive=10s
|
||||
----
|
||||
|
||||
This changes the thread pool to use a bounded queue so that when the queue is full (100
|
||||
|
||||
Reference in New Issue
Block a user