microsrv:~$
Console

eBPF & Live Migration Architecture

Deep dive into kernel-level eBPF packet processing, VPC network isolation, and zero-downtime TCP session migration.

Kernel-Level eBPF Subsystem

The microsrv cloud engine uses the Linux kernel’s eBPF (Extended Berkeley Packet Filter) subsystem for high-throughput packet filtering, VPC tenant isolation, and routing, bypassing traditional iptables and netfilter overhead.

Key Engineering Advantages of eBPF:

  • Line-Rate IP Anti-Spoofing: eBPF programs validate IP/MAC address tuples directly on virtual network interfaces, preventing packet interception or spoofing between co-located tenant VMs.
  • Zero-Copy Outbound NAT: Source address translation (SNAT) occurs natively within the kernel network stack, avoiding expensive context switching to user-space daemons.

Live Migration Subsystem

1. EVICTION TELEMETRY DETECTED

Host A (Source)[RUNNING]Physical Spot ServerVM: app-prod-018 GB RAM • 4 vCPURAM: 8 GB AllocatedvCPU ActiveHost B (Target)[STANDBY]Standby CapacityVM: app-prod-018 GB RAM • 4 vCPUCapacity: ReservedReady for Cutover✓ VM Active1. RAM Page Stream2. Dirty Delta Sync3. Micro-pause (<50ms)

[TELEMETRY] Provider reclaim signal received (T-120s) • Reserving standby capacity on Host B...

Figure: Live memory migration mechanics with zero TCP session drops.

Execution Lifecycle:

  1. Eviction Signal Telemetry: The microsrv orchestrator monitors provider hardware and API telemetry to detect impending host reclamation.
  2. Iterative Pre-copy Phase: The bulk of VM or container sandbox memory pages is asynchronously streamed to the target host while guest applications remain fully operational.
  3. Cutover Phase: CPU execution is briefly suspended for under 50 ms, transferring the final dirty pages, CPU register state, and NVMe disk leases.
  4. Atomic eBPF Re-routing: eBPF socket maps across ingress gateways and mesh routers are updated atomically. External TCP connections remain established without socket resets.

[!NOTE] Workloads relying on long-lived TCP sessions (gRPC streams, WebSockets, database connection pools) maintain state throughout host migration events on both VMs and Containers.