Plans, quotas & enforcement
A plan is a reusable bundle of resources and lifecycle rules. There are two kinds:
- Size templates under Provisioning > Size templates (New size template): what admins and resellers pick in the create wizard. A plan fills and locks the cores, memory and disk, and the guest is tracked against the plan.
- Products under Shop > Products (New product): a size template with a price, billing periods and a place to run, sold in the customer portal. See Shop and customer balance.
The form has a side navigation with General, Resources, Limits and, for products, Price and periods and Location and network. A new product can start from a size template, which copies its size and limits once.
| Setting | Meaning |
|---|---|
| vCPU cores / RAM (MB) / Disk (GB) | The resources the guest is created with. |
| Max port speed (Mbit/s) | NIC rate limit, 0 = unlimited. |
| Traffic limit (GB/mo) | Monthly traffic cap, 0 = unlimited. |
| At the traffic limit / Counted traffic | What happens at the cap and which direction counts. Empty uses the Global default. See Traffic. |
| Runtime (days) | Days until the plan expires, 0 = no expiry. |
| Grace period (days) | Days after suspension before the guest is deleted, 0 = never. |
| Snapshot limit | Snapshots a customer may keep per guest, 0 = no customer snapshots. |
| Backup limit | Customer backups per guest on your backup server, 0 = none. |
| Active | Only active plans are offered in the create wizard. |
| CPU weight / CPU limit | Under Resources > CPU and disk limits: Proxmox cpuunits (share of CPU time under load, Proxmox default 100) and cpulimit (total core use, 1.5 = one and a half cores, at most 128). Empty = not set. |
| Disk read/write IOPS / Disk read/write MB/s | Proxmox iops_rd, iops_wr, mbps_rd, mbps_wr on every disk of a virtual machine (not on CD-ROM or cloud-init drives). Proxmox cannot limit container disks, so containers only get the CPU fields. Empty = not set. |
The CPU and disk limits are applied when a guest is created from the plan, when a plan is applied on the guest’s
Limits tab (Apply plan) and on a shop plan upgrade. A field left empty is not managed: the guest keeps the value
it has. The guest’s Limits tab shows the assigned plan’s values. Only operator plans have these fields (reseller plans
do not). The API returns them on GET /api/v1/hosts/{id}/plans (cpu_units, cpu_limit, disk_iops_rd, disk_iops_wr,
disk_mbps_rd, disk_mbps_wr, null = not set).
With the shop licensed, a product also has a price, billing periods, locations and placement fields, and can ask for a disk type and additional disks. See Shop and customer balance.
The Plan section of a guest
Section titled “The Plan section of a guest”A guest created from a plan gets a Plan section on its page with its expiry, the traffic used this month and the plan period. From there an admin can:
- Renew the plan by its runtime, Extend the expiry by a number of days, or Set expiry date (and Clear it).
- Suspend, Resume or Expire now.
The Limits section can Apply a plan to any guest (it re-applies the plan’s CPU, RAM and port speed and updates the guest’s plan assignment, traffic cap included) or set custom limits.
Enforcement
Section titled “Enforcement”The php spark plans:enforce daemon applies the plan rules:
- Expiry: an expired guest is suspended. After the grace period it is deleted (never, with a
grace period of
0). The owner receives an email a few days before expiry, on suspension and on deletion. - Traffic: not part of
plans:enforceany more. Traffic limits are counted and enforced for every server bytraffic:enforce, see Traffic.
Traffic
Section titled “Traffic”NexoVirt counts the network traffic of every server per calendar month, for plan servers and
custom ones alike. Usage shows next to the server, and an optional limit can notify, throttle or
suspend it. This works in every edition and needs no .env switch.
What is counted
Section titled “What is counted”- Outgoing (the default) is what the server sends, Incoming is what it receives, Both directions adds them up. Only the counted direction is compared with the limit; the traffic card always shows both.
- Sizes are in GB, where 1 GB is 2^30 bytes (1,073,741,824 bytes).
- Usage resets on the first day of each month. The card lists the last six months; 13 months are kept.
Where it shows
Section titled “Where it shows”- Server page (admin and reseller portal): a Traffic card at the top (this month’s counted traffic, the limit or “Unlimited”, and a progress bar). The Traffic this month card with outgoing, incoming, counted traffic, the monthly limit, the action at the limit, the reset date and a progress bar (green below 80 %, yellow below 100 %, red from there) is on the Limits section of the admin guest page and on the reseller portal’s server page.
- Guest lists (admin, reseller and customer portal): a Traffic line in the Resources
column with this month’s counted traffic and
/ limitwhen a limit is set. - Customer portal: the Traffic card at the top, read only, plus a banner while the server is throttled or suspended. It can be hidden with the Traffic card portal feature.
- Node page: the Traffic this month card shows the node’s own traffic (see Traffic this month).
Setting a limit
Section titled “Setting a limit”The most specific limit wins: a limit on the server, then the server’s plan, then the global default.
| Where | How |
|---|---|
| Global default | Settings > Traffic: Default limit (GB, 0 = unlimited), Counted traffic, At the limit and Throttle speed (Mbit/s). Applies to servers without a plan. Defaults: no limit, outgoing, Throttle, 10 Mbit/s. |
| Plan | Traffic limit (GB/mo), At the traffic limit and Counted traffic on the plan form (admin and reseller plans). Empty fields use the global default. |
| One server | Traffic limit card on the server’s Limits section (admin and reseller portal). Leave a field empty to inherit. |
At the limit
Section titled “At the limit”| At the limit | Effect |
|---|---|
| Notify only | Emails and events only. |
| Throttle | The server’s network is limited to the throttle speed (Mbit/s) until the month ends. |
| Suspend | The server is shut down until the month ends. Customers and resellers cannot start it (“Monthly traffic limit reached. Your server starts again on …”); admins still can. |
The owner gets an email at the First warning (default 80 %), the Second warning (default 95 %, 0 = off)
and at 100 %, and all of them show in the server’s Activity, the inbox and the traffic_warning webhook (with
{Level} 1 or 2). If usage jumps past both levels at once, only the second warning is sent. Both levels are under
Settings > Traffic. At the
start of a new month a throttle is removed and a suspended server starts again. Servers that are
migration safety copies, failed-over copies or in a running migration are skipped.
Lift and extra traffic
Section titled “Lift and extra traffic”On the Traffic limit card, admins and resellers can:
- Lift for this month: the limit is ignored until the 1st; a throttle is removed and a suspended server starts again.
- Add GB under Add traffic for this month: raises this month’s limit by that many GB (it does not carry over).
Schedule and API
Section titled “Schedule and API”traffic:enforce runs every 5 minutes from the panel’s cron jobs; the installer and updater add it
(see CLI & daemons). Usage is collected from the guest metrics samples.
The REST API has, under /hosts/{id}/guests/{type}/{vmid} (admin tokens) and
/api/reseller/guests/{hostId}/{type}/{vmid} (reseller tokens):
| Endpoint | Does |
|---|---|
GET .../traffic | Usage (rx_bytes, tx_bytes, counted_bytes), the effective limit (limit_bytes, count, action, throttle_mbit, source = guest, plan or global), percent, state (ok, limit_reached, throttled, suspended), reset_date, history and the server’s override. |
PUT .../traffic | Sets the server’s override: any of limit_gb, count (out, in, both), action (notify, throttle, suspend) and throttle_mbit. An empty value inherits. |
POST .../traffic/lift | Lift the limit for this month. |
POST .../traffic/extra | {"gb": 50} adds extra traffic for this month. |
Resource packs
Section titled “Resource packs”Provisioning > Resource packs defines budgets for customers: maximum vCPU cores, RAM, disk and number of servers, a node/storage/bridge/IP zone for placement, the allowed guest types and the OS template groups. A pack is assigned to a customer on their page under Users > Customers (Self-service resource pack).
With a pack assigned, the customer sees the remaining budget on My Servers and can create and delete their own servers in the portal (Create server):
- The customer picks only a name, the type (from the types the pack allows), cores, memory, disk, the operating system (from the pack’s template groups), a root password and SSH keys. Node, storage, bridge and IP come from the pack.
- Every request is checked on the server against the remaining budget (cores, memory, disk, number of servers). A server that does not fit is refused before anything is created.
- Only servers the customer created this way count against the budget, and only those can the customer delete. Servers you assign the usual way are not affected.
- The budget is reserved when the create is queued and freed when the server is deleted.
- Creates are refused while the pack’s node is in maintenance, its agent is missing or stale, or the chosen image is set to manual download and not on the node yet.
Limits per server, shared traffic and node groups
Section titled “Limits per server, shared traffic and node groups”- Most per server: the most vCPU cores, RAM and disk one server may have (0 = no limit, only the pack budget counts). The customer’s form shows the limit.
- Monthly traffic for all servers: one traffic pool for every server the customer created with the pack (0 = each server keeps its normal traffic limit). When the servers together reach 80 % each one gets the usual warning; at 100 % the action under When the pool is used up (notify, throttle or shut down, empty = your traffic default) applies to every server of the pack until the next month. A traffic limit you set on one server wins over the pool for that server. Traffic of a server deleted during the month keeps counting towards the pool until the month ends.
- Node group: instead of one node, each new server goes to the best node of the group (by load); node and storage are then optional. With an IP zone of one host, only that host’s nodes are used.
Packs you created before keep working as they did: all three settings are off for them.
GPU products
Section titled “GPU products”Provisioning > GPU pools groups passthrough devices of your nodes by model, for example “RTX 4000” with four cards on one node and two on another:
- Create a pool and give it the name customers should see.
- Pick a node and Show devices: the node’s PCI devices are read live. Click Add on each card that belongs to the pool. Only graphics cards can be added, plus the audio function of a card already in the pool. Devices without an IOMMU group, devices attached to a VM and nodes with IOMMU off are refused (see PCIe passthrough). A device in a pool cannot be attached by hand on the node page.
- On a product (Shop > Products, tab Resources, section GPU) pick the pool and how many GPUs a server gets. GPU products are VMs only.
When a customer orders the product, the server only goes to a node with enough free devices of the pool; they are reserved for the server and attached before its first start. The pool page shows each device as Free or In use with a link to the server. Deleting the server, or a create that fails, gives the devices back; a reinstall keeps them. A device that is in use cannot be removed, and a pool cannot be deleted while a product uses it.
GPU servers always use the q35 machine type; an operating system template that forces another machine type cannot be ordered with a GPU product. A plan change keeps the GPU exactly: upgrades and scheduled changes only go to products with the same pool and number of GPUs. Servers with passthrough devices are never moved automatically: migration, evacuation, automatic balancing, failover and high availability refuse them.
Customers see only “GPU: 1 x RTX 4000” on the product and the order page, never node or device
details. The storefront catalog has the same text in plans[].gpu.
Servers created from a GPU product in the admin create wizard, through the API or by a reseller get the product’s GPUs too, like a shop order: the devices are reserved on the chosen node and attached before the first start. When no free device of the pool is left on that node the create is refused with “No free GPU of this product is left on this node. Pick another node.” (the API answers 409). A container cannot be created from a GPU product.
Next steps
Section titled “Next steps”- Creating a guest from a plan.
- Users & portal to see how customers view their servers.
- Alerts & webhooks for plan traffic and expiry alert types.
NexoVirt is developed and designed by Nucez Software, your partner for custom software and web design.