nextcloud / nextcloud/server

Stop/throttle clients upon server is busy

Open
#52,255 2 comments 2 reactions 1 assignee View on GitHub

@sorbaugh is already working on this.

Since Apr 17, 2025.

enhancement
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

  • Server detects that it is starting to get overwhelmed
    • detect: cpu/db, time for a response
  • Server gives that info to client
    • server blocks ocs/webdav endpoints with http "retry later" response
  • Client obey that and stops
  • Desktop (probably via notify push): stop sync, retry after e.g. 5 min
  • Android/iOS:
    • show info to user, allow to retry later
    • block background sync
  • client can check via /200 endpoint if server is healthy again

Further idea for later:

  • Not stopping, but throttle down
  • Provide functinality as occ command

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.