Skip to content

Obey "throttle" by checking server health state #98

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions