Skip to content

Commit

Permalink
Default processor.concurrency to 1 (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgdigital authored Jun 19, 2024
1 parent 3968c8b commit b05e5d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bitmagnet.io/setup/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion internal/processor/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ type Config struct {

func NewDefaultConfig() Config {
return Config{
Concurrency: 3,
Concurrency: 1,
}
}

0 comments on commit b05e5d1

Please sign in to comment.