rcourtman
5c65f65a90
Pass keep_alive=30s to Ollama so the model unloads between Patrol runs
...
Ollama keeps the loaded model in RAM for 5 minutes by default after
each request, and every new request refreshes that 5-minute window.
Pulse never passed keep_alive, so any Ollama traffic (Patrol, alert
analysis, AI chat) within 5 minutes of the previous request kept the
model warm — and on a server with continuous Pulse activity that
meant the model never unloaded, even with Patrol set to a 24-hour
interval (Fixes #1425 ).
Pass keep_alive=30s on every Chat and ChatStream request. Short
enough that the model unloads shortly after a Patrol burst or
one-shot analysis ends, long enough to span the small gaps between
sequential calls within a single analysis session (so the model is
not reloaded mid-burst).
Tests assert that both the streaming and non-streaming Chat paths
include the keep_alive field in the Ollama request body.
2026-04-30 10:59:04 +01:00
..
2026-02-18 13:27:47 +00:00
2026-02-04 19:56:12 +00:00
2026-01-30 19:02:14 +00:00
2026-04-01 12:00:38 +01:00
2026-01-25 21:08:44 +00:00
2026-01-03 11:14:17 +00:00
2026-02-04 19:46:20 +00:00
2026-03-25 09:55:17 +00:00
2026-02-02 19:26:24 +00:00
2026-02-01 23:26:20 +00:00
2026-01-25 21:08:44 +00:00
2026-03-26 09:16:38 +00:00
2026-03-31 08:55:45 +01:00
2026-02-04 19:46:20 +00:00
2026-03-31 09:23:03 +01:00
2026-02-04 19:46:20 +00:00
2026-04-30 10:59:04 +01:00
2026-03-31 09:50:11 +01:00
2026-02-01 18:07:51 +00:00
2026-01-30 19:02:14 +00:00
2026-04-09 14:33:54 +01:00
2026-03-01 22:29:36 +00:00
2026-01-24 22:41:43 +00:00
2026-01-22 22:30:35 +00:00
2026-01-25 21:08:44 +00:00
2025-12-29 13:56:29 +00:00
2026-01-22 22:30:35 +00:00
2025-12-29 13:49:04 +00:00
2025-12-10 08:35:24 +00:00
2026-01-30 19:02:14 +00:00
2026-01-30 19:02:14 +00:00
2025-12-29 13:49:04 +00:00
2026-01-01 22:29:15 +00:00
2025-12-12 11:29:47 +00:00
2025-12-06 23:46:08 +00:00
2025-12-12 14:26:10 +00:00
2025-12-29 13:49:04 +00:00
2025-12-12 09:45:57 +00:00
2026-02-01 18:08:02 +00:00
2026-01-24 22:41:43 +00:00
2026-01-24 22:41:43 +00:00
2026-02-04 13:46:56 +00:00
2026-02-04 13:46:56 +00:00
2025-12-19 21:53:06 +00:00
2026-01-25 21:08:44 +00:00
2026-01-30 19:02:14 +00:00
2026-01-02 12:45:00 +00:00
2026-01-30 19:02:14 +00:00
2026-01-30 19:02:14 +00:00
2025-12-29 13:56:29 +00:00
2026-01-24 22:41:43 +00:00
2026-01-31 16:23:08 +00:00
2026-02-01 10:12:23 +00:00
2026-01-19 19:20:49 +00:00
2026-01-19 19:20:49 +00:00
2026-03-01 22:29:36 +00:00
2026-01-30 19:02:14 +00:00
2026-01-24 22:41:43 +00:00
2025-12-29 17:25:21 +00:00
2026-01-02 19:53:01 +00:00
2026-01-24 22:41:43 +00:00
2026-02-01 23:26:20 +00:00
2026-01-01 22:29:15 +00:00
2025-12-20 20:25:20 +00:00
2025-12-12 13:49:37 +00:00
2025-12-29 13:49:04 +00:00
2025-12-19 22:59:52 +00:00
2025-12-29 13:49:04 +00:00
2025-12-12 09:45:57 +00:00
2025-12-29 17:25:21 +00:00
2026-02-02 10:29:07 +00:00
2026-02-04 14:12:50 +00:00
2026-02-02 11:15:07 +00:00
2026-03-27 10:57:14 +00:00
2026-02-01 18:07:41 +00:00
2026-03-27 10:57:14 +00:00
2026-02-02 11:15:19 +00:00
2026-03-26 23:16:28 +00:00
2026-01-30 19:02:14 +00:00
2026-02-01 23:26:20 +00:00
2026-02-02 10:29:07 +00:00
2026-02-01 23:26:20 +00:00
2026-02-04 19:56:12 +00:00
2026-03-31 09:37:49 +01:00
2026-03-31 09:50:11 +01:00
2026-03-25 11:33:34 +00:00
2026-03-25 11:33:34 +00:00
2026-02-01 16:27:25 +00:00
2026-02-04 14:12:50 +00:00
2026-02-10 21:46:11 +00:00
2026-02-01 16:27:25 +00:00
2026-02-02 10:29:07 +00:00
2026-01-30 19:02:14 +00:00
2026-02-04 14:08:57 +00:00
2026-01-30 19:02:14 +00:00
2026-02-02 11:15:19 +00:00
2026-04-05 23:35:54 +01:00
2026-02-03 14:39:00 +00:00
2026-02-26 21:09:13 +00:00
2026-02-02 11:15:19 +00:00
2026-03-08 22:16:24 +00:00
2026-03-08 22:16:24 +00:00
2026-01-30 19:02:14 +00:00
2026-01-24 22:41:43 +00:00
2026-02-03 14:39:00 +00:00
2026-02-03 14:39:00 +00:00
2026-02-24 11:29:47 +00:00
2025-12-12 14:11:28 +00:00
2025-12-29 17:25:21 +00:00
2026-01-02 19:53:01 +00:00
2025-12-29 17:25:21 +00:00
2026-01-01 22:29:15 +00:00
2025-12-10 08:35:24 +00:00
2026-04-12 22:33:48 +01:00
2026-01-30 19:02:14 +00:00
2026-01-01 22:29:15 +00:00
2026-01-01 22:29:15 +00:00
2026-02-04 13:54:32 +00:00
2026-04-17 11:10:14 +01:00
2026-01-01 22:29:15 +00:00