Skip to content

Commit

Permalink
[docs] Explain TTL defaults, scope TTL example to branch & full (#27372)
Browse files Browse the repository at this point in the history
## Summary

Updates our docs to match the most current TTL configuration format, and
explain default TTL values.
  • Loading branch information
benpankow authored Jan 25, 2025
1 parent dca71de commit ef87f61
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ For [Kubernetes agents](/dagster-plus/deployment/deployment-types/hybrid/kuberne

User code servers support a configurable time-to-live (TTL). The agent will spin down any user code servers that haven't served requests recently and will spin them back up the next time they're needed. Configuring TTL can save compute cost because user code servers will spend less time sitting idle.

TTL is disabled by default for full deployments, and can be configured separately for full and [branch deployments](/dagster-plus/managing-deployments/branch-deployments). TTL defaults to 24 hours for both full and branch deployments.

To configure TTL:
```yaml
# dagster.yaml
Expand All @@ -36,8 +38,11 @@ user_code_launcher:
class: DockerUserCodeLauncher
config:
server_ttl:
enabled: true
ttl_seconds: 7200 #2 hours
full_deployments:
enabled: true # Disabled by default for full deployments
ttl_seconds: 7200 # 2 hours
branch_deployments:
ttl_seconds: 3600 # 1 hour
```
## Streaming compute logs
Expand Down

0 comments on commit ef87f61

Please sign in to comment.