Skip to content

Commit

Permalink
change default for MaxConcurrency
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Richter <[email protected]>
  • Loading branch information
dragonchaser committed Jan 29, 2024
1 parent c9e4a3b commit 9094bbd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions changelog/unreleased/concurrence-defaults.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Enhancement: Modify the concurrency default

We have changed the default MaxConcurrency value from 100 to 5 to prevent too frequent gc runs on low memory systems.

https://github.com/cs3org/reva/pull/4485
https://github.com/owncloud/ocis/issues/8257
2 changes: 1 addition & 1 deletion pkg/storage/utils/decomposedfs/options/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func New(m map[string]interface{}) (*Options, error) {
}

if o.MaxConcurrency <= 0 {
o.MaxConcurrency = 100
o.MaxConcurrency = 5
}

if o.Propagator == "" {
Expand Down

0 comments on commit 9094bbd

Please sign in to comment.