Skip to content

Commit

Permalink
feat(prover): Add scale failure events watching and pods eviction. (#…
Browse files Browse the repository at this point in the history
…3175)

## What ❔

Add scale failure events watching.
Add pending pods eviction to different cluster if there are
`FailedScaleUp` events.
Keep watching k8s if an error occurred. 
<!-- What are the changes this PR brings about? -->
<!-- Example: This PR adds a PR template to the repo. -->
<!-- (For bigger PRs adding more context is appreciated) -->

## Why ❔

To failover to different cluster faster if there is no capacity in the
current one.

<!-- Why are these changes done? What goal do they contribute to? What
are the principles behind them? -->
<!-- Example: PR templates ensure PR reviewers, observers, and future
iterators are in context about the evolution of repos. -->

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [x] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [ ] Tests for the changes have been added / updated.
- [ ] Documentation comments have been added / updated.
- [x] Code has been formatted via `zkstack dev fmt` and `zkstack dev
lint`.


ref ZKD-1855
  • Loading branch information
yorik authored Oct 25, 2024
1 parent f3724a7 commit dd166f8
Show file tree
Hide file tree
Showing 5 changed files with 222 additions and 103 deletions.
141 changes: 98 additions & 43 deletions prover/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion prover/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ indicatif = "0.16"
itertools = "0.10.5"
jemallocator = "0.5"
k8s-openapi = { version = "0.23.0", features = ["v1_30"] }
kube = { version = "0.95.0", features = ["runtime", "derive"] }
kube = { version = "0.96.0", features = ["runtime", "derive"] }
local-ip-address = "0.5.0"
log = "0.4.20"
md5 = "0.7.0"
Expand Down
Loading

0 comments on commit dd166f8

Please sign in to comment.