twitter / scoot

Scoot is a distributed task runner, supporting both a proprietary API and Bazel's Remote Execution.
Apache License 2.0
349 stars 48 forks source link

Ability to override worker memory utilization function #589

Closed harshita-chaudhary closed 2 years ago

harshita-chaudhary commented 2 years ago

Introduce ability to pass a memory utilization function when starting workerserver. If passed, use this function to calculate worker memory and compare against the memory cap.

codecov-commenter commented 2 years ago

Codecov Report

Merging #589 (c58869f) into master (a67632a) will decrease coverage by 0.14%. The diff coverage is 30.00%.

@@            Coverage Diff             @@
##           master     #589      +/-   ##
==========================================
- Coverage   58.85%   58.71%   -0.15%     
==========================================
  Files         102      102              
  Lines        6638     6651      +13     
==========================================
- Hits         3907     3905       -2     
- Misses       2408     2420      +12     
- Partials      323      326       +3     
Impacted Files Coverage Δ
runner/runners/setup.go 0.00% <0.00%> (ø)
worker/starter/start_server.go 0.00% <0.00%> (ø)
runner/execer/os/execer.go 52.25% <33.33%> (-2.68%) :arrow_down:
cloud/cluster/cluster.go 74.19% <0.00%> (-11.30%) :arrow_down:
runner/execer/os/process.go 50.00% <0.00%> (+1.23%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a67632a...c58869f. Read the comment docs.