Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve functionality of the Metadata Server (Proposal) #14

Open
pspoerri opened this issue Feb 15, 2023 · 2 comments
Open

Improve functionality of the Metadata Server (Proposal) #14

pspoerri opened this issue Feb 15, 2023 · 2 comments

Comments

@pspoerri
Copy link
Member

pspoerri commented Feb 15, 2023

Desired features

  • Pub/Sub mechanism
  • Update file location
  • Store the entire object as a fixed size. optional

Data structure for each object

{
     location: str,
     type: [refrence, owner]
     backingStore: Optional[str]  # Indicate whether the file has an authoritative source (blocks can be empty)
     size: int
}

Interface

  • Create Bucket
    • createBucket(bucket: str)
  • Delete Bucket
    • deleteBucket(bucket: str)
  • List Buckets
    • listBuckets()
  • Create
    • create(bucket: str, key: str, size: int, sealedSize: int, blocks = None, backingStore = None)
  • Update
    • update(bucket: str, key: str, location: Optional[str], type: Optional[reference, owner], backingStore: Optional[str] size: Optional[int])
    • resize(bucket: str, key: str, newSize: int)
  • List
    • list(bucket: str, key: str, delimiter='/')
  • Delete
    • remove(bucket: str, key: str)
    • removePrefix(bucket: str, prefix: str)
  • Subscribe
    • subscribe(bucket: str)
    • subscribe(bucket: str, key: str) - Exact
    • subscribe(bucket: str, prefix: str) - Use pattern
  • Unsubscribe
    • unsubscribe(bucket: str)
    • unsubscribe(bucket: str, key: str) - Exact
    • unsubscribe(bucket: str, prefix: str) - Use pattern
@BernardMetzler
Copy link
Member

huh?

Interface

Create Bucket
    createBucket(bucket: str)
Create Bucket
    deleteBucket(bucket: str)

Delete Bucket..?

@pspoerri
Copy link
Member Author

I fixed it :)

@pspoerri pspoerri changed the title Improve functionality of the Metadata Server (WIP) Improve functionality of the Metadata Server (Proposal) Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants