TLUSTY/cno_grid/dist_config.yaml
2026-07-23 19:06:45 +08:00

59 lines
2.4 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 分布式网格计算配置dist_master.py 用)。
# 架构master 单向 SSH 推/拉(只需 master 能 SSH 进 workerworker 不回连 master
# 网格轴本身仍在 config.yaml 定义,这里只配 master/qiniu/workers。
#
# 部署:填好本文件后
# python3 src/dist_master.py dist_config.yaml --dry-run # 预览
# python3 src/dist_master.py dist_config.yaml # 全量跑
master:
# master 上 cno_grid 目录tasks.json 在此,调度在此)
workdir: /home/dckj/program/tlusty/tl208-s54/cno_grid
# 网格配置(默认 workdir/config.yaml
grid_config: /home/dckj/program/tlusty/tl208-s54/cno_grid/config.yaml
# 结果根目录(相对 workdir 或绝对路径;与 config.yaml 的 results 一致)
# master 在此汇总 grid_status.json各 worker 各自有自己的 results/(同名)
results: results
qiniu:
# 七牛云 bucket 名(种子库)。填你的实际 bucket。留空则纯本地模式。
bucket: your-bucket
# AK/SK仅 master 持有。建议用环境变量,别提交到仓库:
# export QINIU_ACCESS_KEY=... ; export QINIU_SECRET_KEY=...
access_key: ""
secret_key: ""
# 七牛绑定域名(下载/上传种子用)。公开空间填 http(s)://域名。
domain: ""
seed_prefix: seeds
# 谁上传种子到七牛:
# master默认= master 取回 .7 后代传worker 完全不碰七牛worker 零配置)
# worker = worker 跑完自己传(需 worker 配 QINIU_DOMAIN
upload_by: master
# ---- worker 节点master 只需能 SSH 进这些机器)----
# 每个 worker
# host : user@hostSSH 目标。localhost 表示本机也算一个 worker。
# tlusty_root: 该机器上 TLUSTY 树根(含 tlusty/tlusty.exe、synspec/、data/
# nproc : 该机贡献的并发进程数(建议 ≤ 物理核数)
#
# 注意:单向 SSH。只需 master→worker 免密worker 不需要 SSH 回 master。
#
# 示例5 台机器):
workers:
- host: localhost
tlusty_root: /home/dckj/program/tlusty/tl208-s54
nproc: 8
# - host: user@server2
# tlusty_root: ~/tlusty/tl208-s54
# nproc: 24
# - host: user@server3
# tlusty_root: ~/tlusty/tl208-s54
# nproc: 24
# - host: user@server4
# tlusty_root: ~/tlusty/tl208-s54
# nproc: 16
# - host: user@server5
# tlusty_root: ~/tlusty/tl208-s54
# nproc: 24