Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在 Pod 内增加集群信息 #16

Closed
sailxjx opened this issue Mar 16, 2022 · 3 comments
Closed

在 Pod 内增加集群信息 #16

sailxjx opened this issue Mar 16, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@sailxjx
Copy link
Member

sailxjx commented Mar 16, 2022

希望以 dijob replica 方式提交时,每个 pod 都能见到整个 replica 的 host 信息和自己的启动顺序,增加以下几个环境变量:

  1. replica 中所有 pod 的 FQDN,依据启动顺序排序
  2. 当前 pod 的 FQDN
  3. 当前 pod 的顺序编号

DI-engine 中会根据这些变量实现对应的网络连接,attach-to 的生成逻辑可以从 di-orchestrator 中移除

@konnase konnase added the enhancement New feature or request label Mar 16, 2022
@konnase
Copy link
Collaborator

konnase commented Mar 16, 2022

那现在通过ditask提交任务的命令是什么?

@sailxjx
Copy link
Member Author

sailxjx commented Mar 16, 2022

ditask --package $BASEDIR/../entry --main main_league.main --platform k8s 增加一个 platform,其他参数都照单机版本配置就行了,di-engine 里面做适配。例如 --n-workers=2,同时又两个 pod,就会自动分配到两个 pod 上,每个 pod 一个 worker。

@konnase
Copy link
Collaborator

konnase commented Jul 1, 2022

done

@konnase konnase closed this as completed Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants