Skip to content

Commit

Permalink
updated thresholds
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Neagu committed Mar 25, 2024
1 parent 8994bf8 commit 699f427
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docker/activity_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@
CHECK_INTERVAL_S: Final[float] = 1
THREAD_EXECUTOR_WORKERS: Final[int] = 10

_KB: Final[int] = 1024

BUSY_USAGE_THRESHOLD_CPU: Final[float] = 5 # percent in range [0, 100]
BUSY_USAGE_THRESHOLD_DISK_READ: Final[int] = 512 * 1000 # in bytes
BUSY_USAGE_THRESHOLD_DISK_WRITE: Final[int] = 512 * 1000 # in bytes
BUSY_USAGE_THRESHOLD_NETWORK_RECEIVED: Final[int] = 0 # in bytes
BUSY_USAGE_THRESHOLD_NETWORK_SENT: Final[int] = 0 # in bytes
BUSY_USAGE_THRESHOLD_DISK_READ: Final[int] = 512 * _KB
BUSY_USAGE_THRESHOLD_DISK_WRITE: Final[int] = 512 * _KB
BUSY_USAGE_THRESHOLD_NETWORK_RECEIVED: Final[int] = 1 * _KB
BUSY_USAGE_THRESHOLD_NETWORK_SENT: Final[int] = 1 * _KB


# Utilities
Expand Down

0 comments on commit 699f427

Please sign in to comment.