I have a set of stateless services
These services are connected to service bus
Each service looks at 3 specific service bus queues
What I would like to do is to add the number of messages on across these queues
If the total is above a specific number say 10000 I want to add 2 more instances otherwise I can reduce the instances
Is this possible?
The auto scale functionality of service fabric seems to be more based on resources
Paul
Currently Service bus allows up to 100 partitioned queues or topics per namespace. Each partitioned queue or topic counts towards the quota of 10,000 entities per namespace (doesn't apply to Premium tier).
Scaling in Service Fabric is accomplished several different ways: Scaling by creating or removing stateless service instances. Scaling by creating or removing new named services. Scaling by creating or removing new named application instances.
Service Bus queues are a general-purpose technology that can be used for a wide variety of scenarios: Communication between web and worker roles in a multi-tier Azure application. Communication between on-premises apps and Azure-hosted apps in a hybrid solution.
Using the Monitor option in Azure you can set autoscale for any resource. Once you Enable autoscale for your Service Fabric Nodes (not the service fabric itself) you will be able to control the specific metrics you want to base your scale
I shared a printscreen from autoscalling on my Service Fabric - in mine it shows EventHub, because I don't use a service bus, but it can be applied to service bus according to the options in the metric source
for more reference look here: https://docs.microsoft.com/en-us/azure/monitoring-and-diagnostics/monitoring-autoscale-scale-by-custom-metric
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With