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

Argo Workflow v2.8.0 persistent を検証する #49

Closed
suzuki-shunsuke opened this issue May 16, 2020 · 2 comments
Closed

Argo Workflow v2.8.0 persistent を検証する #49

suzuki-shunsuke opened this issue May 16, 2020 · 2 comments

Comments

@suzuki-shunsuke
Copy link
Owner

suzuki-shunsuke commented May 16, 2020

v2.4 から入っている persistent

https://blog.argoproj.io/argo-workflow-release-v2-4-x-f4b2d66b9bd

Secondary workflow persistence store - stores the workflow resources long term centrally

v2.3 までは etcd に workflow object が保存されていた。

  • Object size が 1MB に制限されていた
  • 実行された worklfow object はガベージコレクションされる

Workflow 及び pod が残り続けると k8s のパフォーマンスに悪影響があるから消さないといけない。
消してもログ及び workflow の実行履歴が見れるように永続化したという理解

検証

workflow を実行

$ argo submit --watch https://raw.githubusercontent.com/argoproj/argo/master/examples/hello-world.yaml

workflow と pod がある

$ kb get workflow
NAME                STATUS      AGE
hello-world-lmh8z   Succeeded   10m

$ kb get po | grep hello
hello-world-lmh8z                      0/2     Completed   0          11m

これらを消したとして

  • CLI
  • Web UI

から workflow の情報が取れるか否か

Argo workflow v2.4.2 supports the secondary persistence store only for the backend.
The next release will support secondary persistence in the user interface and command line.

2.4.2 ではサポートしていないが、 2.8.0 ではどうか。

@suzuki-shunsuke
Copy link
Owner Author

suzuki-shunsuke commented May 16, 2020

Pod を消したところ

image

Pod did not output any logs.
Still waiting for data or an error? Try getting logs from the artifacts.


logs from the artifacts.

をクリックしたらちゃんとログが見れた

若干不便だが、ちゃんとログが見れる。

しかし、 argo CLI だと見れなかった

(⎈ |minikube:default)❯ argo logs hello-world-lmh8z

workflow を消すと見れない気がするんだが、どうだろうか

$ kb delete workflow hello-world-lmh8z

やはり消えた。
と思ったら archive にはあった。

image

ちゃんとろぐもログも見れる。完璧

@suzuki-shunsuke
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant