Machine parameters#
Note
One can load, modify, and export the input file by using our effective web-based tool DP-GUI online or hosted using the command line interface dpdisp gui. All parameters below can be set in DP-GUI. By clicking “SAVE JSON”, one can download the input file.
- machine:#
- type:
dictargument path:machine- batch_type:#
- type:
strargument path:machine/batch_typeThe batch job system type. Option: SlurmJobArray, Bohrium, PBS, SGE, Torque, Slurm, DistributedShell, JH_UniScheduler, OpenAPI, Shell, Fugaku, LSF
- local_root:#
- type:
str|NoneTypeargument path:machine/local_rootThe dir where the tasks and relating files locate. Typically the project dir.
- remote_root:#
- type:
str|NoneType, optionalargument path:machine/remote_rootThe dir where the tasks are executed on the remote machine. Only needed when context is not lazy-local.
- clean_asynchronously:#
- type:
bool, optional, default:Falseargument path:machine/clean_asynchronouslyClean the remote directory asynchronously after the job finishes.
Depending on the value of context_type, different sub args are accepted.
- context_type:#
- type:
str(flag key)argument path:machine/context_typepossible choices:HDFSContext,BohriumContext,LocalContext,OpenAPIContext,LazyLocalContext,SSHContextThe connection used to remote machine. Option: LocalContext, SSHContext, OpenAPIContext, BohriumContext, LazyLocalContext, HDFSContext
When context_type is set to
HDFSContext(or its aliaseshdfscontext,HDFS,hdfs):- remote_profile:#
- type:
dict, optionalargument path:machine[HDFSContext]/remote_profileThe information used to maintain the connection with remote machine. This field is empty for this context.
When context_type is set to
BohriumContext(or its aliasesbohriumcontext,Bohrium,bohrium,DpCloudServerContext,dpcloudservercontext,DpCloudServer,dpcloudserver,LebesgueContext,lebesguecontext,Lebesgue,lebesgue):- remote_profile:#
- type:
dictargument path:machine[BohriumContext]/remote_profileThe information used to maintain the connection with remote machine.
- email:#
- type:
str, optionalargument path:machine[BohriumContext]/remote_profile/emailEmail
- password:#
- type:
str, optionalargument path:machine[BohriumContext]/remote_profile/passwordPassword
- program_id:#
- type:
int, alias: project_idargument path:machine[BohriumContext]/remote_profile/program_idProgram ID
- retry_count:#
- type:
NoneType|int, optional, default:2argument path:machine[BohriumContext]/remote_profile/retry_countThe retry count when a job is terminated
- ignore_exit_code:#
- type:
bool, optional, default:Trueargument path:machine[BohriumContext]/remote_profile/ignore_exit_code- The job state will be marked as finished if the exit code is non-zero when set to True. Otherwise,
the job state will be designated as terminated.
- keep_backup:#
- type:
bool, optionalargument path:machine[BohriumContext]/remote_profile/keep_backupkeep download and upload zip
- input_data:#
- type:
dictargument path:machine[BohriumContext]/remote_profile/input_dataConfiguration of job
When context_type is set to
LocalContext(or its aliaseslocalcontext,Local,local):- remote_profile:#
- type:
dict, optionalargument path:machine[LocalContext]/remote_profileThe information used to maintain the local machine.
- symlink:#
- type:
bool, optional, default:Trueargument path:machine[LocalContext]/remote_profile/symlinkWhether to use symbolic links to replace copy. This option should be turned off if the local directory is not accessible on the Batch system.
When context_type is set to
OpenAPIContext(or its aliasesopenapicontext,OpenAPI,openapi):- remote_profile:#
- type:
dict, optionalargument path:machine[OpenAPIContext]/remote_profileThe information used to maintain the connection with remote machine. This field is empty for this context.
When context_type is set to
LazyLocalContext(or its aliaseslazylocalcontext,LazyLocal,lazylocal):- remote_profile:#
- type:
dict, optionalargument path:machine[LazyLocalContext]/remote_profileThe information used to maintain the connection with remote machine. This field is empty for this context.
When context_type is set to
SSHContext(or its aliasessshcontext,SSH,ssh):- remote_profile:#
- type:
dictargument path:machine[SSHContext]/remote_profileThe information used to maintain the connection with remote machine.
- hostname:#
- type:
strargument path:machine[SSHContext]/remote_profile/hostnamehostname or ip of ssh connection.
- username:#
- type:
strargument path:machine[SSHContext]/remote_profile/usernameusername of target linux system
- password:#
- type:
str, optionalargument path:machine[SSHContext]/remote_profile/password(deprecated) password of linux system. Please use SSH keys instead to improve security.
- port:#
- type:
int, optional, default:22argument path:machine[SSHContext]/remote_profile/portssh connection port.
- key_filename:#
- type:
str|NoneType, optional, default:Noneargument path:machine[SSHContext]/remote_profile/key_filenamekey filename used by ssh connection. If left None, find key in ~/.ssh or use password for login
- passphrase:#
- type:
str|NoneType, optional, default:Noneargument path:machine[SSHContext]/remote_profile/passphrasepassphrase of key used by ssh connection
- timeout:#
- type:
int, optional, default:10argument path:machine[SSHContext]/remote_profile/timeouttimeout of ssh connection
- totp_secret:#
- type:
str|NoneType, optional, default:Noneargument path:machine[SSHContext]/remote_profile/totp_secretTime-based one time password secret. It should be a base32-encoded string extracted from the 2D code.
- tar_compress:#
- type:
bool, optional, default:Trueargument path:machine[SSHContext]/remote_profile/tar_compressThe archive will be compressed in upload and download if it is True. If not, compression will be skipped.
- look_for_keys:#
- type:
bool, optional, default:Trueargument path:machine[SSHContext]/remote_profile/look_for_keysenable searching for discoverable private key files in ~/.ssh/
- execute_command:#
- type:
str|NoneType, optional, default:Noneargument path:machine[SSHContext]/remote_profile/execute_commandexecute command after ssh connection is established.
- proxy_command:#
- type:
str|NoneType, optional, default:Noneargument path:machine[SSHContext]/remote_profile/proxy_commandProxyCommand to use for SSH connection through intermediate servers.