Cloud Storage Flashcards
What is cloud storage?
a unified object storage system
Key points of cloud storage? (7)
- manages objects in terms of blobs
- objects are atomic
- objects are grouped into buckets that are individually addressable by URL
- serverless
- not limited by size of disks attached to server
- access can be controlled at object level
- does not support concurrency
What is Cloud Storage suited for?
storing large volumes of data that don’t require a consistent data structure
Cloud Storage Bucket key points? (5)
- buckets share a global namespace, so they must be globally unique
- buckets are like directories - used to help organize objects into groups, but they do not have sub-directories
- when you create a bucket, you specify the location - objects may be stored in different regions for high availability
- 4 different storage classes
- buckets can be configured to retain versions
- latest version is live version
- when live version is deleted, it is archived instead - provides lifecycle management policies
What is Cloud Storage Fuse?
a way to mount a bucket as a file system on linux and mac - allows upload and download of files to/from buckets using system commands
What are the 4 different storage classes for Cloud Storage?
- Multi-regional
- Regional
- Nearline
- Coldline
What is multi-regional storage, and what are its key points?
- data is replicated across multiple regions for high availability
- redundancy in the case of zone failures
- may reduce latency if users are spread out
- higher cost (~1.25x regional)
- it’s for frequently used data
What is regional storage, and what are its key points?
- for frequently used data
2. storage is in one region
What is nearline storage, and what are its key points?
- infrequently used data (< 1 per month)
- lower SLA
- lower cost (~ half regional)
- retrieval charge per GB retrieved
- minimum 30 day storage duration
What is coldline storage, and what are its key points?
- very infrequently used data (< 1 per year)
- lower SLA
- lowest cost (~ 1/3 regional)
- higher retrieval cost per GB (about 5x nearline)
- minimum 90 day storage duration
What are the lifecycle managment policies?
You can configure objects to be moved based on different criteria, like time
- move objects to lower cost storage class
- delete objects based on age, creation date, live state or current storage class
- can set up lifecycle policy after bucket creation
How to change the storage class via shell?
gsutil rewrite -s [STORAGE CLASS] gs://[PATH TO OBJECT}
How to make a bucket via shell?
gsutil mb gs://[BUCKET NAME]
How to copy Cloud Storage object via shell?
gsutil cp [LOCAL OBJECT} gs://[DESTINATION BUCKET]
How to download Cloud Storage object?
gsutil cp gs://[SOURCE BUCKET]/[SOURCE OBJECT] [DESTINATION DIR}