slurm-web(centos 7 )

本文详细介绍了在Linux环境下安装与配置SLURM集群管理系统的过程,包括pyslurm模块的安装、slurm-web界面的部署及REST API与dashboard的设置,为用户提供了一套完整的集群管理和监控解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1、安装slurm   

        参考: https://blog.youkuaiyun.com/qq_42006894/article/details/80522853

2 、pyslurm     https://github.com/PySlurm/pyslurm/

     pip install python-devel python-libs        #********

yum install Cython
pip install Cython
pip install pyslurm

2、slurm-web

    将 dashboard 内容 复制到 /var/www/html/下,启动httpd  服务

yum install redis mod_wsgi
pip install redis

3、配置restapi wsgi的httpd 服务

mkdir -p /etc/slurm-web/ 放入 配置文件 rack restapi dashboard/*

cd /etc/httpd/conf.modules.d/

vi 10-wsgi.conf 加入

LoadModule wsgi_module modules/mod_wsgi.so

vim /etc/httpd/conf.d/virtualhosts.conf

<VirtualHost *:80>
ServerName 192.168.108.138
#WSGIDaemonProcess wxsrv  threads=5
WSGIScriptAlias /slurm-restapi /home/slurm-web/rest/slurm-web-restapi.wsgi
<Directory "/home/slurm-web/rest">
#WSGIProcessGroup wxsrv
WSGIApplicationGroup %{GLOBAL}
 WSGIScriptReloading On
 Order deny,allow
 Require all granted
</Directory>
</VirtualHost>

systemctl restart httpd

访问 http://192.168.108.138/slurm-restapi/${route}  对应slurmrestapi.py 中的route

4、 配置dashboard

dashboard git 库中 缺少很多第三方js库,需要手动放在/var/www/html/javascript/ 下

git 库 conf\dashboard\ *.conf   放在 /var/www/html/slurm-web-conf\ 下

或使用 wsgi  指向 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值