Skip to content

Commit

Permalink
Track CPU usage for spawned execution
Browse files Browse the repository at this point in the history
We log the request parameters when a programs uses more than 60
seconds of CPU time. Hopefully this can help us see if there's any
people deliberately abusing the system. In the future, we could inform
the user that they may kill the process if it's unintended.
  • Loading branch information
shepmaster committed Dec 6, 2023
1 parent 2cece27 commit caca924
Show file tree
Hide file tree
Showing 7 changed files with 319 additions and 15 deletions.
151 changes: 141 additions & 10 deletions compiler/base/orchestrator/Cargo.lock

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

3 changes: 3 additions & 0 deletions compiler/base/orchestrator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ tokio-util = { version = "0.7.8", default-features = false, features = ["io", "i
toml = { version = "0.8.2", default-features = false, features = ["parse", "display"] }
tracing = { version = "0.1.37", default-features = false, features = ["attributes"] }

[target.'cfg(target_os = "linux")'.dependencies]
procfs = { version = "0.16.0", default-features = false }

[dev-dependencies]
assert_matches = "1.5.0"
assertables = "7.0.1"
Expand Down
Loading

0 comments on commit caca924

Please sign in to comment.