Use LSF blaunch command in LSFJob to start the workers in a multitask job
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- python
调研方向
从 LSFJob 构造函数和 LSFCluster 的 job_cls 入口点开始,然后比较当前的 distributed.cli.dask_worker 命令与提议的 blaunch 调用。完成的标准是:多任务 LSF 作业可以在请求的主机之间为每个任务启动一个 worker,而不需要 span[hosts=1],并且该行为已由相关的 LSF 作业测试覆盖(如果有)。
由索引模型根据 Issue 内容生成。
描述
Hello, I am using Dask with IBM LSF cluster, I noted that the current LSF Cluster implementation does not give the ability to start an LSF job on multiple hosts, which can be achieved by using the LSF blaunch command.
Modification proposal
The current way of starting multiple workers on one job that has multiple tasks (-n bsub option) is by setting the --nworkers option of distributed.cli.dask_worker to the number of tasks. Could it be a better option to use instead the blaunch command provided by LSF to run a command on each requested task ? In this way the workers will be dispatched on the different hosts provided by LSF and the span[hosts=1] will not be required anymore.
Here a test code I made by subclassing LSFJob class to try using blaunch.
class CustomLSFJob(LSFJob):
def __init__(self, scheduler=None, name=None, **kwargs):
super().__init__(scheduler=scheduler, name=name, **kwargs)
self._command_template = (
f"blaunch '/path/to/python -m distributed.cli.dask_worker {self.scheduler} --name {name}-$LSF_PM_TASKID --nthreads 1 --memory-limit 1.86GiB --nworkers 1 --nanny --death-timeout 60'"
)
self.job_header = self.job_header.replace(
'#BSUB -R "span[hosts=1]"',
'#BSUB -R "span[hosts=-1]"',
)
class CustomLSFCluster(LSFCluster):
job_cls = CustomLSFJob
This code is not usable as is, but I think the changes will only be limited to the constructor of the LSFJob class.
Is this an interesting idea ?
- 主要语言
- Python
- 星标
- 256
- 派生
- 148
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
dask/dask-jobqueue 的其他 Issue
-
bug LSF
难度 3/5 1-2 天 新手友好度 65/100
dask/dask-jobqueue#703 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
dask/dask-jobqueue#701 ·
-
难度 3/5 1-2 天 新手友好度 45/100
dask/dask-jobqueue#699 · 2 条评论 ·
-
bug
难度 3/5 1-2 天 新手友好度 38/100
dask/dask-jobqueue#692 · 1 条评论 ·
-
bug
难度 4/5 3-5 天 新手友好度 35/100
dask/dask-jobqueue#691 · 7 条评论 ·
查看 dask/dask-jobqueue 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 72/100
slavakurilyak/awesome-ai-agents#845 ·
维护者通常 1 天内回复
-
tests: pin that the atomic writers in utils/paths.py stage the temporary file in the target's directory可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭difficulty:2 enhancement good first issue
难度 1/5 1-3 小时 新手友好度 92/100
MakazhanAlpamys/Soup#2178 ·
维护者通常 1 天内回复
-
[BUG] dcg.waggr permutation p-values are folded twice, so near-zero scores get the smallest p-values未关闭
难度 2/5 1-3 小时 新手友好度 75/100
scverse/rapids-singlecell#854 ·
维护者通常 1 天内回复
-
Slang input: int8_t4_packed and uint8_t4_packed are copied into CrossGL可能已有人在做 @ninglinLiu 今天认领。 未关闭area:frontend backend:slang bug direction:input
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
random_elements(unique=True) on an OrderedDict: ZeroDivisionError once only zero weights remain, AssertionError with use_weighting=False可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 13 天内回复