-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from hmushegh/FZK
Testing looks good
- Loading branch information
Showing
7 changed files
with
111 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,46 @@ | ||
dCache Endit Provider | ||
============================================== | ||
# dCache Endit Provider | ||
|
||
This [dCache] plugin interfaces with the [Endit] TSM integration system. | ||
|
||
To compile the plugin, run: | ||
``` | ||
mvn package | ||
``` | ||
|
||
mvn package | ||
To install the plugin, unpack the resulting tarball in the dCache's plugin directory (usually `/usr/local/share/dcache/plugins`). | ||
|
||
To install the plugin, unpack the resulting tarball in the dCache | ||
plugin directory (usually `/usr/local/share/dcache/plugins`). | ||
|
||
## Configuration | ||
## Watching provider | ||
|
||
To use, define a nearline storage in the dCache admin interface: | ||
``` | ||
hsm create osm the-hsm-name endit -directory=/path/to/endit/directory | ||
``` | ||
|
||
hsm create osm the-hsm-name endit -directory=/path/to/endit/directory | ||
|
||
The endit directory must be on the same file system as the pool's | ||
data directory. | ||
The endit directory must be on the same file system as the pool's data directory. | ||
|
||
The above will create a provider that uses the JVMs file event | ||
notification feature which in most cases maps directly to a native | ||
file event notification facility of the operating system. | ||
The above will create a provider that uses JVM's file event notification feature which in most cases maps directly to a native file event notification facility of the operating system. | ||
|
||
## Polling provider | ||
|
||
To use a provider that polls for changes, use: | ||
``` | ||
hsm create osm the-hsm-name endit-polling -directory=/path/to/endit/directory | ||
``` | ||
|
||
hsm create osm osm the-hsm-name -directory=/path/to/endit/directory | ||
This provider accepts two additional options with the following default values: | ||
* `threads=1` | ||
* `period=5000` | ||
|
||
This provider accepts two additional options with the following default | ||
values: | ||
The first is the number of threads used for polling for file changes and the second is the poll period in milliseconds. | ||
|
||
-threads=1 | ||
-period=5000 | ||
[dCache]: http://www.dcache.org/ | ||
[Endit]: https://github.com/maswan/endit | ||
|
||
The first is the number of threads used for polling for file changes | ||
and the second is the poll period in milliseconds. | ||
### Notes on the provider behaviour | ||
|
||
[dCache]: http://www.dcache.org/ | ||
[Endit]: https://github.com/neicnordic/endit | ||
* The polling provider does *not* monitor the request files, once they are created. Editing or deleting them has no consequences from the perspective of dCache. | ||
* The polling provider will check whether a requested file does exist already in the `/in` folder, before it writes a new request file and, if so, move it into the pool's inventory without staging anything. | ||
* The polling provider will *overwrite* existing request files, when the pool receives a request (that isn't satisfied by the content of the `/in` folder). That is important regarding *retries* of recalls from the pool and *pool restarts*! | ||
* The polling provider will check for *error files* with every poll. If such a file exists for a requested file, it's content is read and verbatim raised as an exception from the staging task. Because the exception is raised, the task will be aborted and all related files should get purged. | ||
* The error file's path has to be `/request/<pnfsid>.err` | ||
* Shutting down the polling provider and/or the pool does clean up existing request files. |
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
Binary file not shown.
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