summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.rr.yaml36
-rw-r--r--CHANGELOG.md6
-rw-r--r--schemas/config/3.0.schema.json6
3 files changed, 45 insertions, 3 deletions
diff --git a/.rr.yaml b/.rr.yaml
index f099dd79..cacd673a 100644
--- a/.rr.yaml
+++ b/.rr.yaml
@@ -308,6 +308,12 @@ temporal:
# Default: 0
max_jobs: 0
+ # [2023.3.10]
+ # Maximum size of the internal requests queue. After reaching the limit, all additional requests would be rejected with error.
+ #
+ # Default: 0 (no limit)
+ max_queue_size: 0
+
# Timeout for worker allocation. Zero means 60s.
#
# Default: 60s
@@ -872,6 +878,12 @@ http:
# Default: 0
max_jobs: 0
+ # [2023.3.10]
+ # Maximum size of the internal requests queue. After reaching the limit, all additional requests would be rejected with error.
+ #
+ # Default: 0 (no limit)
+ max_queue_size: 0
+
# Timeout for worker allocation. Zero means 60s.
#
# Default: 60s
@@ -1314,6 +1326,12 @@ jobs:
# Default: 0
max_jobs: 0
+ # [2023.3.10]
+ # Maximum size of the internal requests queue. After reaching the limit, all additional requests would be rejected with error.
+ #
+ # Default: 0 (no limit)
+ max_queue_size: 0
+
# Timeout for worker allocation. Zero means 60s.
#
# Default: 60s
@@ -1944,6 +1962,12 @@ grpc:
# Default: 0
max_jobs: 0
+ # [2023.3.10]
+ # Maximum size of the internal requests queue. After reaching the limit, all additional requests would be rejected with error.
+ #
+ # Default: 0 (no limit)
+ max_queue_size: 0
+
# Timeout for worker allocation. Zero means 60s.
#
# Default: 60s
@@ -2017,6 +2041,12 @@ tcp:
# Default: 0
max_jobs: 0
+ # [2023.3.10]
+ # Maximum size of the internal requests queue. After reaching the limit, all additional requests would be rejected with error.
+ #
+ # Default: 0 (no limit)
+ max_queue_size: 0
+
# Timeout for worker allocation. Zero means 60s.
#
# Default: 60s
@@ -2148,6 +2178,12 @@ centrifuge:
# Default: 0
max_jobs: 0
+ # [2023.3.10]
+ # Maximum size of the internal requests queue. After reaching the limit, all additional requests would be rejected with error.
+ #
+ # Default: 0 (no limit)
+ max_queue_size: 0
+
# Timeout for worker allocation. Zero means 60s.
#
# Default: 60s
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ce671f25..d3d37c5f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,11 +2,11 @@
# <center> ๐Ÿš€ v2023.3.10 ๐Ÿš€ </center>
-### Core `SDK`
+### Core `SDK` bugfixes:
-- ๐Ÿ›๏ธ Request queue gets too large, [BUG/FR](https://github.com/roadrunner-server/roadrunner/issues/1841), (thanks, @L3tum)
+- ๐Ÿ›๏ธ Request queue gets too large, [BUG/FR](https://github.com/roadrunner-server/roadrunner/issues/1841), [Docs](https://docs.roadrunner.dev/php-worker/pool) (thanks, @L3tum)
- ๐Ÿ›๏ธ Huge memory allocation in the debug mode [FIX](https://github.com/roadrunner-server/sdk/pull/110).
-- ๐Ÿ›๏ธ Stop handler (`worker->stop()`) was returned back (fixed breaking change) [FIX](https://github.com/roadrunner-server/sdk/pull/109), (thanks @Zylius)
+- ๐Ÿ›๏ธ Stop handler (`worker->stop()`) was returned (breaking change fix) [FIX](https://github.com/roadrunner-server/sdk/pull/109), (thanks @Zylius)
### <center>๐Ÿงน Chore:</center>
diff --git a/schemas/config/3.0.schema.json b/schemas/config/3.0.schema.json
index bb633e27..34b19f57 100644
--- a/schemas/config/3.0.schema.json
+++ b/schemas/config/3.0.schema.json
@@ -2274,6 +2274,12 @@
"minimum": 0,
"default": 0
},
+ "max_queue_size": {
+ "description": "[2023.3.10]. Maximum size of the internal requests queue. After reaching the limit, all additional requests would be rejected with error.",
+ "type": "integer",
+ "minimum": 0,
+ "default": 0
+ },
"allocate_timeout": {
"description": "Timeout for worker allocation. Zero means the default limit - 60s",
"$ref": "#/definitions/Duration",