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

FileStorageService support for folder scattering #527

Closed
luis100 opened this issue Sep 14, 2016 · 1 comment
Closed

FileStorageService support for folder scattering #527

luis100 opened this issue Sep 14, 2016 · 1 comment

Comments

@luis100
Copy link
Member

luis100 commented Sep 14, 2016

Anti-cluttering technique similar to hashed directory structure.

For folders that will have entries that are randomly generated, like the storage/aip, that will have a sub-folder for each AIP with the ID as the folder name, which ill be an randomly generated UUID, we can use a technique to work-around the possible cluttering of billions of directory entries.

Example: 123e4567-e89b-12d3-a456-426655440000
123/e45/123e4567-e89b-12d3-a456-426655440000

Have a configuration in roda-core.properties that defines the folders where this technique will be used and with what configuration.

core.storage.filesystem.sparse = aip
core.storage.filesystem.sparse = jobreport
# base path regex pattern
core.storage.filesystem.sparse.aip.base = aip/
# first block with 3 characters, second block with 2 characters, then entry with all characters
core.storage.filesystem.sparse.aip.path = aip/%3/%2/%all 
# if path first not found, fallback to second option
# first block with 3 characters, second block with 2 characters, then entry with rest of characters
core.storage.filesystem.sparse.aip.path = aip2/%3/%2/%rest 

# base path regex pattern
core.storage.filesystem.sparse.jobreport.base = job-report/(.*)/
core.storage.filesystem.sparse.jobreport.base = job-report/$1/%2/%all
@luis100 luis100 added this to the Unplanned milestone Sep 14, 2016
@jmaferreira jmaferreira modified the milestones: Unplanned, 2.3.0 Mar 29, 2018
@jmaferreira jmaferreira changed the title FileStorageService support for directory scatter FileStorageService support for folder scatter Mar 29, 2018
@jmaferreira jmaferreira changed the title FileStorageService support for folder scatter FileStorageService support for folder scattering Mar 29, 2018
@luis100 luis100 self-assigned this May 24, 2018
@nunovieira220
Copy link
Contributor

Done on 47ffeac

@luis100 luis100 closed this as completed Jul 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants