Skip to content

Obey "throttle" by checking server health state #98

@tobiasKaminsky

Description

@tobiasKaminsky

Latest idea:

  • clients define "bulk/high server load" operation
  • before they do them (e.g. upload 100 items), they check new endpoint
  • e.g. /health -> 200 or 509(?)
  • only continues if "200"

Server:

  • another monitoring tool monitors NC load
  • if load is too high, a response header is set: X-NC-THROTTLE
  • How to do
    • NC sets a header to each response
    • Apache/Nginx can do that
  • client should react on it
    • once received, throttle down or show correct info to user (e.g. when happening on manual upload)
    • if next request is fine again, unthrottle
  • Mobile
    • not on user initiated actions (e.g. browsing, uploading)
    • only on background jobs
      • internal two way sync
      • auto upload
  • Desktop
    • to discuss

Metadata

Metadata

Assignees

Labels

0. Needs triagePending approval or rejection. This issue is pending approval.enhancementNew feature or request

Type

No type

Projects

Status

🏗️ In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions