Writing Skills
writing-skills
效率与协作技能,来自 obra/superpowers,查看原文获取完整用途和操作说明。
vastai-core-workflow-b【部署与运维】Build and roll out a Vast.ai Serverless endpoint with measured autoscaling, a canary template, and a zero-downtime worker update. Use when production inference capacity or model bytes change. Trigger with: "deploy Vast.ai Serverless", "tune a Vast.ai worker group", "roll a model without downtime".
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: vastai-core-workflow-b description: >- Build and roll out a Vast.ai Serverless endpoint with measured autoscaling, a canary template, and a zero-downtime worker update. Use when production inference capacity or model bytes change. Trigger with: "deploy Vast.ai Serverless", "tune a Vast.ai worker group", "roll a model without downtime". allowed-tools: Read, Grep, Write, Edit version: 2.0.0 argument-hint: '[endpoint-slo-template-and-load-profile]' model: inherit effort: high license: MIT author: Jeremy Longshore jeremy@intentsolutions.io tags:
Replace ad hoc multi-instance orchestration with the provider Serverless control plane. Prove a template independently, establish worker and queue bounds from load evidence, then let the workergroup perform a graceful rolling update.
Launch the new model or environment on a non-production endpoint and verify load, readiness, response schema, and representative outputs.
Set min_load, min_workers, max_workers, cold_workers, inactivity_timeout, target_queue_time, and max_queue_time from explicit SLO and budget assumptions.
During initial rollout, drive representative load up to roughly twice expected capacity and back down three times so the engine can learn GPU cost/performance.
Record endpoint latency, queue time, error rate, active/inactive workers, model identity, and spend before changing production.
Save the new template, update the workergroup reference, and monitor inactive workers updating first while active workers drain in-flight requests.
Verify every worker is on the candidate and compare SLOs. If it fails, point the workergroup back to the last verified template and observe the reverse rollout.
Use a scoped key with the documented misc Serverless permissions and no billing-write authority. Keep model registry credentials in approved environment variables, separate from the Vast.ai key.
Use Read and Grep to inspect manifests, configuration, provider output, and existing tests before proposing a mutation. Use Write or Edit only for the approved plan, implementation, test, or redacted receipt; do not create, update, destroy, or fund Vast.ai resources without explicit operator approval.
Return endpoint/workergroup IDs, old and new template identities, scaling bounds, load profile, SLO delta, and final rollout state.
A vLLM endpoint validates a new model on a canary, applies bounded queue targets, then updates its workergroup; active requests drain while new requests move to updated workers, with the old template retained for rollback.
| Failure | Response |
|---|---|
| Canary cannot load the model | Do not update production; fix image, model, or environment configuration. |
| Queue time breaches during rollout | Pause acceptance, increase safe capacity within budget, or roll back the template. |
| Workers do not converge | Inspect workergroup logs and configuration; do not claim zero-downtime completion. |
| New output contract regresses | Roll back to the last verified template and preserve comparison evidence. |