-
Notifications
You must be signed in to change notification settings - Fork 6
Advanced Configuration
The drepl
command can be used with the -D
argument to specify a destination Storage Element. However, this can become tideous when there is a need of multiple replicas across multiple SEs.
The replications_ses
configuration option (associated to a user profile within the ~/.dirac/dcommands.conf
) can be used to provide a default list of SEs to use in conjunction with drepl
. It can also be set session-wise with the dsetenv
command.
Example:
$ dsetenv replication_ses=M3PEC-disk,MSFG-disk
The default behaviour is to create replicas on every SE listed in replications_ses
. However, the configuration option replication_scheme
can be used to change this. Here are the schemes available to way SEs are selected to make replicas:
-
all()
: all SEs listed inreplications_ses
are used (the default) -
first(<num>)
: select the first "num" SEs from the list -
random(<num>)
: randomly choose "num" SEs from the list
The dsub command usually generates a JDL for submitting to DIRAC on the fly. It uses by default a very simple setup. Users can change this setup with the --JDL
commandline option.
A custom default JDL can be set in the ~/.dirac/dcommands.conf
configuration file (or session-wise with the dsetenv
command) by setting the jdl
option.
For example, if you want to avoid running jobs at some site for the current session, you do this with:
$ dsetenv jdl="[OutputSandbox = {\"std.out\",\"std.err\"}; BannedSite = \"Some.Faulty.Site\"]"
Alternatively, as with the --JDL
commandline option, you can set jdl
option to the absolute path of a JDL formatted file. Example in ~/.dirac/dcommands.conf
:
[frangrilles_user]
...
jdl=/home/pigay/.dirac/frangrilles.jdl
...
dstat
has a commandline option that allows to specify which job fields are to be displayed.
You can set it in the configuration file or in the session using the dstat_fields
configuration/session option.
For example, if you want a very compact job listing, you can do:
$ dsetenv dstat_fields=Status
$ dstat -a
JobID Status
------- ------
7444908 Done
7444910 Done
7444911 Done
7444912 Done