You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2024/07/16 06:33:35 UTC
(sling-site) 01/01: Update docs for the processor based calculation of the eventing threadpool
This is an automated email from the ASF dual-hosted git repository.
royteeuwen pushed a commit to branch SLING-12349
in repository https://gitbox.apache.org/repos/asf/sling-site.git
commit 16f0b49ff50c45c90042b6091312f2b1ce2fe842
Author: Roy Teeuwen <c-...@acolad.com>
AuthorDate: Tue Jul 16 08:33:25 2024 +0200
Update docs for the processor based calculation of the eventing threadpool
---
.../bundles/apache-sling-eventing-and-job-handling.md | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/src/main/jbake/content/documentation/bundles/apache-sling-eventing-and-job-handling.md b/src/main/jbake/content/documentation/bundles/apache-sling-eventing-and-job-handling.md
index 9b21a15a9..58d1435fb 100644
--- a/src/main/jbake/content/documentation/bundles/apache-sling-eventing-and-job-handling.md
+++ b/src/main/jbake/content/documentation/bundles/apache-sling-eventing-and-job-handling.md
@@ -212,6 +212,17 @@ Unordered queues process jobs in parallel.
The jobs are processed in parallel. Scheduling of the jobs is based on the topic of the jobs. These are started by doing round-robin on the available topics.
+The configurations are processed in descending order of their service ranking (same as in [`BundleContext.getServiceReference(...)`](https://docs.osgi.org/javadoc/osgi.core/7.0.0/org/osgi/framework/BundleContext.html#getServiceReference-java.lang.Class-). In case of a tie in the service ranking the config which was registered earlier is processed before the config which was registered later.
+The first matching queue configuration is used for the job.
+
+#### Eventing Thread Pool
+
+This is the thread pool used by the Apache Sling job handling. The threads from this pool are merely used for executing jobs. By limiting this pool, it is possible to limit the maximum number of parallel processed jobs - regardless of the queue configuration
+
+| Property Name | Description |
+|---|---|
+| `min.pool.size` | The size of the thread pool. This pool is used to execute jobs and therefore limits the maximum number of jobs executed in parallel. A value of -1 is substituted with the number of available processors. A decimal number between 0.0 and 1.0 is treated as a fraction of available processors. For example 0.5 means half of the available processors.
+
### Job Distributing