fix(ollama): enforce prod provider order
This commit is contained in:
@@ -1,3 +1,26 @@
|
||||
## 2026-05-25|T174 Ollama manifest policy-order guard
|
||||
|
||||
**背景**:
|
||||
|
||||
- T173 推出 health/route cooldown 後,另一個 hotfix `fe3f1e39` 把 production manifest 改成 `11436 -> 11437 -> 11437`。
|
||||
- live route API 因此把 `11436` 顯示成 `ollama_gcp_a`,造成「label 看起來是 GCP-A,實際跑 GCP-B」的 operator 誤導。
|
||||
- 統帥已明確要求所有 Ollama 使用順序必須維持 `GCP-A -> GCP-B -> 111 -> Gemini`;GCP-A 紅燈要被顯示並 fail over,不可直接改名或跳過。
|
||||
|
||||
**本次修補**:
|
||||
|
||||
- 恢復 `k8s/awoooi-prod/04-configmap.yaml` 與 `06-deployment-api.yaml`:
|
||||
- `OLLAMA_URL=http://192.168.0.110:11435`
|
||||
- `OLLAMA_SECONDARY_URL=http://192.168.0.110:11436`
|
||||
- `OLLAMA_FALLBACK_URL=http://192.168.0.110:11437`
|
||||
- 新增 `test_ollama_prod_manifest_order.py`,把 production manifest 的 Ollama policy order 鎖成測試,避免再出現 `ollama_gcp_a` label 指到 GCP-B/111。
|
||||
|
||||
**注意**:
|
||||
|
||||
- 這不是否認 GCP-B 可用;正確流程是 policy 先顯示 GCP-A red,再由 failover manager 選 GCP-B 或 111。
|
||||
- 若要暫時跳過 GCP-A,必須另有「degraded lane override」欄位與前端明確標示,不能改 `OLLAMA_URL` 語意。
|
||||
|
||||
---
|
||||
|
||||
## 2026-05-25|T173 GCP upstream 紅燈驗證與 Ollama endpoint cooldown 降噪
|
||||
|
||||
**背景**:
|
||||
|
||||
Reference in New Issue
Block a user