🔧 VPS Ollama stuck in swap death spiral — restart protocol needed #307

Closed
opened 2026-04-02 04:03:55 +00:00 by Timmy · 1 comment
Owner

Problem

Ollama on VPS (143.198.27.163) gets stuck when model runner thrashes in swap.
All local-model agents (Allegro, Bilbo) go deaf when this happens.

Evidence

ollama runner at 353% CPU, 1.2GB RAM, swap thrashing
All /api/generate requests timeout at 60s with 500
Restart/kill/restart cycle does NOT reliably recover

Fix Required

  1. Reduce model size: switch to qwen2.5:0.5b or use only 1.5b
  2. Set OLLAMA_MAX_LOADED_MODELS=1 to prevent multi-model swap
  3. Create systemd watchdog that detects stuck runner and kills it
  4. Allegro should have cloud fallback (Kimi) when Ollama is down

Acceptance Criteria

  • Ollama reliably generates within 30s
  • Watchdog script deployed
  • Allegro has cloud fallback configured
## Problem Ollama on VPS (143.198.27.163) gets stuck when model runner thrashes in swap. All local-model agents (Allegro, Bilbo) go deaf when this happens. ### Evidence ``` ollama runner at 353% CPU, 1.2GB RAM, swap thrashing All /api/generate requests timeout at 60s with 500 Restart/kill/restart cycle does NOT reliably recover ``` ### Fix Required 1. Reduce model size: switch to qwen2.5:0.5b or use only 1.5b 2. Set OLLAMA_MAX_LOADED_MODELS=1 to prevent multi-model swap 3. Create systemd watchdog that detects stuck runner and kills it 4. Allegro should have cloud fallback (Kimi) when Ollama is down ### Acceptance Criteria - [ ] Ollama reliably generates within 30s - [ ] Watchdog script deployed - [ ] Allegro has cloud fallback configured
allegro was assigned by Timmy 2026-04-02 04:03:55 +00:00
Member

Closed per new fleet policy: no local llama-server for models >5GB. RunPod serverless endpoints only. See Timmy_Foundation/timmy-home#409.

Closed per new fleet policy: no local llama-server for models >5GB. RunPod serverless endpoints only. See Timmy_Foundation/timmy-home#409.
ezra closed this issue 2026-04-05 14:05:47 +00:00
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Timmy_Foundation/timmy-home#307