Skip to content

The dataprovider should be a dedicated service #1314

Description

@butonic

Currently, the opencloud pod scales based on CPU and we have an HPA in place that can scale the replicas. The pod however also starts multiple listeners, one of them as part of the storage-users service.

The storage-users service handles events and requires access to the upload sessions, which are stored on disk. This is however part of the dataprovider:

  • When file uploads and downloads are initiated they always create a new upload session with the CS3 InitiateUpload call to the CS3 storageprovider. These requests are short lived because the actual upload is handles async.
  • Then the bytes are transferred with a CS3 dataprovider ... which we currently deploy as part of the storage-users service ...

That we create upload sessions asyncronously in effect builds a queue of upload sessions that should be handled by a "worker pool" of dataproviders. This includes the whole lifetime of an upload sessions: file transfer as well as firing and listening for related events.

If we move the dataprovider to a dedicated service the storage-users service can handle requests and publish events, scaling with all the other handlers. The dataprovider can then handle up and download requests as well as consume upload session events.

The dataprovider is in effect our only real worker service and it needs access to the uploads quarantine area as well as the event queue.

We could split the functionality and run the request handler part of the dataprovider wit the storage-users service inside the opencloud pod that handles requests, but then the workers (or backend) pod requires access to the storage volume. Something that is not necessary, yet. 🤔

In case of decomposed s3 we could store the upload session information in nats and directly upload the blob to an s3 ... getting rid of the RWM volume for uploads. ... hm different topic.

Activity

  1. butonic commented on Aug 6, 2025

    @butonic
    MemberAuthor

    In theory we could try to split the request driven code from the event handling. The request driven could run in the opencloud/handler/frontend pod, the event handling in the worker/listener/backend pod. However both pods would require access to the same data and upload volumes. Also it seems we would not gain much, other than pureness.

    On the other hand, having a dedicated worker pod for file up and downloads that also consumes the postprocessing events would best reflect the acual workload of a dataprovider.

  2. butonic commented on Aug 6, 2025

    @butonic
    MemberAuthor

    Hm, it might actually already be possible to deploy a dedicated storage-users pod and only use the dataprovider of it 🤔

  3. added theissue type on Aug 11, 2026
  4. moved this from Qualification to No status in OpenCloud Team Boardon Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions