n4-highmem-4 as a GKE node
4 vCPU32 GiBx86_64Google Cloud us-central1N4 High Memory 4
Where the n4-highmem-4 goes
Default GKE setup: GKE ≤ 1.36.
CPU3.72 of 4 vCPU left for your pods
Memory28.05 GiB of 32 GiB left for your pods
your podsDaemonSets (200m, 300 MiB assumed)kubelet reservedeviction
110max pods per node
$173.77on demand / month · $0.2380/h
$98.12spot / month (varies)
n4-highmem-4 GKE max pods and allocatable memory — quick answers
- How many pods can a n4-highmem-4 run as a node with GKE ≤ 1.36? Up to 110; kubelet keeps 3745 MiB of memory and 80m CPU, leaving 28.34 GiB and 3.92 vCPU for pods.
- How many pods can a n4-highmem-4 run as a node with GKE 1.37+ (Container-Optimized OS)? Up to 110; kubelet keeps 2250 MiB of memory and 80m CPU, leaving 29.80 GiB and 3.92 vCPU for pods.
- How many 500m / 1 GiB pods fit? 7 per node after DaemonSets; 2 nodes for 10 replicas, about $347.54/month on demand.
What kubelet reserves on n4-highmem-4
| Setup | Max pods | kube-reserved CPU | Memory reserved + eviction | Allocatable CPU | Allocatable memory | Memory usable |
|---|---|---|---|---|---|---|
| GKE ≤ 1.36 tiered memory reservation | 110 | 80m | 3645 Mi + 100 Mi | 3.92 | 28.34 GiB | 88.6% |
| GKE 1.37+ (Container-Optimized OS) 15 MiB × max pods + 500 MiB, CPU capped at 1 vCPU | 110 | 80m | 2150 Mi + 100 Mi | 3.92 | 29.80 GiB | 93.1% |
How these numbers are computed: reservation formulas. Check a live node with kubectl describe node → Allocatable.
How many pods fit on one n4-highmem-4
Assumes DaemonSets (CNI, kube-proxy, log and metrics agents) request 200m CPU, 300 Mi and 3 pods per node. Try your own numbers in the node calculator.
| Pod requests (CPU / memory) | GKE ≤ 1.36 | GKE 1.37+ (Container-Optimized OS) | $ per pod / month |
|---|---|---|---|
| 100m / 128 Mi | 37 | 37 | $4.70 |
| 250m / 256 Mi | 14 | 14 | $12.41 |
| 250m / 512 Mi | 14 | 14 | $12.41 |
| 500m / 512 Mi | 7 | 7 | $24.82 |
| 500m / 1024 Mi | 7 | 7 | $24.82 |
| 1000m / 1024 Mi | 3 | 3 | $57.92 |
| 1000m / 2048 Mi | 3 | 3 | $57.92 |
| 2000m / 4096 Mi | 1 | 1 | $173.77 |
| 4000m / 8192 Mi | 0 | 0 | — |
Similar GKE node types
| Type | vCPU | GiB | Alloc CPU | Alloc memory | Max pods | $/month | $ per alloc GiB |
|---|---|---|---|---|---|---|---|
| e2-highmem-4 | 4 | 32 | 3.92 | 28.34 GiB | 110 | $131.98 | $4.66 |
| n4a-highmem-4 | 4 | 32 | 3.92 | 28.34 GiB | 110 | $147.58 | $5.21 |
| n4d-highmem-4 | 4 | 32 | 3.92 | 28.34 GiB | 110 | $162.32 | $5.73 |
| n2d-highmem-4 | 4 | 32 | 3.92 | 28.34 GiB | 110 | $166.41 | $5.87 |
| c4a-highmem-4 | 4 | 32 | 3.92 | 28.34 GiB | 110 | $172.10 | $6.07 |
| c2d-highmem-4 | 4 | 32 | 3.92 | 28.34 GiB | 110 | $178.81 | $6.31 |
| c3d-highmem-4 | 4 | 32 | 3.92 | 28.34 GiB | 110 | $178.81 | $6.31 |
| n2-highmem-4 | 4 | 32 | 3.92 | 28.34 GiB | 110 | $191.28 | $6.75 |
Closest match on other clouds
| Type | vCPU | GiB | Alloc CPU | Alloc memory | Max pods | $/month | $ per alloc GiB |
|---|---|---|---|---|---|---|---|
| e4psv6 | 4 | 32 | 3.86 | 26.97 GiB | 250 | $134.32 | $4.98 |
| r6g.xlarge | 4 | 32 | 3.92 | 31.03 GiB | 58 | $147.17 | $4.74 |
| e4psv5 | 4 | 32 | 3.86 | 26.97 GiB | 250 | $147.46 | $5.47 |
| r7g.xlarge | 4 | 32 | 3.92 | 31.03 GiB | 58 | $156.37 | $5.04 |
| r5a.xlarge | 4 | 32 | 3.92 | 31.03 GiB | 58 | $164.98 | $5.32 |
| e4asv5 | 4 | 32 | 3.86 | 26.97 GiB | 250 | $164.98 | $6.12 |