Skip to content

Add multitenant server observability and training operations - #418

Draft
Yunnglin wants to merge 3 commits into
dev-swift-v5from
server-ops-multitenant-observability
Draft

Yunnglin wants to merge 3 commits into
dev-swift-v5from
server-ops-multitenant-observability

Conversation

@Yunnglin

@Yunnglin Yunnglin commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Add a training-first Grafana dashboard for live tenant resources, admitted usage, logs, traces, and physical device metrics. Publish current snapshots through a read-only Redis datasource and show telemetry-safe token fingerprints.
  • Separate the Runtime image from the observability stack. Document local LGTM evaluation and a production Collector, Mimir, Loki, Tempo, and Grafana deployment.
  • Fix the telemetry findings from the adversarial review. Meter the fused optimizer operation once per admission, use seconds-scale histogram buckets and stable model labels, preserve gauge callbacks through Ray startup, and keep exception contents out of exported error records.
  • Export each Python logging record once, propagate HTTP and Ray sampling trace context, and make task spans reflect result persistence and final state. Publish host/device measurements once per node, retain per-process RSS, and show the age of the last Runtime metrics heartbeat.

Validation

  • 546 local Server tests passed, including task queues, telemetry, Redis integration, model and sampler paths, proxying, and configuration. An additional 61 focused tests passed after the format-only update.
  • An isolated local workload with two synthetic tenants exported three fused optimizer admissions. Mimir reported both fingerprints, the expected session gauge, the heartbeat, and a bounded latency quantile. Loki contained one copy of the standard-library test log and excluded the transport and raw error markers. Tempo returned all three task traces with the expected final outcomes.
  • Ran 38 dashboard queries against local Mimir, Loki, and Tempo. Rendered the dashboard, validated both Compose configurations, and built the standalone LGTM image.
  • Verified that an unavailable OTLP endpoint did not prevent a local Runtime request from returning successfully.
  • Repository-wide Ruff reports existing failures on the target branch. This change adds no Ruff diagnostics or unformatted files relative to dev-swift-v5.

Pending deployment acceptance

PPU3 and PPU4 SSH timed out before setup. This revision still needs device-side collection and failover verification, plus production OTLP, Redis ACL, retention, and Mesh acceptance. The Runtime GPU image was not rebuilt in this validation.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant