Sign in →
CloudLab Works emblem: Waku the orca ringed by CloudLab and WorksAgenticCLOUDLAB WORKScrossed whale bones, one end a wrenchCloud City, headwaters of the agentic cloud revolution!
Waku, the orca wearing a headset Ask Me

Nutanix: Invisible Wires: Agentic Cloud

When everyone talks to one box: catching incast and letting X-Play clean it up

· By Alex Alvord

A storage rebuild starts. Five nodes begin sending to one. Every individual link is fine, every VM looks healthy, and yet one host's uplink is pinned flat and the application on it feels like it is running through wet concrete. Nothing is broken. Too many senders are talking to the same box at the same time.

That pattern has a name: incast. Many senders, one receiver, one port that can't keep up. It shows up in RDMA fabrics as pause storms, and in ordinary TCP traffic as dropped packets and retransmits. Storage rebuilds, backup windows, database shuffles and a hot NFS export all produce it.

This post walks through a small, repeatable exercise: create incast on purpose, detect it, and let Nutanix X-Play fix it without a human touching anything. Then prove it worked. Status: the design and the playbook are below; the demo has not been recorded yet, so there are no measured results in this post.

The whole system first

The whole loop: senders on Host B, two receivers and a watcher on Host A, X-Play in Prism Central moving one receiver to Host C
The whole loop: senders on Host B, two receivers and a watcher on Host A, X-Play in Prism Central moving one receiver to Host C

Three parts, each doing one job:

  1. Load: several sender VMs blast two receiver VMs that sit on the same host.
  2. Detect: a small watcher notices the host is receiving from many sources at once, above a threshold, for longer than a short burst.
  3. Act: the watcher calls an X-Play webhook. The playbook moves one receiver VM to a quieter host through the v4 API and tells a human what it did.

Why moving a VM fixes it (and what wouldn't)

Incast is a fan-in problem at the receiving end. Moving a sender does nothing, because the traffic still converges on the same uplink. Moving the receiver that's sharing the hot uplink splits the fan-in across two hosts, so each uplink carries roughly half.

That is the design choice the demo makes on purpose: two receivers co-located on Host A, so there is something that a migration genuinely relieves. If your real incast is one VM receiving from fifty, migration only moves the problem; the fix there is spreading the workload or shaping the senders. Know which one you have before you automate it.

The flow, step by step

Sequence: senders flood Host A, the watcher samples, fires the X-Play webhook, X-Play calls the v4 API to migrate recv-2 and notifies
Sequence: senders flood Host A, the watcher samples, fires the X-Play webhook, X-Play calls the v4 API to migrate recv-2 and notifies

The detector: keep it boring

The watcher doesn't need to be clever. Every two seconds it reads received bytes and counts distinct remote sources with established connections. It fires only when both are true:

The second condition is the important one. A single large copy saturating a link is normal; that is not incast. Requiring several sources is what separates a busy host from a pile-up.

The ten-second hold stops it reacting to every microburst. Automation that migrates VMs on noise is worse than no automation.

If your switches export sFlow, you can do the detection in the network instead and get per-port, per-path detail without touching the hosts. The idea for this exercise came from the sFlow team's Detecting incast congestion of RDMA flows and their open-source ai-monitor proof of concept. It flags a leaf egress port above 80% with more than one sender, then traces every colliding flow back across the fabric to its source. Their demo targets RoCEv2 RDMA between GPUs. The same logic should carry over to plain TCP fan-in by keying on the 5-tuple instead of the RDMA queue pair; that part is our extension and has not been tested yet.

Network-side path: switches send sFlow samples to sFlow-RT and ai-monitor, which raise an incast event into the same X-Play webhook
Network-side path: switches send sFlow samples to sFlow-RT and ai-monitor, which raise an incast event into the same X-Play webhook

The X-Play half of the design doesn't change: host watcher or sFlow, whatever detects it ends in the same webhook. The host watcher is the path for a hosted PoC, where the switches can't be configured.

The X-Play side

X-Play is the automation engine built into Prism Central. A playbook is a trigger plus actions. Two parts of it make this work:

The playbook, as designed:

Playbook: webhook trigger, branch on source count, REST API action to migrate recv-2, and a notification on every branch
Playbook: webhook trigger, branch on source count, REST API action to migrate recv-2, and a notification on every branch

Two guardrails worth keeping even in a demo:

  1. Act once. The playbook moves one VM per event. If the watcher fires again within a cooldown window, it only notifies. Automation that keeps reacting to its own side effects ends badly.
  2. Always tell a human. Every branch ends in a notification, including the "did nothing" branch. Silent automation erodes trust faster than slow automation.

Proving it worked

Claims are cheap; timelines aren't. The write-up for each run records:

TimeWhat the watcher sawWhat X-Play did
T0baseline, 1 sourcenothing
T0 + 30 sload starts, 6 sourcesnothing (hold timer)
T0 + 40 sabove threshold 10 s, 6 sourceswebhook fired
T0 + 40 s + nmigrate recv-2 to Host C
after migrationHost A rate roughly halvesnotify sent

The numbers in that table are placeholders until the recorded run fills them in. The shape is what matters: detection, one action, measured relief.

What this exercise is actually teaching

The network part is the excuse. The real lesson is the loop: detect a specific pattern, take one reversible action, notify, and verify the effect. Swap incast for a full disk, a runaway VM or a noisy neighbour, and the shape doesn't change. X-Play is a good place to learn it because the trigger, the action and the audit trail all live in the same console.

Next: the recorded run, with the real timeline filled in.

Personal blog. Alex works at Nutanix; the opinions here are his own and nothing here is Nutanix confidential: every fact is public or his own field experience.

Comments

  1. Loading comments…

Comments are read by Alex before they appear. No email address needed; your name shows as you type it. See privacy.

← All posts

Ask Waku