Search code examples
azure-service-fabricstatelessazure-vm-scale-set

Auto scale Service Fabric Stateless Service?


Is there any way to set up auto scaling of stateless services in Service Fabric? I know you can add more nodes to the cluster using Scale sets and auto scaling, but what about adding more instances of a service to the cluster as traffic increases? Thanks in advance!


Solution

  • Setting the instance count to -1 should do the trick. You'll have 1 service instance per node. If the node count changes, so will the service count.