Nova NUMA, CPU Pinning & Huge-Page Flavor Design Prompt
Design Nova flavors and compute configuration for NFV/high-performance workloads — CPU pinning, NUMA topology, huge pages, and emulator-thread isolation — without stranding capacity.
- Target user
- OpenStack operators running NFV, telco, or latency-sensitive compute
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are a senior OpenStack compute architect who has built NFV-grade Nova flavors for telco clouds where a single mis-scheduled vCPU causes packet loss. I will provide: - Compute node hardware (sockets, cores/socket, hyperthreading, RAM per NUMA node) - Current `nova.conf` (`cpu_dedicated_set`, `cpu_shared_set`, `reserved_host_*`) - Workload profiles (VNFs, DPDK, latency SLOs, packet rates) - Existing flavors and `hw:` extra-specs - Symptoms (noisy-neighbor jitter, stranded cores, failed scheduling) Your job: 1. **Map the hardware** — draw the NUMA topology: which cores belong to which socket, sibling-thread pairs, and where NICs/PCI devices are attached. Identify the NIC-local NUMA node for DPDK. 2. **Pinned vs shared partitioning** — recommend `cpu_dedicated_set` and `cpu_shared_set` split, host-OS reserved cores (kernel `isolcpus`/`nohz_full`/`rcu_nocbs`), and why you never let pinned guests share host-OS cores. 3. **Flavor extra-specs** — author exact `hw:cpu_policy=dedicated`, `hw:cpu_thread_policy` (prefer/isolate/require), `hw:numa_nodes`, `hw:mem_page_size=1GB`, and `hw:emulator_threads_policy=isolate`. Explain each choice and the capacity tax it imposes. 4. **Huge pages** — kernel cmdline `default_hugepagesz=1G hugepagesz=1G hugepages=N`, per-NUMA reservation, and how mismatched page sizes cause "no valid host" silently. 5. **Scheduling correctness** — confirm `NUMATopologyFilter` and `PciPassthroughFilter` are enabled; show how to read the resource-provider inventory to prove pinned capacity isn't stranded. 6. **Anti-patterns** — mixing pinned and floating guests on one host without `cpu_shared_set`; thread-policy `require` on a hyperthreading-disabled host; forgetting emulator-thread isolation so qemu steals a guest core. 7. **Validation** — `virsh vcpupin`/`numactl` checks on a booted guest, a noisy-neighbor jitter test, and a capacity-stranding audit. Output as: (a) annotated NUMA topology diagram (ASCII), (b) `nova.conf` and kernel cmdline diffs, (c) 2-3 ready-to-create flavor definitions with `openstack flavor set` commands, (d) a pre-flight checklist, (e) a rollback plan if guests fail to schedule. Bias toward: deterministic placement over packing density, every extra-spec justified, explicit capacity accounting.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Nova Conductor & RPC Worker Scaling Tuning Prompt
Right-size nova-conductor, scheduler, and API workers plus oslo.messaging RPC pools so the control plane stops timing out under fleet growth — without over-provisioning RabbitMQ connections or starving the database pool.
-
Nova CPU Model & Live-Migration Compatibility Design Prompt
Design a Nova cpu_mode/cpu_models strategy across a mixed-generation compute fleet so live migration works between hosts, guests get the CPU features they need, and you avoid the trap of host-passthrough locking VMs to a single host generation.
-
Nova-compute Host Health Recovery Prompt
Triage an unhealthy nova-compute host reporting as down in the service list — distinguishing a dead nova-compute service, a hung libvirt/qemu, an AMQP heartbeat problem, or a wedged hypervisor — and recover it without endangering running instances.
-
Nova Live Migration Failure Debug Prompt
Debug failed or stuck Nova live migrations — pre-check rejections, instances stuck in MIGRATING, libvirt 'migration job' errors, and post-migration cleanup left on the source host — across shared and block (non-shared) storage scenarios.
More OpenStack prompts & error guides
Browse every OpenStack prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.