🧠 Complete Memory Stack setup across all nodes
Some checks failed
Build and Deploy Docs / build-and-deploy (push) Has been cancelled

- NODE1: Neo4j (K8s), NVIDIA RTX 4000 + CUDA 13.1
- NODE2: Fixed Neo4j & Qdrant containers
- NODE3: Full stack (PostgreSQL + Qdrant + Neo4j)
- Updated MEMORY-MODULE-STATUS.md v2.0.0
This commit is contained in:
Apple
2026-01-10 08:26:42 -08:00
parent 8aee29d42d
commit f4ccf7c570

View File

@@ -1,20 +1,21 @@
# 🧠 Agent Memory Module — Status Report
**Дата:** 2026-01-10
**Версія документа:** 1.0.0
**Версія документа:** 2.0.0
**Останнє оновлення:** 17:30 CET
---
## 📊 Загальний статус
| Компонент | NODE1 | NODE2 | NODE3 |
|-----------|-------|-------|-------|
|-----------|:-----:|:-----:|:-----:|
| **PostgreSQL** | ✅ K8s (CloudNativePG) | ❌ | ✅ Docker |
| **Qdrant** | ✅ K8s | ✅ Docker (unhealthy) | ❌ |
| **Neo4j** | | ⚠️ Docker (restarting) | ❌ |
| **Ollama** | ✅ v0.13.5 (fresh) | ✅ v0.12.11 | ✅ v0.13.5 |
| **NVIDIA GPU** | ❌ (CPU only) | ❌ (Apple M4) | ✅ RTX 3090 |
| **LTS-2 (CUDA)** | ⚠️ Driver 590.48.01 | N/A | ✅ CUDA 13.0 |
| **Qdrant** | ✅ K8s | ✅ Docker | ✅ Docker |
| **Neo4j** | ✅ K8s | Docker | ✅ Docker |
| **Ollama** | ✅ v0.13.5 | ✅ v0.12.11 | ✅ v0.13.5 |
| **NVIDIA GPU** | ✅ RTX 4000 SFF Ada | ❌ (Apple M4) | ✅ RTX 3090 |
| **CUDA** | ✅ 13.1 | N/A | ✅ 13.0 |
---
@@ -24,6 +25,13 @@
**OS:** Ubuntu 24.04.3 LTS
**Role:** K8s Master (K3s), Primary Database Host
### Hardware
```
GPU: NVIDIA RTX 4000 SFF Ada Generation (20GB VRAM)
Driver: 590.48.01
CUDA: 13.1
```
### Memory System Components
#### ✅ PostgreSQL (CloudNativePG)
@@ -32,6 +40,7 @@ Status: Running (1/1)
Pod: daarion-postgres-1
Namespace: daarion
Storage: PVC-backed
Port: 5432 (internal)
```
**Таблиці (Agent Memory Schema):**
@@ -53,10 +62,19 @@ Status: Running (1/1)
Pod: qdrant-5d45444569-hfbzg
Namespace: qdrant
Port: 6333 (internal), 30333 (NodePort)
Collection: memories (1024-dim, Cosine)
```
**Колекції:**
- `memories` — 1024-dimensional vectors (Cohere embed-multilingual-v3.0)
#### ✅ Neo4j (Graph Database)
```
Status: Running (1/1)
Pod: neo4j-76f9cbbd87-nphr5
Namespace: neo4j
HTTP: 7474 (internal), 30474 (NodePort)
Bolt: 7687 (internal), 30687 (NodePort)
Auth: neo4j/DaarionNeo4j2026!
Plugins: APOC
```
#### ✅ External Secrets (Vault Integration)
```
@@ -69,13 +87,7 @@ memory-service-secrets: SecretSynced ✅
Version: 0.13.5
Service: systemd (enabled, running)
API: http://127.0.0.1:11434
Models: (none downloaded yet)
GPU: NVIDIA Driver 590.48.01 (DKMS installed)
```
#### ❌ Neo4j
```
Status: NOT INSTALLED
GPU: NVIDIA RTX 4000 SFF Ada (CUDA 13.1)
```
---
@@ -94,20 +106,23 @@ Status: NOT INSTALLED
Note: Can use NODE1's PostgreSQL via SSH tunnel
```
#### ⚠️ Qdrant (Docker)
#### Qdrant (Docker)
```
Container: qdrant-vector-db
Status: Up 5 hours (unhealthy)
Status: Running ✅
Ports: 6333-6335
Image: qdrant/qdrant:latest
```
#### ⚠️ Neo4j (Docker)
#### Neo4j (Docker)
```
Containers:
- dagi-neo4j: Restarting (exit code 1)
- dagi-neo4j-exporter: Restarting (exit code 0)
Container: neo4j-daarion
Status: Running ✅
HTTP: 7474
Bolt: 7687
Auth: neo4j/DaarionNeo4j2026!
Image: neo4j:5.15-community
Status: NEEDS ATTENTION
Plugins: APOC
```
#### ✅ Ollama
@@ -148,21 +163,33 @@ CUDA: 13.0
#### ✅ PostgreSQL (Docker)
```
Container: dagi-postgres
Image: postgres (23e88eb049fd)
Status: Up 3 hours
Container: postgres-daarion
Image: postgres:16-alpine
Status: Running ✅
Port: 5432
Database: daarion_main
Auth: postgres/DaarionPostgres2026!
Schema: Agent Memory Schema (9 tables)
```
#### Qdrant
#### Qdrant (Docker)
```
Status: NOT INSTALLED
Note: Can deploy via Docker or K3s
Container: qdrant-daarion
Image: qdrant/qdrant:v1.7.4
Status: Running ✅
Ports: 6333, 6334
Collection: memories (1024-dim, Cosine)
```
#### Neo4j
#### Neo4j (Docker)
```
Status: NOT INSTALLED
Container: neo4j-daarion
Image: neo4j:5.15-community
Status: Running ✅
HTTP: 7474
Bolt: 7687
Auth: neo4j/DaarionNeo4j2026!
Plugins: APOC
```
#### ✅ Ollama
@@ -178,16 +205,6 @@ GPU: RTX 3090 (CUDA enabled)
| qwen3:32b | 20 GB | 25 hours ago |
| llama3:latest | 4.7 GB | 2 days ago |
#### ✅ LTS-2 / CUDA
```
NVIDIA-SMI: 580.95.05
Driver Version: 580.95.05
CUDA Version: 13.0
GPU Memory: 24576 MiB
Temperature: 56°C
Power: 126W / 390W
```
---
## 🔗 Архітектура Memory Module
@@ -211,16 +228,24 @@ Power: 126W / 390W
│ │ │
│ ▼ │
│ ┌─────────────────────────────────────────────────────────┐ │
│ │ PostgreSQL (NODE1) │ │
│ │ CloudNativePG + pgvector │ │
│ │ PostgreSQL │ │
│ │ NODE1 (K8s) + NODE3 (Docker) │ │
│ └─────────────────────────────────────────────────────────┘ │
│ │ │
│ ▼ │
│ ┌─────────────────────────────────────────────────────────┐ │
│ │ Qdrant (NODE1) │ │
│ │ Qdrant │ │
│ │ NODE1 (K8s) + NODE2 (Docker) + NODE3 (Docker) │ │
│ │ Semantic Search (1024-dim) │ │
│ │ Cohere embed-multilingual-v3.0 │ │
│ └─────────────────────────────────────────────────────────┘ │
│ │ │
│ ▼ │
│ ┌─────────────────────────────────────────────────────────┐ │
│ │ Neo4j │ │
│ │ NODE1 (K8s) + NODE2 (Docker) + NODE3 (Docker) │ │
│ │ Knowledge Graph + Relationships │ │
│ └─────────────────────────────────────────────────────────┘ │
│ │
├─────────────────────────────────────────────────────────────────┤
│ INFERENCE LAYER │
@@ -228,10 +253,10 @@ Power: 126W / 390W
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
│ │ NODE1 │ │ NODE2 │ │ NODE3 │ │
│ │ Ollama │ │ Ollama │ │ Ollama │ │
│ │ (CPU) │ │ (M4) │ │ (RTX 3090) │ │
│ │ (RTX 4000) │ │ (M4) │ │ (RTX 3090) │ │
│ │ │ │ │ │ │ │
│ │ API-only │ │ 9 models │ │ 2 models │ │
│ │ inference │ │ (42GB max) │ │ (20GB max) │ │
│ │ 20GB VRAM │ │ 9 models │ │ 24GB VRAM │ │
│ │ CUDA 13.1 │ │ (42GB max) │ │ CUDA 13.0 │ │
│ └──────────────┘ └──────────────┘ └──────────────┘ │
│ │
└─────────────────────────────────────────────────────────────────┘
@@ -241,31 +266,44 @@ Power: 126W / 390W
## 📋 TODO / Recommendations
### Критичні
- [ ] **NODE2 Neo4j**Виправити контейнер (постійний restart)
- [ ] **NODE2 Qdrant** — Перевірити healthcheck
### ✅ Виконано (2026-01-10)
- [x] **NODE1**Встановлено Neo4j в K8s
- [x] **NODE1** — NVIDIA драйвери та CUDA 13.1
- [x] **NODE2** — Виправлено Neo4j контейнер
- [x] **NODE2** — Перезапущено Qdrant
- [x] **NODE3** — Встановлено Qdrant
- [x] **NODE3** — Встановлено Neo4j
- [x] **NODE3** — Застосовано Agent Memory Schema
### Рекомендовані
- [ ] **NODE1** — Завантажити базову модель в Ollama (e.g., `llama3:8b`)
- [ ] **NODE3** — Встановити Qdrant для локального семантичного пошуку
- [ ] **NODE1** — Встановити Neo4j для графового зберігання зв'язків
### Опціональні
- [ ] Налаштувати реплікацію PostgreSQL NODE1 ↔ NODE3
- [ ] Розгорнути Memory Service (FastAPI) в K8s
- [ ] Інтегрувати Cohere API для автоматичного ембедингу
### Опціональні
- [ ] Налаштувати Neo4j кластер між нодами
- [ ] Встановити pgvector для PostgreSQL
- [ ] Налаштувати backup для всіх баз даних
---
## 🔐 Credentials Reference
| Service | Location | Access |
|---------|----------|--------|
| PostgreSQL | NODE1 K8s | Via Vault → External Secrets |
| Qdrant | NODE1 K8s | Internal ClusterIP |
| Ollama NODE1 | localhost:11434 | UFW port 11434 |
| Service | Location | Auth |
|---------|----------|------|
| PostgreSQL NODE1 | K8s (daarion ns) | Via Vault → External Secrets |
| PostgreSQL NODE3 | Docker | postgres/DaarionPostgres2026! |
| Qdrant NODE1 | K8s (qdrant ns) | No auth (internal) |
| Qdrant NODE2 | Docker :6333 | No auth |
| Qdrant NODE3 | Docker :6333 | No auth |
| Neo4j NODE1 | K8s :30474/:30687 | neo4j/DaarionNeo4j2026! |
| Neo4j NODE2 | Docker :7474/:7687 | neo4j/DaarionNeo4j2026! |
| Neo4j NODE3 | Docker :7474/:7687 | neo4j/DaarionNeo4j2026! |
| Ollama NODE1 | localhost:11434 | No auth |
| Ollama NODE2 | localhost:11434 | No auth |
| Ollama NODE3 | localhost:11434 | SSH tunnel required |
| Cohere API | Memory Service | `nOdOXnuepLku2ipJWpe6acWgAsJCsDhMO0RnaEJB` |
| Cohere API | Memory Service | nOdOXnuepLku2ipJWpe6acWgAsJCsDhMO0RnaEJB |
---
@@ -273,9 +311,10 @@ Power: 126W / 390W
- `infrastructure/database/agent-memory-schema.sql` — PostgreSQL schema
- `infrastructure/kubernetes/apps/qdrant/deployment.yaml` — Qdrant K8s config
- `infrastructure/kubernetes/neo4j/` — Neo4j K8s config
- `services/memory-service/` — FastAPI Memory Service (not deployed yet)
- `INFRASTRUCTURE.md` — Main infrastructure documentation
---
*Документ згенеровано автоматично: 2026-01-10 17:10 CET*
*Документ оновлено: 2026-01-10 17:30 CET*