From 8364fb0ae64fcc5fb73a6c3d41499d173aa8713c Mon Sep 17 00:00:00 2001 From: Mike Gibson Date: Wed, 19 Jun 2024 08:29:52 +0100 Subject: [PATCH] Default processor.concurrency to 1 --- bitmagnet.io/setup/configuration.md | 2 +- internal/processor/config.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bitmagnet.io/setup/configuration.md b/bitmagnet.io/setup/configuration.md index a05e45dc..128085c5 100644 --- a/bitmagnet.io/setup/configuration.md +++ b/bitmagnet.io/setup/configuration.md @@ -20,7 +20,7 @@ nav_order: 2 - `log.file_rotator.enabled` (default: `false`): If true, logs will be output to rotating log files at level `log.file_rotator.level` in the `log.file_rotator.path` directory, allowing forwarding to a logs aggregator (see [the observability guide](/guides/observability-telemetry.html)). - `http_server.options` (default `["*"]`): A list of enabled HTTP server components. By default all are enabled. Components include: `cors`, `pprof`, `graphql`, `import`, `prometheus`, `torznab`, `status`, `webui`. - `dht_crawler.scaling_factor` (default: `10`): There are various rate and concurrency limits associated with the DHT crawler. This parameter is a rough proxy for resource usage of the crawler; concurrency and buffer size of the various pipeline channels are multiplied by this value. Diminishing returns may result from exceeding the default value of 10. Since the software has not been tested on a wide variety of hardware and network conditions your mileage may vary here... -- `processor.concurrency` (default: `3`): Defines the maximum number of torrents to be processed/classified simultaneously. If you experience slowdowns when the queue is working, try decreasing this to 1; conversely, if running on more powerful hardware and you'd like to work through the queue more quickly, try increasing the value. +- `processor.concurrency` (default: `1`): Defines the maximum number of torrents to be processed/classified simultaneously. The default setting of `1` aims to support the widest range of systems. Increasing the setting (for example to `3`) may improve throughput of the processor queue but is known to cause slowdowns on less powerful systems. To see a full list of available configuration options using the CLI, run: diff --git a/internal/processor/config.go b/internal/processor/config.go index 11c184e2..16d53892 100644 --- a/internal/processor/config.go +++ b/internal/processor/config.go @@ -6,6 +6,6 @@ type Config struct { func NewDefaultConfig() Config { return Config{ - Concurrency: 3, + Concurrency: 1, } }