I’m using .NET Aspire to orchestrate my services, and everything is deployed to Azure Container Apps.
By default for replication, Container Apps seem to use HTTP scaler with a concurrency target of 10 requests per replica, but I’d like to increase this limit to 1000 requests per replica.
Here’s an example of what I’m doing in my AppHost project:
var webBuilder = builder.AddProject<Project_Web>(ProjectWebResourceName)
.WithExternalHttpEndpoints()
.WithHttpHealthCheck("/health")
.PublishAsAzureContainerApp((infrastructure, app) =>
{
app.Template.Scale.MinReplicas = appHostOptions.Web.MinReplicas;
app.Template.Scale.CooldownPeriod = appHostOptions.Web.CooldownPeriodSeconds;
});
However, I can’t find where or how to override the HTTP scaler’s concurrency target (default 10). I want to configure it directly through Aspire.
