In GCP, what is the difference between an f1-micro instance (1 shared vCPU) vs. a n1-standard-1 (1 vCPU)? Specifically, what is the difference between a shared vCPU and a vCPU?
For example, the N1 series within the general-purpose machine family is the older version of the N2 series. Generally, generations of a machine series use a higher number to describe the newer generation. For example, the N2 series is the newer generation of the N1 series.
In GCP, these are called vCPUs or virtual CPUs. A vCPU is equivalent to one hyperthread core. Therefore, if you have a single-core hyperthreaded CPU on premises, that would essentially be two virtual CPUs to one physical core. So always keep that in mind as oftentimes people will immediately do a test.
Shared-core machine types
Shared-core machine types provide one virtual CPU that is allowed to run for a portion of the time on a single hardware hyper-thread on the host CPU running your instance. Shared-core instances can be more cost-effective for running small, non-resource intensive applications than standard, high- memory or high-CPU machine types.
Source: https://cloud.google.com/compute/docs/machine-types#sharedcore
For your information, with one shared vCPU, Google doesn't guarantee it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With