Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How many vCPU granted to e2-micro instance

Please help to check the highlight in the below screenshots, they are same charge (7.11 USD) per month. 
But with custom specification, it's showing 2 vCPU, while with preset instance (e2-micro), it's 0.25 vCPU. 
So which value is correct? 

 

Screenshot 2024-05-22 at 18.14.17.pngScreenshot 2024-05-22 at 18.14.33.png

1 1 1,230
1 REPLY 1

Hello @nhthai2207  ,Welcome on Google Cloud Community.

Both values are correct, but depends of your choice. 

e2-micro Instance:

  • Preset Instance Type: The e2-micro is a predefined machine type offered by GCP.
  • vCPU Allocation: The e2-micro instance is allocated 0.25 vCPUs. This means it shares a physical CPU core with other instances, effectively receiving a quarter of the processing power of a full vCPU.

Custom Specification:

  • Custom Machine Type: When you configure a custom machine type, you can specify the exact number of vCPUs and amount of memory according to your needs.
  • vCPU Allocation: If you set up a custom specification and choose 2 vCPUs, you are requesting and will be allocated two full virtual CPUs for your instance.

Which Value is Correct?

  • For e2-micro: The correct value is 0.25 vCPU as defined by the preset instance type provided by GCP. This instance type is designed to be cost-effective and suitable for small workloads.

  • For Custom Specification: If you explicitly configure an instance with 2 vCPUs, then the correct value is 2 vCPUs. This setup is intended for more demanding workloads requiring more processing power.

--
cheers,
DamianS
LinkedIn medium.com Cloudskillsboost