From 9094bbd8dd6d5d6478a4aef9944905e492ded63e Mon Sep 17 00:00:00 2001 From: Christian Richter Date: Mon, 29 Jan 2024 13:34:25 +0100 Subject: [PATCH] change default for MaxConcurrency Signed-off-by: Christian Richter --- changelog/unreleased/concurrence-defaults.md | 6 ++++++ pkg/storage/utils/decomposedfs/options/options.go | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 changelog/unreleased/concurrence-defaults.md diff --git a/changelog/unreleased/concurrence-defaults.md b/changelog/unreleased/concurrence-defaults.md new file mode 100644 index 0000000000..a91b66f1d2 --- /dev/null +++ b/changelog/unreleased/concurrence-defaults.md @@ -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 \ No newline at end of file diff --git a/pkg/storage/utils/decomposedfs/options/options.go b/pkg/storage/utils/decomposedfs/options/options.go index f58edff6a2..f21912687c 100644 --- a/pkg/storage/utils/decomposedfs/options/options.go +++ b/pkg/storage/utils/decomposedfs/options/options.go @@ -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 == "" {