Skip to content

Cloudlet sizing for cost vs performance — when 4 small nodes beat 1 large node

PaaS bills are driven by reserved cloudlets, not by what your app actually uses. Right-sizing topology — fewer big nodes vs more small nodes — moves the bill by 30-50% with the same headroom.

You inherit a PaaS environment that’s been running for two years. The app tier is one node sized at 32 cloudlets, because “we needed headroom for traffic spikes.” The bill is steady. Average utilization sits at 11%. You scale the topology to 4 nodes at 8 cloudlets each behind the built-in load balancer, watch a full week of traffic, and the reserved-cloudlet line on the invoice drops by almost half — without a single 5xx during the migration. The application didn’t get cheaper to run. The reservation pattern got honest.

What’s happening

PaaS billing on Jelastic-class platforms separates two things that look the same from the dashboard. Reserved cloudlets are the floor you commit to per hour, billed regardless of load. Dynamic cloudlets are what scales on top, billed by the hour when consumed. One large node has one reservation floor; four small nodes have four smaller floors that sum to less if you size them honestly.

Three forces push operators toward oversized single nodes and away from horizontal topologies:

  • Spike-driven sizing. The peak load over the last 90 days sets the reservation, even if it happened once during a Black Friday push. With a single node, you’re paying for that peak every hour of every day. With four nodes, peak demand spreads — only one or two nodes scale dynamic cloudlets when the spike comes.
  • Memory-bound runtimes. A 32-cloudlet PHP-FPM or Node.js process tree carries a long tail of idle workers. Four 8-cloudlet nodes run four smaller worker pools that can be tuned to the actual concurrency profile, and the OS reclaims memory between requests instead of holding it in a single oversized heap.
  • The “headroom” reflex. “We need room to grow” turns into “we provisioned for traffic that never came.” Reserved cloudlets are not headroom. Dynamic cloudlets are headroom. Reserved = floor; dynamic = ceiling.

When 4 small beats 1 large: web tiers, API gateways, anything stateless behind a load balancer, anything with a workload profile that’s bursty but rarely uniform. When 1 large still wins: a single-process application server that can’t be horizontally scaled (a legacy monolith with sticky-session state in memory, a database leader, a build server with a large local cache).

How to verify

Pull the last 30 days of cloudlet usage from the platform API and look at the ratio of average to peak per node. If average is under 25% of reservation, you’re paying for a phantom.

# 1. Cloudlet usage per environment, last 30 days, hourly granularity
curl -s "https://app.paas.example/1.0/billing/account/GetQuotasList?session=$SESSION" \
  | jq '.array[] | select(.name=="cloudlets")'

# 2. Per-node hourly cloudlet consumption (example for one node)
curl -s "https://app.paas.example/1.0/statistic/main/GetSumStat?session=$SESSION&envName=acme-prod&nodeid=12345&duration=2592000&interval=3600" \
  | jq '.array[] | {ts: .timestamp, reserved: .reserved, dynamic: .dynamic}'

# 3. Average vs p95 vs peak (run on the JSON above)
jq -s 'map(.reserved + .dynamic) | {avg: (add/length), p95: (sort | .[(length*0.95|floor)]), peak: max}' usage.json

If you see something like avg=4.1 / p95=6.8 / peak=11.3 on a node reserved at 32 cloudlets, your reservation is sized for an event that happens 0.2% of the time. The fix is not “make peaks cheaper” — it’s “stop paying for non-peak hours at peak rates.”

Also check whether the application can actually use horizontal nodes. Inspect the load-balancer configuration:

# Check session stickiness / sticky cookies on the platform LB
curl -s "https://app.paas.example/1.0/environment/control/GetEnvInfo?session=$SESSION&envName=acme-prod" \
  | jq '.nodeGroups[] | select(.name=="cp") | .lbsticky'

If stickiness is on and the app writes session state to local memory, splitting into 4 nodes will work — but you need to either move sessions to Redis or accept that a node restart logs users out. That’s a small project, not a blocker.

The fix

The recipe we use on inherited environments:

  1. Measure first, resize second. Pull 30 days of hourly usage. Compute average, p95, and peak per node. If avg / reserved < 0.25, the node is a resize candidate.
  2. Split horizontally before shrinking. Add nodes to the layer (2 → 4, or 4 → 6) with the same total cloudlets, then watch a full business cycle (typically one week, longer if you have month-end batch jobs). Confirm distribution is even — the platform LB should spread requests by roundrobin or leastconn, not by random pin.
  3. Drop reservation per node, leave dynamic ceiling generous. Once distribution is even, drop the per-node reservation to slightly above the observed p95. Leave the dynamic ceiling at 2-3x the reservation so a real spike scales out, not over.
  4. Set the autoscaling trigger on CPU or memory, not on load average. Load average lags badly under containerized workloads. CPU > 75% for 3 minutes is a sane horizontal trigger; below that, the platform should add dynamic cloudlets to existing nodes.
  5. Re-measure after 30 days. If the new shape is also overprovisioned, repeat. Most environments converge after one or two passes.

The trap to avoid: shrinking reservation before splitting horizontally. If you drop a single 32-cloudlet node to 16 cloudlets without adding a peer, your spike capacity is now half — and the first real spike pages someone. Always widen the topology before tightening reservation.


We run cloudlet right-sizing as part of environment management on every managed PaaS tenancy — measure, split, shrink, re-measure. If your last bill made you flinch, book a sizing review.