- compose.override.yml: cf-orch agent sidecar (port 7702) self-registers with coordinator at COORDINATOR_URL; advertise-host configurable via CF_ORCH_ADVERTISE_HOST - scheduler.py: pass coordinator_url=settings.COORDINATOR_URL and service_name="kiwi" so VRAM leases appear as "kiwi" on the orchestrator dashboard - environment.yml: add psutil>=5.9 (required by cf-orch agent eviction executor) - .env.example: document CF_ORCH_ADVERTISE_HOST
24 lines
978 B
YAML
24 lines
978 B
YAML
# compose.override.yml — local dev additions (auto-merged by docker compose)
|
|
# Not used in cloud or demo stacks (those use compose.cloud.yml / compose.demo.yml directly).
|
|
|
|
services:
|
|
# cf-orch agent sidecar: registers kiwi as a GPU node with the coordinator.
|
|
# The API scheduler uses COORDINATOR_URL to lease VRAM cooperatively; this
|
|
# agent makes kiwi's VRAM usage visible on the orchestrator dashboard.
|
|
cf-orch-agent:
|
|
image: kiwi-api # reuse local api image — cf-core already installed there
|
|
network_mode: host
|
|
env_file: .env
|
|
environment:
|
|
# Override coordinator URL here or via .env
|
|
COORDINATOR_URL: ${COORDINATOR_URL:-http://10.1.10.71:7700}
|
|
command: >
|
|
conda run -n kiwi cf-orch agent
|
|
--coordinator ${COORDINATOR_URL:-http://10.1.10.71:7700}
|
|
--node-id kiwi
|
|
--host 0.0.0.0
|
|
--port 7702
|
|
--advertise-host ${CF_ORCH_ADVERTISE_HOST:-10.1.10.71}
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- api
|