-
Compute Engine
- Virtual version of physical computer
- Full control with flexibility for customization
- User configures CPU/GPU, memory, disk space, OS, networking
- Google handles hardware management and virtualization layer
- Where managed platform services not a good fit
- Commonly used to migrate existing servers into the cloud
- Good fit for applications with specific OS requirements
-
Kubernetes Engine
- Manage container based workloads, not machines
- Benefits from the portability of containers
- No dependency on OS version
- Google manages the cluster (node, software updates, autoscaling)
- Supports a cloud-native micro-service architectures
-
App Engine
- Serverless application platform
- Users focusses on code and use platform to manage HTTP requests and versioning
- Google handles infrastructure, updates, scaling, networking etc
- Standard environment supports rapid scaling from zero instances
- Standard environment supports limited runtime - python, java, PHP, go, nodej
- Flexible environment is slower scaling up/down
- Suitable for websites, mobile app backends, IoT apps
-
Cloud Functions
- Serverless computing platform
- Function executes in response to cloud based events
- Simple, single purpose functions
- Scale down to zero. Autoscales with usage
- Limited runtime support (nodejs, python, PHP, go)
- Can be triggered by pub/sub and cloud storage events
-
Preemptible VM
- Short lived, low cost VM
- Can be shutdown at anytime (30 seconds warning)
- 24 hours max
- Not for critical single VM
- Most often used in managed instance groups
- Fixed pricing up to 80% off regular instance price
- Compute (CPU/memory) is cheaper. Storage and licensing same cost
- Ideal for fault tolerant batch processing workloads
-
Best Practice
- Many small machines better than a few large ones
- Less likely to be shutdown completely
- Run jobs during off peak times
- Application tolerating preemption
- Test by manually stopping the instance
- Preserve disk on machine termination
- Use shutdown script to pick up where left off