Skip to content

feat(ai): multi-node ollama cluster discovery health probing and dynamic load balancing #125

Closed

Description

@dan-petty

Problem Statement

When multiple Ollama nodes exist across LAN or Kubernetes clusters (e.g. condor:11434, hog:11434, workhorse:11434), devops-cli only supports a single api_base_url or static config list. If a node is down or busy with a heavy batch, inference stalls. Developers also lack CLI inspection of cluster-wide model loads, VRAM allocations, or active running models.

Proposed Changes

  • Implement devops ai ollama cluster status and devops ai ollama cluster probe.
  • Query /api/tags, /api/ps, and /api/version across configured or discovered LAN endpoints.
  • Calculate cluster-wide available VRAM and report loaded models per node.
  • Dynamically filter healthy candidate nodes for round-robin RAG embedding and multi-persona review dispatch.
  • Register FastMCP tool ai_ollama_cluster_status.

Acceptance Criteria

  • Accurate reporting of multi-node Ollama cluster health and loaded models.
  • Automatic routing around unreachable or overloaded nodes during batch embeddings.
  • 100% test coverage in tests/test_ai_ollama_cluster.py.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p1-highscope/aitype/feature

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions