GKE
- Scale down the service that didn't necessarily in the non-prod environment
- Use namespace to separate the service to track the resource usage
- Use
resource quota
and limit range
to enforce resource limitation
Over-provision
- Aka. Bin packing problem
- You don't want it to hit 100%, so you could choose a buffer of 15% to keep a safe distance
- Then, the traffic variable in the formula would be the percentage of traffic growth estimated in the next 2 to 3 minutes
- In the load test you ran earlier, 0% to 150% was a bit of an extreme growth example, so instead imagine a more average traffic growth of 30%
Committed-use discount
Preemptible
Cost planning
Products Which Can Generate Big Logs
- VPC Flow Logs
- Percentage
- Message type (CIDR)
- HTTP 200 OK from requests
- Load balancer
- Logging agent on Compute Engine or AWS
- The write operation 9in the Cloud Logging API