8000 Upload store must support multi-host registry instances · Issue #10 · distribution/distribution · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Upload store must support multi-host registry instances #10
Closed
@stevvooe

Description

@stevvooe

Currently, the implementation of uploads uses the local file system to store state. This was done to move the implementation along before setting too many details in stone and to validate the API.

This is terrible and must be fixed before releasing a serious implementation of the registry.

There are two options for implementing state storage:

  1. Store state in the Location header of upload-related requests. Something like <host>/v2/<name>/blobs/uploads/<uuid>?_state=<hmac + urlbase64 encoded:{UUID: <uuid>, Name: <name>, Offset: 0}> would be appropriate, given that these are opaque to the client. This is desirable in that we remove the need for shared state, allowing the registry to scale better.
  2. Store the upload state in redis. This will support more sophisticated coordination at the cost of scalability.

I'm in favor of 1, but we may implement both in the future. We should compare and contrast the benefits of each approach.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0