Reputation: 181
Why disk type in gcp (google cloud platform) is a resource that can be accessed using project id and zone instead of just being a constant like standard persistent, ssd persistent and ssd local?
Upvotes: 2
Views: 363
Reputation: 76799
disk types are being handled as a resource, because the output of gcloud compute disk-types list
is not what one would expect - but the available disk types per zone (which is a resource):
NAME ZONE VALID_DISK_SIZES
local-ssd europe-west3-b 375GB-375GB
pd-ssd europe-west3-b 10GB-65536GB
pd-standard europe-west3-b 10GB-65536GB
local-ssd europe-west3-c 375GB-375GB
pd-ssd europe-west3-c 10GB-65536GB
pd-standard europe-west3-c 10GB-65536GB
local-ssd asia-east2-c 375GB-375GB
pd-ssd asia-east2-c 10GB-65536GB
pd-standard asia-east2-c 10GB-65536GB
local-ssd europe-west3-a 375GB-375GB
pd-ssd europe-west3-a 10GB-65536GB
pd-standard europe-west3-a 10GB-65536GB
local-ssd europe-west2-c 375GB-375GB
pd-ssd europe-west2-c 10GB-65536GB
pd-standard europe-west2-c 10GB-65536GB
local-ssd asia-northeast1-b 375GB-375GB
pd-ssd asia-northeast1-b 10GB-65536GB
pd-standard asia-northeast1-b 10GB-65536GB
local-ssd 375GB-375GB
pd-ssd 10GB-65536GB
pd-standard 10GB-65536GB
local-ssd us-west2-c 375GB-375GB
pd-ssd us-west2-c 10GB-65536GB
pd-standard us-west2-c 10GB-65536GB
local-ssd europe-west1-d 375GB-375GB
pd-ssd europe-west1-d 10GB-65536GB
pd-standard europe-west1-d 10GB-65536GB
local-ssd asia-east1-a 375GB-375GB
pd-ssd asia-east1-a 10GB-65536GB
pd-standard asia-east1-a 10GB-65536GB
local-ssd asia-east1-b 375GB-375GB
pd-ssd asia-east1-b 10GB-65536GB
pd-standard asia-east1-b 10GB-65536GB
local-ssd asia-east1-c 375GB-375GB
pd-ssd asia-east1-c 10GB-65536GB
pd-standard asia-east1-c 10GB-65536GB
local-ssd us-west1-b 375GB-375GB
pd-ssd us-west1-b 10GB-65536GB
pd-standard us-west1-b 10GB-65536GB
local-ssd us-west1-c 375GB-375GB
pd-ssd us-west1-c 10GB-65536GB
pd-standard us-west1-c 10GB-65536GB
local-ssd europe-west1-b 375GB-375GB
pd-ssd europe-west1-b 10GB-65536GB
pd-standard europe-west1-b 10GB-65536GB
local-ssd europe-west1-c 375GB-375GB
pd-ssd europe-west1-c 10GB-65536GB
pd-standard europe-west1-c 10GB-65536GB
local-ssd us-west2-a 375GB-375GB
pd-ssd us-west2-a 10GB-65536GB
pd-standard us-west2-a 10GB-65536GB
local-ssd southamerica-east1-c 375GB-375GB
pd-ssd southamerica-east1-c 10GB-65536GB
pd-standard southamerica-east1-c 10GB-65536GB
local-ssd southamerica-east1-b 375GB-375GB
pd-ssd southamerica-east1-b 10GB-65536GB
pd-standard southamerica-east1-b 10GB-65536GB
local-ssd 375GB-375GB
pd-ssd 10GB-65536GB
pd-standard 10GB-65536GB
local-ssd europe-west2-b 375GB-375GB
pd-ssd europe-west2-b 10GB-65536GB
pd-standard europe-west2-b 10GB-65536GB
local-ssd 375GB-375GB
pd-ssd 10GB-65536GB
pd-standard 10GB-65536GB
local-ssd europe-west2-a 375GB-375GB
pd-ssd europe-west2-a 10GB-65536GB
pd-standard europe-west2-a 10GB-65536GB
local-ssd europe-north1-b 375GB-375GB
pd-ssd europe-north1-b 10GB-65536GB
pd-standard europe-north1-b 10GB-65536GB
local-ssd 375GB-375GB
pd-ssd 10GB-65536GB
pd-standard 10GB-65536GB
local-ssd 375GB-375GB
pd-ssd 10GB-65536GB
pd-standard 10GB-65536GB
local-ssd europe-north1-a 375GB-375GB
pd-ssd europe-north1-a 10GB-65536GB
pd-standard europe-north1-a 10GB-65536GB
local-ssd 375GB-375GB
pd-ssd 10GB-65536GB
pd-standard 10GB-65536GB
local-ssd 375GB-375GB
pd-ssd 10GB-65536GB
pd-standard 10GB-65536GB
local-ssd 375GB-375GB
pd-ssd 10GB-65536GB
pd-standard 10GB-65536GB
local-ssd 375GB-375GB
pd-ssd 10GB-65536GB
pd-standard 10GB-65536GB
local-ssd europe-north1-c 375GB-375GB
pd-ssd europe-north1-c 10GB-65536GB
pd-standard europe-north1-c 10GB-65536GB
local-ssd asia-east2-a 375GB-375GB
pd-ssd asia-east2-a 10GB-65536GB
pd-standard asia-east2-a 10GB-65536GB
local-ssd southamerica-east1-a 375GB-375GB
pd-ssd southamerica-east1-a 10GB-65536GB
pd-standard southamerica-east1-a 10GB-65536GB
local-ssd asia-southeast1-c 375GB-375GB
pd-ssd asia-southeast1-c 10GB-65536GB
pd-standard asia-southeast1-c 10GB-65536GB
local-ssd us-east1-c 375GB-375GB
pd-ssd us-east1-c 10GB-65536GB
pd-standard us-east1-c 10GB-65536GB
local-ssd us-east1-b 375GB-375GB
pd-ssd us-east1-b 10GB-65536GB
pd-standard us-east1-b 10GB-65536GB
local-ssd 375GB-375GB
pd-ssd 10GB-65536GB
pd-standard 10GB-65536GB
local-ssd australia-southeast1-a 375GB-375GB
pd-ssd australia-southeast1-a 10GB-65536GB
pd-standard australia-southeast1-a 10GB-65536GB
local-ssd asia-northeast1-c 375GB-375GB
pd-ssd asia-northeast1-c 10GB-65536GB
pd-standard asia-northeast1-c 10GB-65536GB
local-ssd 375GB-375GB
pd-ssd 10GB-65536GB
pd-standard 10GB-65536GB
local-ssd asia-southeast1-b 375GB-375GB
pd-ssd asia-southeast1-b 10GB-65536GB
pd-standard asia-southeast1-b 10GB-65536GB
local-ssd 375GB-375GB
pd-ssd 10GB-65536GB
pd-standard 10GB-65536GB
local-ssd 375GB-375GB
pd-ssd 10GB-65536GB
pd-standard 10GB-65536GB
local-ssd asia-southeast1-a 375GB-375GB
pd-ssd asia-southeast1-a 10GB-65536GB
pd-standard asia-southeast1-a 10GB-65536GB
local-ssd asia-east2-b 375GB-375GB
pd-ssd asia-east2-b 10GB-65536GB
pd-standard asia-east2-b 10GB-65536GB
local-ssd australia-southeast1-c 375GB-375GB
pd-ssd australia-southeast1-c 10GB-65536GB
pd-standard australia-southeast1-c 10GB-65536GB
local-ssd us-central1-a 375GB-375GB
pd-ssd us-central1-a 10GB-65536GB
pd-standard us-central1-a 10GB-65536GB
local-ssd asia-south1-b 375GB-375GB
pd-ssd asia-south1-b 10GB-65536GB
pd-standard asia-south1-b 10GB-65536GB
local-ssd us-central1-c 375GB-375GB
pd-ssd us-central1-c 10GB-65536GB
pd-standard us-central1-c 10GB-65536GB
local-ssd us-central1-b 375GB-375GB
pd-ssd us-central1-b 10GB-65536GB
pd-standard us-central1-b 10GB-65536GB
local-ssd asia-northeast1-a 375GB-375GB
pd-ssd asia-northeast1-a 10GB-65536GB
pd-standard asia-northeast1-a 10GB-65536GB
local-ssd us-east1-d 375GB-375GB
pd-ssd us-east1-d 10GB-65536GB
pd-standard us-east1-d 10GB-65536GB
local-ssd us-central1-f 375GB-375GB
pd-ssd us-central1-f 10GB-65536GB
pd-standard us-central1-f 10GB-65536GB
local-ssd northamerica-northeast1-c 375GB-375GB
pd-ssd northamerica-northeast1-c 10GB-65536GB
pd-standard northamerica-northeast1-c 10GB-65536GB
local-ssd us-west1-a 375GB-375GB
pd-ssd us-west1-a 10GB-65536GB
pd-standard us-west1-a 10GB-65536GB
local-ssd 375GB-375GB
pd-ssd 10GB-65536GB
pd-standard 10GB-65536GB
local-ssd us-east4-a 375GB-375GB
pd-ssd us-east4-a 10GB-65536GB
pd-standard us-east4-a 10GB-65536GB
local-ssd asia-south1-c 375GB-375GB
pd-ssd asia-south1-c 10GB-65536GB
pd-standard asia-south1-c 10GB-65536GB
local-ssd us-east4-c 375GB-375GB
pd-ssd us-east4-c 10GB-65536GB
pd-standard us-east4-c 10GB-65536GB
local-ssd us-east4-b 375GB-375GB
pd-ssd us-east4-b 10GB-65536GB
pd-standard us-east4-b 10GB-65536GB
local-ssd europe-west4-a 375GB-375GB
pd-ssd europe-west4-a 10GB-65536GB
pd-standard europe-west4-a 10GB-65536GB
local-ssd europe-west4-c 375GB-375GB
pd-ssd europe-west4-c 10GB-65536GB
pd-standard europe-west4-c 10GB-65536GB
local-ssd europe-west4-b 375GB-375GB
pd-ssd europe-west4-b 10GB-65536GB
pd-standard europe-west4-b 10GB-65536GB
local-ssd 375GB-375GB
pd-ssd 10GB-65536GB
pd-standard 10GB-65536GB
local-ssd 375GB-375GB
pd-ssd 10GB-65536GB
pd-standard 10GB-65536GB
local-ssd 375GB-375GB
pd-ssd 10GB-65536GB
pd-standard 10GB-65536GB
local-ssd asia-south1-a 375GB-375GB
pd-ssd asia-south1-a 10GB-65536GB
pd-standard asia-south1-a 10GB-65536GB
local-ssd northamerica-northeast1-a 375GB-375GB
pd-ssd northamerica-northeast1-a 10GB-65536GB
pd-standard northamerica-northeast1-a 10GB-65536GB
local-ssd australia-southeast1-b 375GB-375GB
pd-ssd australia-southeast1-b 10GB-65536GB
pd-standard australia-southeast1-b 10GB-65536GB
local-ssd 375GB-375GB
pd-ssd 10GB-65536GB
pd-standard 10GB-65536GB
local-ssd us-west2-b 375GB-375GB
pd-ssd us-west2-b 10GB-65536GB
pd-standard us-west2-b 10GB-65536GB
local-ssd northamerica-northeast1-b 375GB-375GB
pd-ssd northamerica-northeast1-b 10GB-65536GB
pd-standard northamerica-northeast1-b 10GB-65536GB
Upvotes: 1
Reputation: 594
Google Compute Engine (GCP) offers several storage options:
More information: Global, Regional and Zonal Resources
The zonal disk services (zonal PD and zonal SSD) provide a block storage option that is reliable within a single zone.
The regional disk services (regional PD and regional SSD) provide a block storage option that is replicated in two different zones, so it's resilient to zone failure.
The local option (local SSD) is a great option for fast, temporary block storage, and doesn't provide any replication.
The cloud storage buckets option uses Google's s3-like object storage service, GCS.
You can create disk resources that meet the capacity, performance, and reliability requirements of your application. Disk resources you create are associated with the zones or regions where they are created and are available to virtual machines created in the same project and locality.
Upvotes: 0