mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: increase du interval to 1h in dogfood/coder template (#21555)
Increases the interval of running `du` on `/home/coder` and `/var/lib/docker` to 1h. Also decreases the timout to 1m; having `du` run for longer is likely not great.
This commit is contained in:
@@ -506,8 +506,8 @@ resource "coder_agent" "dev" {
|
||||
key = "home_usage"
|
||||
order = 2
|
||||
script = "sudo du -sh /home/coder | awk '{print $1}'"
|
||||
interval = 600
|
||||
timeout = 600
|
||||
interval = 3600 # 1h to avoid thrashing disk
|
||||
timeout = 60 # Longer than this is likely problematic
|
||||
}
|
||||
|
||||
metadata {
|
||||
@@ -515,8 +515,8 @@ resource "coder_agent" "dev" {
|
||||
key = "var_lib_docker_usage"
|
||||
order = 3
|
||||
script = "sudo du -sh /var/lib/docker | awk '{print $1}'"
|
||||
interval = 600
|
||||
timeout = 600
|
||||
interval = 3600 # 1h to avoid thrashing disk
|
||||
timeout = 60 # Longer than this is likely problematic
|
||||
}
|
||||
|
||||
metadata {
|
||||
|
||||
Reference in New Issue
Block a user