0

How do I use auto scale stateless services with out -1. what I want to achieve is if a micro service is set to 3 instances for 5 instances available. now if I increase to the instance to 10 then the micro service should auto scale to 6. -1 does not help here as it occupies all the instances in a node when number of instances increases.

kumar
  • 8,207
  • 20
  • 85
  • 176

1 Answers1

1

When you set the instance count to -1, you are telling that the number of instances is dynamic based on the number of available nodes, you should not use it for auto scaling unless you really want to tie the number of instances to the number of available nodes.

This other question should give more insights: Service Fabric set instance count -1

Your options are either: set the instance count manually or use auto scaling like described in the docs

In any of the cases, the number of instances are limited to the number of nodes, these issues were explained in this answer: Does service fabric create singleton instance for each stateful partition?

Diego Mendes
  • 10,631
  • 2
  • 32
  • 36