Custom Scale Rule with type azure-eventhub in Azure Container Apps scales up replicas, but never scales down.

Alvin 25 Reputation points
2024-01-10T09:31:40.4966667+00:00

Hello Team,

Our microservices architecture implemented in Azure Container Apps utilizes Dapr pub/sub for publishing/subscribing to position data events to Azure Event Hubs. A key component is the positions-processing microservice, which scales dynamically based on event throughput.

Currently, we have configured the service with two partitions per Event Hub. When significant position event volume spikes occur, we expect the positions-processor to scale out its replicas accordingly to meet demand. However, we have observed some inconsistent auto-scaling behaviours.

Specifically, during substantial load the service only scales out to 2 container replicas at peak, regardless of sustained high message volume flowing through the Event Hubs. Additionally, the replicas fail to scale back down to the defined minimum of 1 replica when the spike dissipates.

I have attached the current configuration details for the position-processing service’s auto-scaling rules in Azure Container Apps, which allow further analysis into the scaling constraints. Please advise if any modifications are required to enable more responsive demand-based scaling tailored to Event Hubs traffic patterns and processor workload. Let me know if further troubleshooting details could help determine next steps or a resolution.

User's image

Please I need any help I can to get this service to scale appropriately.

Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
573 questions
Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
301 questions
{count} vote