Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pool-repository: Improve metadata check speed on pool re-start.
Motivation: For large pools (> 1T, > 1M files), reading the repository and checking metadata can take a long time when restarting dCache pools -- O (nbr. of entries). This leads to have `smaller` pools which are more manageable in case of interventions (upgrade, reboot, etc). Modification: - Extend the replica repository class to scan the repository with a threads pool. - Add the property: pool.limits.scan-threads(by default 1) to define the number of threads dCache will use to scan the local replica repository of the pool. Result: For 706469 files, to check the metadata of each file in the repository it takes 3 minutes with 1 threads(as today) and 34 seconds with 10 threads. Acked-by: Target: master, 5.2 Require-notes: yes Require-book: no Patch: https://rb.dcache.org/r/11928/ Committed: master@xxxxxx Pull-request: https://github.com/dCache/dcache/pull/xxxx Signed-off-by: Vincent Garonne vgaronne@gmail.com
- Loading branch information
Showing
3 changed files
with
101 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters