feat: optimize ping interval to 30s and SSH sync to 10min with timeout protection
- Change ping interval from 60s to 30s (configurable via PING_INTERVAL) - Change SSH info sync from every ping to every 10 minutes (via ssh_synced_at) - Add SSH command timeout (8s) to prevent hanging on unresponsive hosts - Add concurrency limit (5) for SSH sync operations - Change frontend UI refresh interval from 10s to 30s - Fix: remove hardcoded 30s step, use configured interval directly - Fix: ensure ping loop continues even if individual machine fails
This commit is contained in:
@@ -29,10 +29,10 @@ services:
|
||||
- ENCRYPT_KEY=lan-manager-default-key-change-in-production
|
||||
|
||||
# 功能配置
|
||||
- PING_INTERVAL=60
|
||||
- PING_INTERVAL=30
|
||||
- SSH_TIMEOUT=10
|
||||
- LOG_RETENTION_DAYS=0
|
||||
- UI_REFRESH_INTERVAL=10000
|
||||
- UI_REFRESH_INTERVAL=30000
|
||||
|
||||
# 日志级别
|
||||
- LOG_LEVEL=info
|
||||
|
||||
Reference in New Issue
Block a user