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

[SPVR-80] create workload metadata before starting workload #481

Merged
merged 1 commit into from
Sep 29, 2021

Conversation

DuodenumL
Copy link
Contributor

之前部署workload时,流程是:1. 启动workload 2. 将workload的metadata存储至ETCD中。

在这两步之间,存在一小段时间,这个workload已经启动,但是ETCD里还没有相关的数据。如果这段时间agent来上报workload状态,就会报错。

这个PR更改了部署workload的流程,变成:1. 写入metadata 2. 启动workload 3. 检查metadata是否需要变更,如果需要的话则update。

@DuodenumL
Copy link
Contributor Author

目前还在测试中。

可能存在的问题:回滚的时候如果删除metadata失败了,是否仍要删除这个workload?(现在的做法是仍要删除)

@DuodenumL DuodenumL changed the title [WIP] create workload metadata before starting workload [WIP] [SPVR-80] create workload metadata before starting workload Sep 28, 2021
@DuodenumL DuodenumL changed the title [WIP] [SPVR-80] create workload metadata before starting workload [SPVR-80] create workload metadata before starting workload Sep 28, 2021
@tonicmuroq
Copy link
Contributor

删除 metadata 失败不重要吧, 本来也有 dissociate 这种, 其实是最终一致性的...
LGTM

@CMGS CMGS merged commit 1628c1b into projecteru2:master Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants