LightYear allows you to resize your server to a different plan. You can upgrade to a larger plan or downgrade to a smaller one, subject to disk size constraints.
Resize Constraints
| Direction | Allowed? | Notes |
|---|---|---|
| Upgrade CPU/RAM | Yes | Always allowed |
| Upgrade disk | Yes | Disk can only grow, never shrink |
| Downgrade CPU/RAM | Yes | Allowed if new plan disk ≥ current disk usage |
| Downgrade disk | No | Disk size cannot be reduced |
[!IMPORTANT] A resize requires a server reboot. Plan for a brief downtime window (typically 30–120 seconds).
Step 1 — Take a Snapshot
Before resizing, take a snapshot as a safety measure:
- Go to Servers → Your Server → Snapshots.
- Click Take Snapshot and wait for it to complete.
Step 2 — Initiate the Resize
- Navigate to Servers → Your Server → Settings.
- Click Resize Server.
- Select the new plan from the list.
- Review the new hourly cost.
- Click Resize Now.
The server will reboot automatically. The resize process takes approximately 60–120 seconds.
Step 3 — Verify the New Resources
After the server comes back online, verify the new resources:
$nproc4$free -h total used free shared buff/cache available
Mem: 7.8Gi 512Mi 6.8Gi 12Mi 512Mi 7.0Gi
Swap: 1.0Gi 0B 1.0Gi$df -h /Filesystem Size Used Avail Use% Mounted on
/dev/vda1 80G 4.2G 76G 6% /Resize via API
$curl -X POST https://api.lightyear.host/v1/servers/SERVER_ID/resize \$ -H "Authorization: Bearer YOUR_API_KEY" \$ -H "Content-Type: application/json" \$ -d '{"plan_id": "vc2-4c-8gb"}'