Reliability Flashcards
Throttling
Responding to excessive API requests by dropping requests until rate falls below limit
3 parts of JSON Web Token (JWT)
Header
- Identifies token is a JWT
- Algorithm used to sign sign token
Payload
- Set of claims about issuer, subject, token
Signature
- Output of signature algorithm
- Shows signer knows secret and JWT token not altered
Storage Transfer Service
From HTTP/S, S3, Cloud Storage
To Cloud Storage
Transfer jobs run in GCP
*recommended for importing from other CSPs
Google Transfer Appliance
40TB
300TB
Cloud Storage
Time to transfer:
1 TB over 1 Gbps
3 hours
Time to transfer:
1 PB over 100 Gbps network
30 hours
Max volume and bandwidth for gsutil to transfer data
< 10 TB
At least 100 Mbps bandwidth
Data volume - when to use Transfer Appliance
> 20 TB
SLO
Agreed upon target for a measurable attribute of a service specified in a SLA
SLI
Metric that reflects how well a SLO is being met
Cloud Functions
Serverless service for running functions
Cloud Run
Serverless service for running stateless containers
Available as managed service or within Anthos
*Process up to 80 concurrent requests by default - up to 1,000
Compute Engine Machine Families (4)
- Optimized
- Key attribute
General purpose - best price performance
Compute Optimized - best performance per core
Memory Optimized - best memory per core (up to 12 TB)
Accelerator/GPU Optimized - parallel processing
Compute Engine persistent disk types (5)
*Strength
Standard persistent - efficient and reliable
Balanced persistent - fast, but cost effective (same IOPs as SSD persistent, but less per GB)
SSD persistent - single digit ms latency
Extreme persistent - for HPC in-memory databases, configurable IOPs
Local SSDs - Hot cache, flash optimized, low latency - higher higher throughput and lower latency than standard SSD
Instance Group Types
Managed
Unmanaged
Instance Template
- Definition
- What it contains
Used to create VM instances and MIGs
Machine Type Boot disk or container image Network settings Labels Startup scripts Other properties of VM
Cloud Functions events (5)
Cloud Storage Pub/Sub HTTP calls Firestore - document create, update, delete, write Cloud Logging
Cloud SQL Type Replication Failover Max size Scaling
MySQL, SQL Server, PostegreSQL
Read replica in same or different region
Google managed failover (primary to replica)
30 TB
Vertical scaling only - can enable auto scaling storage
Database Migration Service
Continuous replication for MySQL and PostgreSQL to Cloud SQL