Register and manage cloud VMs and physical servers from one dashboard. Fleet Management schedules workloads across machines, enforces kernel-level CPU and memory allocation, updates stateful database limits live, and coordinates safe server maintenance.
Workload Lifecycles: Blue/Green vs Singleton
FlareLens models workloads explicitly according to whether they are stateless or stateful:
| Strategy | Target Workloads | Runtime Behavior |
|---|---|---|
blue_green |
HTTP APIs, web apps, background workers | Boots candidate slot (-blue or -green) alongside live containers, runs migrations and readiness probes, swaps Traefik upstream in <1ms, and drains retiring connections. |
singleton |
PostgreSQL, Redis, stateful brokers | Enforces single-writer volume safety, pins to stateful storage nodes, and applies CPU/RAM cgroup changes in-place without container restarts. |
singleton + adopt_only |
Traefik ingress, host-level system daemons | Observes health, logs, and cgroup metrics of pre-existing foundational containers without recreating or replacing them during syncs. |
Multi-Server Placement Scheduler
Every enrolled server carries arbitrary key-value tags (role=app, disk=nvme, region=eu-central). When scheduling replicas, the Control Plane filters healthy, uncordoned servers matching placement.required_tags with sufficient unreserved RAM and applies your chosen strategy:
spread— Distributes replicas across distinct hosts and failure domains for high availability.binpack— Consolidates workloads onto the highest-utilized eligible servers so spare capacity stays contiguous.pinned— Binds stateful workloads deterministically to an explicitnode_idwhere local NVMe volumes reside.
Hard Kernel Cgroups & Zero-Restart DB Resizing
Resource budgets declared under resources (and optional companion worker overrides under worker.resources) are enforced both by the Control Plane scheduler and directly in the Linux kernel via Docker Engine HostConfig:
resources:
memory_mb: 1024 # HostConfig.Memory = MemorySwap = 1073741824 bytes
cpu_cores: 1.5 # HostConfig.NanoCPUs = 1500000000
worker:
command: ["bundle", "exec", "sidekiq"]
resources:
memory_mb: 768
cpu_cores: 1.0Node Cordoning, Stateful Fencing & Image Pruning
- Safe Node Drain & Volume Fencing: Draining a node (
POST /api/v1/control/nodes/:id/drain) reschedules statelessblue_greenreplicas onto healthy WireGuard peers while marking localsingletondatabase placements asfenced—never auto-wiping persistent data on disk. - Two-Pass Automatic Image Pruning: After slot drains and on a 12-hour maintenance loop,
flarelensdruns a guarded two-passPOST /images/prune(dangling layers>24h, unused tags>72h), keeping 72 hours of rollback images cached locally while preventing NVMe disk exhaustion. - Zero-SSH Host Operations & OTA Updates: Upgrade
flarelensdfleet-wide via SHA-256 verified atomic binary swaps, retire allowlisted legacysystemdunits, and execute drain-locked OS kernel reboots directly from the console.