Skip to content

Commit

Permalink
[#13]: chore: adjust pool schema
Browse files Browse the repository at this point in the history
  • Loading branch information
rustatian authored Dec 12, 2024
2 parents 4330258 + fb7255b commit 4eaa1d8
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,22 +57,26 @@
"default": "60s"
},
"dynamic_allocator": {
"title": "Dynamic workers allocator",
"description": "Configuration options to setup auto workers allocator.",
"title": "Auto-scaling/dynamic Workers",
"description": "Configuration options for auto-scaling/dynamic workers. If not defined, worker auto-scaling is disabled.",
"type": "object",
"additionalProperties": false,
"properties": {
"max_workers": {
"description": "Maximum number of workers which is allowed to allocate (no more than 100).",
"description": "The maximum number of workers that may be dynamically allocated.",
"type": "integer",
"default": "10"
"minimum": 1,
"maximum": 100,
"default": 10
},
"spawn_rate": {
"description": "The number of workers that can be spawned per NoFreeWorkers error (but up to `max_workers`).",
"description": "The maximum number of workers that may be spawned per NoFreeWorkers error (limited to `max_workers`).",
"type": "integer",
"default": "5"
"minimum": 1,
"default": 5
},
"idle_timeout": {
"description": "The time after which dynamically allocated workers are considered not needed and would be deallocated.",
"description": "The duration after which idle dynamically allocated workers will be deallocated.",
"$ref": "#/$defs/duration",
"default": "1m"
}
Expand All @@ -82,6 +86,7 @@
"title": "Pool Supervisor",
"description": "The pool supervisor is used to control workers. If not defined, the pool has no supervision.",
"type": "object",
"additionalProperties": false,
"properties": {
"watch_tick": {
"description": "Duration between worker state checks. Defaults to 5s.",
Expand Down

0 comments on commit 4eaa1d8

Please sign in to comment.