GitHub Actions Runner Controller (ARC) provides the orchestration for self-hosted GitHub Actions runners in your cluster. It offers a simple job orchestration capability: a job arrives, a pod appears, and later the pod goes away. As you dive deeper into optimizing clusters, the more interesting question is what happens between those moments. How many reconciliation workers are available? Which application programming interface (API) is being throttled? Does a cleanup delay keep a runner registration around longer than it should?
ARC 0.15 is largely focused on improving these operational questions. The 0.15.0 release improves the controller’s behaviors, while 0.15.1 tightens behavior around throttling, metrics, and cleanup. The headline is speed and scale, but the useful changes are more practical: better controls, less unnecessary work, and fewer ways for a busy fleet to get stuck behind a slow request.
Tune the listener’s Kubernetes API rate limits
ARC has two components worth keeping separate in your mental model. The controller reconciles ARC resources and manages runner lifecycle. A scale-set listener communicates with the Actions service and creates resources defining how many runners the scale set should currently have. Each specializes in a different job, but both need to make calls to the Kubernetes API.
If you read my earlier
What’s New in GitHub ARC, you may remember k8sClientRateLimiterQPS and k8sClientRateLimiterBurst. Those settings tune the controller’s Kubernetes client, allowing you to optimize its interaction with the API server. Until now, however, you did not have similar control over the listener’s Kubernetes client. That means you could not optimize how it interacted with the API server to optimize its performance to match your cluster.
The new listenerConfig.scaler.qps and listenerConfig.scaler.burst settings tune the client used by the listener. Their defaults are 50 QPS and a burst of 100. You can set them directly in each scale set’s values.yaml:
Similar to the controller, these values work together. Queries per second (QPS) is the sustained rate at which that client can send Kubernetes API requests, while burst allows a short spike in capacity. Think of burst as a bucket of tokens. Each request removes one token from the bucket. Every second, the bucket is refilled with new tokens specified by the QPS limit. When the bucket is empty, new requests are placed in a queue until there are available tokens. That means that the client can handle brief spikes without immediately throttling. As part of the release, they have also raised the defaults to better align with modern systems.
The settings do not replace or change the controller’s limits. The listener uses its own limit to manage the Kubernetes API changes needed to configure runners for the scale set. If you set it too low, the scale set will take longer to reflect changes to its runner count. If you set it too high, a flood of new job requests could cause the client to consume the API server’s capacity.
Remember that the controller still does all the work to manage and configure the runners. As a result, it needs to have sufficient capacity and rate limits to perform that work. This just ensures the listener doesn’t become prematurely throttled. Use monitoring data to set these values based on the bottlenecks you observe.
When the Actions service says “slow down”
Kubernetes client limits are not the same as GitHub Actions-service rate limiting; the Actions service has its own rate limits. Those are not configurable by users, but they can impact the overall performance. Once the limits are hit, the service will throttle requests. When that happens, the controller needs to back off rather than intensify its requests.
The new version changes how the controller’s Actions-service calls behave when the service is slow or rate-limits a request. Each call has a 10-second deadline, and the controller does not keep retrying the same request inside that call. Instead, it ends the current reconciliation and requeues the request based on the service’s Retry-After header (falling back to a maximum 30 second delay).
That matters under load. A controller worker held by a slow service request cannot clean up a completed runner or process new work. Instead of tying up the worker with repeated retries, it frees the worker to handle other tasks which are awaiting processing. It then tries again based on the response from the Actions service or a reasonable delay. This helps to avoid a single throttled request from blocking other runner management activities.
More controller concurrency, with a useful caveat
ARC 0.15 also makes
concurrent-reconcile settings configurable per controller. Under the covers, ARC actually has multiple controllers each managing separate types of custom resources. Earlier versions of ARC used the maxConcurrentReconciles parameter, but it only configured the EphemeralRunner controller. This left the other controllers constrained to a default value. As a result, you could not tune how many concurrent reconciles each specific controller could handle independently.
This is different from QPS and burst, which limit how quickly a particular Kubernetes client sends requests. More workers can increase request pressure, but without enough workers, reconciliation – which supports making calls, creating or updating resources, and handling events – can become a bottleneck even if Kubernetes has available capacity. Now, you can tune each controller independently (and the default values have each increased):
There is a special note on the last one – it is higher because it frequently requires multiple concurrent reconciles to handle ephemeral runners efficiently. The others typically need to be tuned if you have multiple scale sets on the same cluster.
Based on benchmarks in pull request (PR) #4670, improving the number of workers drains the queue faster. This means that caches are more likely to still be fresh, reducing the total number of API calls required. As a result, this reduces the overall QPS and Burst settings required for efficient operations. Internal benchmark testing results showed:
- 24% lower median time from job completion to runner removal
- 14% shorter workload drain time
- 16% more jobs completed per second
- 13% fewer Kubernetes API requests
- 21% fewer reconciliations
This also documents the reason behind the selected concurrency and reconciliation settings for the various ARC components, including where diminishing returns were observed. I’d recommend reading the details in that PR to understand more.
Other optimizations
Several quieter changes remove unnecessary work from the controller’s hot paths. Here is what they mean in practice:
- Targeted patches: When ARC changes a specific Kubernetes object, it now sends a patch with just the fields it intends to change instead of the entire object. That reduces payload size and avoids potential conflicting changes.
- Less status write contention: ARC now publishes aggregate runner counts for
EphemeralRunnerSetandAutoscalingRunnerSetas metrics instead of repeatedly patching those aggregates into the resources’ status. This improves the overall performance while placing monitoring where it belongs. - Reuse desired resources: During reconciliation, ARC figures out what the managed Kubernetes resources should look like. ARC uses a small in-memory cache, allowing it to reuse objects when their inputs have not changed, avoiding repeated allocations and comparisons.
- Ignore irrelevant updates: resources can produce events that do not affect what a controller needs to do. Filtering those changes before they enter the work queue helps reduce the number of unnecessary reconciliations.
- Release completed pods sooner: Once a runner finishes, ARC will request deletion sooner, freeing resources and quota for other work. The trade-off is that sidecars such as log collectors may have less time to finish before Kubernetes cleans up the pod.
The complete 0.15.0 release notes are worth reading if you want to understand more about the various performance changes that were made.
In short – if you’ve been re-using the same configuration for your runners for the past few releases, it’s time to revisit and potentially adjust your settings to take advantage of these optimizations.
Reliability fixes
There are also some quality of life improvements that make ARC more resilient to changes and behaviors in the backend services. For example, ARC has improved the ability to handle scale sets whose registrations are missing or inconsistent. Instead of failing, it can attempt to re-register the scale set.
There is also cleanup fix. It can now detect runners that exist successfully without having run a job. This allows it to eliminate a type of orphaned registration that previously could linger.
Finally, metrics were improved to correct inconsistent guards around metrics registration and publishing. When metrics are disabled, ARC now skips both registration and publishing. Previously, it was possible to configure the metrics settings in a way that could still capture the data in memory, leading to unnecessary consumption.
An important upgrade
ARC 0.15 is exciting because it makes the routine parts of runner operation more deliberate and configurable. It provides numerous features designed to reduce work and improve efficiency. More importantly, it gives operators more ways to fine-tune their runner fleet to their specific needs and workloads. This means improved scale and stability. As a result, upgrading to 0.15 is not just about fixes – it unlocks the potential for a more optimized and resilient environment.
