You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.8 KiB
1.8 KiB
Migration Guide — Ollama VM
Owner: prosedur pindah Ollama ke host/IP baru. Inventori: ../server.md. Env: ../../.env.example.
Prinsip: ubah OLLAMA_BASE_URL di consumer — bukan hardcode di kode.
Inventori sebelum migrasi
| Item | Nilai saat ini | File yang diupdate |
|---|---|---|
| Ollama host | 10.100.1.26 (aiopr) |
Ollama/docs/server.md, .env.example |
| API URL | http://10.100.1.26:11434 |
geonet-console .env di .24 |
| Model path | /data/ollama/models |
systemd override |
| UFW | 11434 dari 10.100.1.0/24 |
server UFW rules |
Variabel env terpengaruh
| Variabel | Old | New | Lokasi |
|---|---|---|---|
OLLAMA_BASE_URL |
http://10.100.1.26:11434 |
{new} |
geonet-console .env |
OLLAMA_HOST |
0.0.0.0:11434 |
(sama) | systemd .26 |
Langkah migrasi VM
-
Persiapan VM baru
- Ubuntu 22.04 Server, vCPU ≥ 16, RAM ≥ 32 GiB
- Install Ollama + buat
/data/ollama/models - UFW: 22 + 11434 dari VLAN saja
-
Salin model (pilih salah satu)
rsync -av /data/ollama/models/ke VM baru, atauollama pullulang di VM baru
-
Parallel test
curl/api/versiondari.24- Chat + embed smoke test
-
Cutover consumer
- Update
OLLAMA_BASE_URLdi geonet-console.env - Restart container geonet-console
- Update
-
Dokumentasi
- Update
Ollama/docs/server.md,Workspace-Context.md - Append
version.md+changelog.md
- Update
Rollback
- Kembalikan
OLLAMA_BASE_URLke IP lama - Restart consumer
- Catat di
issues.md
Riwayat migrasi
| Tanggal | Dari | Ke | Catatan |
|---|---|---|---|
| — | — | — | Belum ada migrasi |