Capacity planning
How a CoreCluster measures its capacity, when it warns and stops new sites, and what to do then.
A CoreCluster's package is one allowance of CPU, memory and storage for all its sites, with no fixed number of sites. CPU and memory count what the sites use; storage counts each site's whole disk.
| Any of CPU, memory or storage at | The cluster says | What it means |
|---|---|---|
| Under 75% | Fine | There is room for more sites. |
| 75% | Upgrade soon | The cluster is filling up. A new site is still allowed while it fits. |
| 90% | Full | No new site or environment can be created until the package is bigger or sites use less. |
A new site or environment must fit as well: its expected CPU and memory and its whole disk are added to what the cluster uses now. It is refused, with a message naming what is short, if that takes CPU, memory or storage to 90%, even while the cluster says Fine or Upgrade soon.
Check that a site will fit
| Where | What you see |
|---|---|
| Create a managed cluster, step First sites | Fits on shows the share of the package the listed sites are expected to use. |
| Upgrade package | Each bigger package shows what CPU use would become, such as CPU now 59 % → 39 %. |
| A cluster's Usage | Average and peak use over up to 30 days, against the package line. |
Make room
- Upgrade the package or add capacity by the unit: see Package, capacity and server type.
- Delete sites and environments you no longer need: see Delete a site.
- Put new sites on another cluster: see Create a cluster.
Automate this
Answers whether new sites and environments, the removal of others, or another package would fit the CoreCluster, without creating or reserving anything.
curl -X POST https://manage.corefinity.com/api/corestack/clusters/1017/capacity/check \
-H "Authorization: Bearer $COREFINITY_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"sites": [
{
"platform": "wordpress",
"tier": "S"
}
]
}'Your assistant calls corecluster_capacity_check.
{
"name": "corecluster_capacity_check",
"arguments": {
"cluster_id": 812,
"sites": [
{
"platform": "wordpress",
"tier": "M"
}
]
}
}