Linux command
slurmrestd 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
slurmrestd [host]:port
Example
slurmrestd unix:/path/to/socket
Example
slurmrestd -g [group_id] [host]:port
Example
slurmrestd -a [auth_plugins] [host]:port
Example
slurmrestd -f [path/to/slurm.conf]
Example
slurmrestd -u [user_id] [host]:port
Generate
slurmrestd --generate-openapi-spec
说明
slurmrestd provides a REST API interface to Slurm workload manager. It operates in two modes: Inetd Mode for piped input via inetd, xinetd, or systemd socket activation, and Listen Mode for opening sockets on specified addresses. The daemon supports authentication via local UNIX socket credentials or JWT tokens. Multiple listening endpoints can be specified, including TCP ports and Unix sockets. TLS encryption is supported by prefixing addresses with https://.
参数
- -a _plugin,plugin_
- Comma-delimited list of authentication plugins to load
- -d _plugin,plugin_
- Data parser plugins for output formatting
- -s _plugin,plugin_
- OpenAPI plugins determining available endpoints
- -f _file_
- Read Slurm configuration from specified file
- -g _group_id_
- Change group ID and drop supplemental groups
- -u _user_id_
- Change user ID before processing requests
- -t _count_
- Number of processing threads
- --max-connections _count_
- Maximum concurrent connections (default: 124)
- --generate-openapi-spec
- Output JSON OpenAPI schema and exit
- --yaml-compact
- Output YAML in compact format
- --yaml-pretty
- Output YAML in pretty readable format
- --disable-user-check
- Disable check that slurmrestd is not running as root or SlurmUser
- -v
- Verbose mode (up to 6 levels with -vvvvvv)
- -V
- Print version information
- -h
- Display help
FAQ
What is the slurmrestd command used for?
slurmrestd provides a REST API interface to Slurm workload manager. It operates in two modes: Inetd Mode for piped input via inetd, xinetd, or systemd socket activation, and Listen Mode for opening sockets on specified addresses. The daemon supports authentication via local UNIX socket credentials or JWT tokens. Multiple listening endpoints can be specified, including TCP ports and Unix sockets. TLS encryption is supported by prefixing addresses with https://.
How do I run a basic slurmrestd example?
Run `slurmrestd [host]:port` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -a _plugin,plugin_ do in slurmrestd?
Comma-delimited list of authentication plugins to load