Skip to content

chore(dogfood): increase container graceful stop time #17528

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions dogfood/coder/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -425,10 +425,16 @@ resource "docker_container" "workspace" {
# CPU limits are unnecessary since Docker will load balance automatically
memory = data.coder_workspace_owner.me.name == "code-asher" ? 65536 : 32768
runtime = "sysbox-runc"
# Ensure the workspace is given time to execute shutdown scripts.
destroy_grace_seconds = 60
stop_timeout = 60

# Ensure the workspace is given time to:
# - Execute shutdown scripts
# - Stop the in workspace Docker daemon
# - Stop the container, especially when using devcontainers,
# deleting the overlay filesystem can take a while.
destroy_grace_seconds = 300
stop_timeout = 300
stop_signal = "SIGINT"

env = [
"CODER_AGENT_TOKEN=${coder_agent.dev.token}",
"USE_CAP_NET_ADMIN=true",
Expand Down
Loading