Google Compute Engine - Billing
- You are billed by the second (after a minimum of 1 minute)
- You are NOT billed for compute when a compute instance is stopped
- However, you will be billed for any storage attached with it!
- (RECOMMENDATION) Always create Budget alerts and make use of Budget exports to stay on top of billing!
- What are the ways you can save money?
- Choose the right machine typeGoogle Compute Engine Family or Machine Types1. General purpose 1. Memory-optimized 1. Compute-optimized 1. GPU 1. Custom Machine Types Can vary from region to region Can be changed when stopped Similar to AWS EC2 Instance Types Status: #idea Tags: gcp, google-cloud-engineer, cloud, cloud-compute, Google Compute Engine, Steps when creating a VM Instance in Google Compute Engine, References and imageImage Typesgcp: 1. Public Image 1. Custom Image 1. Snapshots 1. Existing Disks Status: #idea Tags: gcp, google-cloud-engineer, cloud, cloud-compute, Google Compute Engine, Steps when creating a VM Instance in Google Compute Engine, Boot disk, AWS EC2 References for your workload
- Be aware of the discounts available:
- Sustained use discountsSustained use discountsAutomatic discounts* for running *VM instances for significant portion of the billing month * Example: If you use N1, N2 machine types for more than 25% of a month, you get a 20% to 50% discount on every incremental minute. * Discount increases with usage (graph) sustained-disc-gcp.png * No action required on your part! Automatically applied by the platform itself Applicable* for instances created by *Google Kubernetes Engine and Google Compute Engine RESTRICTION*: Does NOT apply on ce
- Reservations or Committed Use DiscountsReservations or Committed Use DiscountsCommit for 1 year or 3 year plans for cost reduction * Like advanced hotel booking * Secures space at lower rates * Ensures availability on arrival * Avoids premium on-the-spot rates Use case: * consistent resource usage / workloads with predictable resource needs * long-term projects How reservation works in Azure: * Save up to 72% off pay-as-you-go How reservation/committed use discounts works in GCP: Up to 70% discount** based on machine type and GPUs Applicable* for ins
- Discounts for preemptible VM instancesPreemtible InstancesHow Preemtible Instances works in GCP: Short-lived cheaper* (upto 80%) *compute instances * Can be stopped by GCP any time (preempted) within 24 hours * Maximum time for running is 24 hours * Instances get 30 second warning (to save anything they want to save) Use Preempt VM's** if: * Your applications are fault tolerant * You are very cost sensitive * Your workload is NOT immediate * Example: Non immediate batch processing jobs RESTRICTIONS: * NOT always available * NO SLA and
Status: #idea
Tags: gcp, google-cloud-engineerGoogle Associate Cloud Engineer Noteswhy use cloud?
https://www.in28minutes.com/gcp-bookshelf
https://www.in28minutes.com/downloads/09-google-certified-associate-cloud-engineer/CoursePresentation-GoogleCertifiedAssociateCloudEngineer.pdf
how do projects work in gcp?
cloud projects and accounts
Resource Hierarchy
Organization Level
Folder Level
Project Level
IAM
who
* single account
* group
can do what (rules)
* basic
* predefined
* custom
scope
observability monitoring
billing account
load balancing
Regions and Zones, cloud, cloud-billingBilling and Cost Planning in CloudMost providers:
* Pay as you go pricing model
* Reservations or Committed Use Discounts
* Spot Instances
* Preemtible Instances
How billing works in GCP:
* Sustained use discounts
* Google Compute Engine - Billing
How billing and planning costs works in Azure:
* Azure Free Account
* Azure Hybrid Benefit
* Azure Pricing Calculator
* Total Cost of Ownership Calculator
* Azure Cost Management Dashboard
* Azure Advisor
Status: #idea
Tags: cloud
References, Google Compute EngineGoogle Compute EngineGCP service used to provision and manage virtual machines
* Create and manage lifecycle of Virtual Machine (VM) instances
* Associated with a project
Load balancing* and *auto scaling* for multiple VM instances
Attach storage** (& network storage) to your VM instances
* Manage network connectivity and configuration for your VM instances
Setup
Billing
Live Migration & Availability Policy
Scenarios
Similar to AWS EC2, Azure Virtual Machines
Status: #idea
Tags: gcp, google-cloud-engineer,