feat: Strata-Adapter (#1038), Release 0.1.6

Strata teilt Servercode und Protokoll mit Maya (docs/m2-strata-messung.md);
MayaEngine::strata startet server.py --engine strata, behält den Arbeitsordner
des Terminals, nur 127.0.0.1. Scheduler führt Strata als exklusiv. Neu: Abschnitt
[strata], nexus model add --engine strata --strata-config. Auf srv04 mit echtem
Strata geprüft (client2antwort.1-.3).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GmHhg3bfByVgQ9z7CGCSGc
This commit is contained in:
2026-11-16 06:51:21 +01:00
parent 437108c88b
commit 3e100918c2
18 changed files with 291 additions and 35 deletions

View File

@ -29,8 +29,11 @@ pub use nexus_scheduler::Settings as SchedulerSettings;
use crate::metrics::{InstanceSample, Metrics, parse_gpus};
/// Engine, die ihre GPUs immer ganz belegt (Entscheidung #1052, Risiko #1047).
const EXCLUSIVE_ENGINE: &str = "maya";
/// Engines, die ihre GPUs immer ganz belegen (Entscheidung #1052, Risiko
/// #1047; Strata gemessen am 16.11.2026: beide GPUs mit je etwa 11,5 GB).
fn is_exclusive(engine: &str) -> bool {
matches!(engine, "maya" | "strata")
}
/// Wie oft eine Anfrage neu eingereiht wird, wenn ihre Instanz verschwindet.
const MAX_ATTEMPTS: u32 = 3;
@ -460,7 +463,7 @@ impl Shared {
}
fn need(&self, plan: &StartPlan) -> Need {
let exclusive = plan.engine_name == EXCLUSIVE_ENGINE;
let exclusive = is_exclusive(&plan.engine_name);
Need {
model: plan.model.clone(),
gpus: plan.gpus.clone(),