Skip to content

feat: multi-system cluster install mode (standalone/seed/member) #14

Description

@growlf

Design from F/multi-system-install-cluster-mode branch, preserved before that branch closes.

Summary

Add three installation modes to install.sh: Start Cluster, Join Cluster, and Standalone. Re-runnable so any node can change its role later.

Core concept: CLUSTER_ROLE in .env

CLUSTER_ROLE=standalone|seed|member
CLUSTER_NAME=ai-cluster
CLUSTER_ID= # generated once per seed

  • standalone: current behavior (default)
  • seed: first node — originates cluster, hosts node registry
  • member: joins existing cluster

Discovery

Seed nodes pull a marker model ai-stack-cluster:latest (~1MB). Joiners scan LAN port 11434 for this model — no extra infrastructure.

Files to change

  • install.sh — mode selection menu, scan/join/seed-init functions
  • .env.example — add CLUSTER_ROLE, CLUSTER_NAME, CLUSTER_ID (commented)
  • scripts/change-cluster-role.sh (new)
  • scripts/discover-network.sh — export scan_lan_ollama() as library

Notes

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions