DR for CloudRun

Dude blogs Tech
1 min readJun 30, 2023

--

Cloud Run is a regional offering provided by Google Cloud Platform. It automatically load balances data and traffic across multiple zones within a region. The container instances are scaled dynamically to handle incoming traffic, and they are load balanced across zones as needed.

Each zone in Cloud Run has its own scheduler, which enables autoscaling on a per-zone basis. The scheduler is aware of the load that other zones are experiencing and can provision additional capacity within a zone to compensate for any zonal failures.

Cloud Run stores metadata and deployed containers regionally, ensuring high availability and data durability. The data is written synchronously, and the Cloud Run Admin API returns the API call only after the data has been committed to a quorum within the region. Therefore, data plane operations are not affected by zonal failures. In the event of a zonal failure, traffic is automatically routed to other available zones within the region.

On the other hand, when deploying to multiple regions, Cloud Run does not replicate data across regions. Traffic is never routed to a different region by Cloud Run. In case of a regional failure, Cloud Run services will become available again as soon as the outage is resolved.

To achieve higher availability across regions, you can use Cloud Load Balancing in conjunction with Cloud Run. Cloud Load Balancing can distribute traffic across multiple Cloud Run services deployed in different regions, ensuring that your application remains available even if one region experiences an outage.

--

--