Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit the number of concurrent share invite requests #10227

Closed
kulmann opened this issue Dec 20, 2023 · 5 comments
Closed

Limit the number of concurrent share invite requests #10227

kulmann opened this issue Dec 20, 2023 · 5 comments
Assignees
Labels
Priority:p1-urgent Consider a hotfix release with only that fix Type:Bug Something isn't working

Comments

@kulmann
Copy link
Member

kulmann commented Dec 20, 2023

Describe the bug

Apparently ocis has issues with concurrent share creations on the same file. To mitigate this quickly, we want to set a (configurable) limit for the number of share receivers in one invite concurrent requests.

Steps to reproduce

  1. Create a file
  2. Add 20 share receivers
  3. click the submit button

Expected behavior

Short request/response duration and no failing invites.

Actual behavior

Slow consecutive requests, sometimes failing, if the deployment/instance is slow in general.

Solution

We want to set a configurable number of concurrent requests here

Would like to propose the config.json structure as follows:

options: {
  concurrentRequests: {
    default: number,
    invites: number,
    uploads: number
  }
}

Affected versions

Needs to be fixed in stable-7.1 AND stable-8.0 so that we can provide a fix for ocis-4.0 and the upcoming ocis-5.0.

@kulmann kulmann added Type:Bug Something isn't working Priority:p1-urgent Consider a hotfix release with only that fix labels Dec 20, 2023
@kulmann kulmann changed the title Limit the number of share receivers per invite Limit the number of concurrent share invite requests Dec 20, 2023
@kulmann kulmann self-assigned this Dec 21, 2023
@JammingBen
Copy link
Collaborator

Fixed via #10230. Now needs to target the other branches as well.

@kulmann
Copy link
Member Author

kulmann commented Dec 22, 2023

Brought the config to ocis master via owncloud/ocis#8056 - also needs to be backported to ocis stable-4.0.

@AlexAndBear
Copy link
Contributor

This is still open, any actions we should take from here because p1?

@kulmann
Copy link
Member Author

kulmann commented Jan 18, 2024

Depends. Backport to stable-7.1 would still be needed to close this issue if (and only if) the bycs team can handle further patches of the ocis-4.0 minor version. We didn't receive a definitive answer or it didn't reach me.

@dragotin could you shed some light on this? For ocis-5.0 the work is done. I'd like to close here because this is not a bug in the general product.

@micbar
Copy link
Contributor

micbar commented Jan 22, 2024

We can close here IMHO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:p1-urgent Consider a hotfix release with only that fix Type:Bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

4 participants