From a35618aa36744b121b9d68bf38e618a9159a690e Mon Sep 17 00:00:00 2001 From: jkoberg Date: Fri, 15 Nov 2024 15:12:18 +0100 Subject: [PATCH] fix(sharing): use 1 worker in single binary Signed-off-by: jkoberg --- changelog/unreleased/max-concurrency.md | 3 ++- services/sharing/pkg/config/defaults/defaultconfig.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/changelog/unreleased/max-concurrency.md b/changelog/unreleased/max-concurrency.md index 43aa300fa..b46af8ab6 100644 --- a/changelog/unreleased/max-concurrency.md +++ b/changelog/unreleased/max-concurrency.md @@ -1,5 +1,6 @@ Bugfix: Set MaxConcurrency to 1 -Set MaxConcurrency for frontend and userlog services to 1. Too many workers will negatively impact performance on small machines. +Set MaxConcurrency for frontend and userlog and sharing services to 1. Too many workers will negatively impact performance on small machines. +https://github.com/owncloud/ocis/pull/10580 https://github.com/owncloud/ocis/pull/10557 diff --git a/services/sharing/pkg/config/defaults/defaultconfig.go b/services/sharing/pkg/config/defaults/defaultconfig.go index 7a88eea71..b4f02fcb6 100644 --- a/services/sharing/pkg/config/defaults/defaultconfig.go +++ b/services/sharing/pkg/config/defaults/defaultconfig.go @@ -47,7 +47,7 @@ func DefaultConfig() *config.Config { JSONCS3: config.UserSharingJSONCS3Driver{ ProviderAddr: "com.owncloud.api.storage-system", SystemUserIDP: "internal", - MaxConcurrency: 5, + MaxConcurrency: 1, }, OwnCloudSQL: config.UserSharingOwnCloudSQLDriver{ DBUsername: "owncloud",