Spectivis Cloud
How CPU works
How instance size sets CPU, and what steady speed means when an environment works hard for a long time.
You choose an instance size, measured in memory. Up to 1 GB the CPU follows from it: a 1 GB instance can use up to 1 vCPU, a 512 MB instance up to half of one. From 2 GB up you can pick the vCPU: 1 or 2 with 2 GB, 2 or 4 with 4 GB, 2, 4 or 6 with 6 GB, and 2, 4 or 8 with 8 GB. If you do not pick, 2 GB comes with 2 vCPU and 4, 6 and 8 GB come with 4. Each GB costs $1.50 a month and each vCPU $1.00, so fewer vCPU cost less.
You pay for the size and vCPU, not for the CPU you use. A 1 GB environment costs the same whether it idles or works hard. To keep that fair for everyone on a shared server, CPU works like a battery.
The battery
Section titled “The battery”- Your environment runs on a battery. While there is charge, it can use all of its CPU.
- A charger is always plugged in, but it is slow. It adds charge steadily, even while the environment is working.
- Most sites never notice. A normal website uses only a few percent of its CPU. The charger keeps up, so the battery stays full.
- A long, heavy load drains it. If the environment works flat out for long enough, the battery runs down.
- When it is empty, the environment runs at a steady speed. It keeps serving requests, only slower. It does not go down.
- When traffic drops, it charges again. Once there is enough charge, the environment goes back to full speed on its own.
What you see
Section titled “What you see”- A CPU graph for each environment, as a percentage of its instance size.
- The status “Steady speed” while an environment is running at its steady speed, with this banner: “This environment has been busy for a while, so it is running at its steady speed. It keeps serving requests and goes back to full speed after a quieter spell.” We also email the owners and admins, at most once a day for each environment.
- You never need to do anything. The environment returns to full speed after a quieter spell.
If you reach steady speed often
Section titled “If you reach steady speed often”- Pick a larger size. Up to 4 GB, a larger instance has more CPU at full speed and a higher steady speed. 6 GB and 8 GB have the same CPU as 4 GB, so they help when the app needs memory, not when it needs CPU.
- Look at what is using the CPU. Caching a slow page, adding an index or moving work to the queue often helps more than extra CPU.
- Add the work to the queue. Background work still shares the instance’s CPU, but it does not hold up page loads.
Good to know
Section titled “Good to know”- Each environment has its own battery. A busy staging environment does not slow production, and one busy app does not slow your other apps.
- The battery keeps charging while an environment sleeps.
- Builds do not use the battery. They have their own CPU allowance. See Billing for build minutes.
- Memory is a hard limit at the instance size. An app that goes over it has its processes stopped and restarted.
- Mining cryptocurrency and anything else that pins the CPU at full load is not allowed. See the acceptable use rules.