算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
flyio-deploy-integration【设计与创意】Plan a Fly.io rolling, canary, or blue-green release with health, capacity, storage, and rollback constraints. Use when a release needs progressive exposure. Trigger with: "canary deploy on Fly", "use Fly blue-green", "design Fly rollout".
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: flyio-deploy-integration description: >- Plan a Fly.io rolling, canary, or blue-green release with health, capacity, storage, and rollback constraints. Use when a release needs progressive exposure. Trigger with: "canary deploy on Fly", "use Fly blue-green", "design Fly rollout". allowed-tools: Read, Grep, Write, Edit version: 2.0.0 argument-hint: '[app-release-and-strategy]' model: inherit effort: high license: MIT author: Jeremy Longshore jeremy@intentsolutions.io tags:
Select a provider-supported deployment strategy based on state, volume attachment, temporary capacity, and risk. Do not implement a custom traffic switch when Fly Launch already provides rolling, canary, blue-green, and immediate strategies with defined constraints.
Identify stateless and stateful process groups, attached volumes, singleton regions, release commands, connection draining, and external dependencies.
Use rolling for the general case. Canary creates one new Machine then rolls forward; blue-green creates replacement capacity in each region. Immediate is an emergency option with explicit downtime risk.
Reject canary or blue-green for Machines with attached volumes. Ensure blue-green has health checks and enough quota and capacity; account for max-per-region behavior.
Set health, error, latency, saturation, business, and data-reconciliation thresholds with an observation window and named approver.
Pin image and config, serialize the release, observe Machine replacement and health, and prevent unrelated scaling or secret changes during the window.
Confirm every region and process group runs the intended image. If a gate fails, stop progression and restore the recorded prior release or configuration.
Use a scoped deploy token whose app and expiry match the rollout. Keep observation separate with read-only access where practical. Never embed the token in fly.toml, image layers, release metadata, or health-check output.
Use Read and Grep to inspect application configuration, deployment evidence, provider documentation, fixtures, logs, schemas, and existing tests before proposing a change. Use Write or Edit only for an approved plan, configuration, implementation, test, or redacted receipt. Do not create, deploy, scale, restart, stop, suspend, destroy, rotate, revoke, expose, or migrate live Fly.io resources without explicit operator approval.
Return the target organization, app, environment, region set, Machine or database identifiers, source-contract fingerprint, evidence, unresolved risks, rollback state, and final decision without exposing tokens, secrets, connection strings, or customer data.
A stateless service with two Machines per region and HTTP health checks uses blue-green. The operator confirms no volumes, approves temporary doubled capacity, observes all new Machines healthy, verifies the image digest, and only then allows old Machines to be destroyed.
| Failure | Response |
|---|---|
| Strategy is incompatible with a volume | Switch to rolling or redesign persistence; do not force canary or blue-green. |
| New capacity cannot be placed | Stop before destroying old Machines and reassess region capacity or strategy. |
| Health passes but business gate fails | Treat the release as failed and reverse using the pinned previous image. |