feat: M2 configuration and load-level classification
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e39e1c91a4
commit
779ca1af83
9 files changed
+792
No files matched your search
@@ -0,0 +1,67 @@
|
||||
# Zag Configuration
|
||||
# Generated by: zag config install
|
||||
|
||||
[service]
|
||||
# Logging verbosity: debug, info, warn, error
|
||||
log_level = "info"
|
||||
|
||||
# DEPRECATED: Use [load_levels] section instead
|
||||
# max_concurrent_jobs = 4
|
||||
|
||||
# How often running jobs update their heartbeat (seconds)
|
||||
heartbeat_interval_seconds = 5
|
||||
|
||||
# Heartbeat age before a job is considered orphaned (seconds)
|
||||
stale_heartbeat_threshold_seconds = 30
|
||||
|
||||
[load_levels]
|
||||
# Maximum concurrent high load jobs (CPU/GPU intensive)
|
||||
max_high_jobs = 2
|
||||
|
||||
# Maximum concurrent medium load jobs (general purpose)
|
||||
max_medium_jobs = 8
|
||||
|
||||
# Maximum concurrent low load jobs (network/IO intensive)
|
||||
max_low_jobs = 32
|
||||
|
||||
[jobs]
|
||||
# Maximum time a job can run before being killed (seconds)
|
||||
default_timeout_seconds = 3600
|
||||
|
||||
# Number of retry attempts for failed jobs
|
||||
max_retries = 3
|
||||
|
||||
# Initial delay before first retry (seconds)
|
||||
retry_delay_seconds = 30
|
||||
|
||||
# Multiplier applied to delay after each retry
|
||||
retry_backoff_multiplier = 2.0
|
||||
|
||||
# Only retry on these exit codes (empty = retry all failures)
|
||||
retry_on_exit_codes = []
|
||||
|
||||
[cleanup]
|
||||
# Enable automatic cleanup of old jobs
|
||||
enabled = true
|
||||
|
||||
# Remove jobs older than this (hours)
|
||||
max_age_hours = 72
|
||||
|
||||
# How often the cleanup task runs (minutes)
|
||||
cleanup_interval_minutes = 60
|
||||
|
||||
# Preserve failed jobs for debugging
|
||||
keep_failed_jobs = true
|
||||
|
||||
# How long to keep failed jobs (hours)
|
||||
keep_failed_jobs_hours = 168
|
||||
|
||||
[storage]
|
||||
# Root directory for all Zag data
|
||||
base_dir = "/tmp/zag"
|
||||
|
||||
# Maximum disk space Zag can use (GB)
|
||||
max_disk_usage_gb = 50
|
||||
|
||||
# Keep work/input and work/output after job completion
|
||||
preserve_work_dir = false
|
||||
Reference in new issue
Block a user