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

Add dynamic prefix for LocalObjectStorage Key #62893

Open
crazyleeyang opened this issue Apr 24, 2024 · 0 comments
Open

Add dynamic prefix for LocalObjectStorage Key #62893

crazyleeyang opened this issue Apr 24, 2024 · 0 comments
Labels

Comments

@crazyleeyang
Copy link

crazyleeyang commented Apr 24, 2024

(you don't have to strictly follow this form)

Use case
If we use remote object storage based on NFS mount, and wu use disk with object_storage_type eual which type is local_blob_storage, all files are placed in the same directory like this:

/mnt/test/mettksbhzaawesirsakbmpubwuabqidi
/mnt/test/ksojvmwooqymhvefjcgrnbzbdduzqchj
/mnt/test/orzuglnuzmnhrzzytsgoiymamklbtxpu
...

These files have fixed prefixes, metadata of these prefixes may always be allocated on fixed nodes, this is inconvenient for subsequent metadata node expansion.

A clear and concise description of any alternative solutions or features you've considered.

Add local date and random string for prfix,like this:

/mnt/test/2024-04-24/axy/tksbhzaawesirsakbmpubwuabqidi
/mnt/test/2024-04-25/sxo/jvmwooqymhvefjcgrnbzbdduzqchj
/mnt/test/2024-04-26/hgf/uglnuzmnhrzzytsgoiymamklbtxpu
....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant