-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dcache-webdav: improve efficiency of directory listing
Motivation: Listing through webdav is very slow on largish directories (see under testing). This creates backlog and DOS-like conditions on FNAL production. There were two issues: (a) for each directory, the write-token-cache that is maintained in webdav was being checked; the cache loader uses the PnfsHandler to supply that token by requesting the STORAGEINFO attribute. Hence, an extra attribute fetch for each directory. This is rectified by accessing an optional write token from the storage info if it has already been fetched. Merged from patch https://rb.dcache.org/r/14082/. (b) even without fetching STORAGEINFO again for the directories, the original fetch is slow because it includes things like locality and joins for non-POSIX attributes. This is fixed by checking to see if this is a propfind request. If it is, only the minimal set of (POSIX-) attributes are requested, unless the dCache property for propfind default is set to CLIENT_COMPATIBLE. Result: Considerable speed-up (see testing). Target: master Request: 9.1 Request: 9.0 Request: 8.2 Patch: https://rb.dcache.org/r/14085/ Requires-notes: yes Acked-by: Tigran
- Loading branch information
Showing
5 changed files
with
106 additions
and
25 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
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