Search code examples
google-cloud-platformgoogle-cloud-build

Why can my Cloud Build only run 5 or 6 builds at once?


The way I'm using Cloud Build makes it so that I can have several builds running at once. When I try running more than around 5 or 6 builds, however, other builds are queued and are not run until the previous 5 or 6 builds complete. How can I raise the number of concurrent builds that my Cloud Build can run?

A little more information:

  1. I'm not using a private worker pool currently.
  2. I see no quotas being hit for cloudbuild.googleapis.com.
  3. My "Concurrent builds" quota is set to 10 max, but has 0% usage even when I have several builds running at once.

Solution

  • Google Gemini Pro had this to say about why I'm having this issue:

    "When not using a private worker pool, you share resources with other Cloud Build users. This shared pool has inherent limitations on the number of concurrent builds it can handle, which might be causing the queuing you're experiencing."

    So it looks like the quota isn't on my GCP project, but on Cloud Build's public shared worker pool. So if I want more builds at once, I'll probably have to make a private worker pool.