An Azure service that provides an event-driven serverless compute platform.
@Girts Z When running on the consumption plan, there is no way to manually scale to a certain number of instances.
You could however define concurrency throttles to limit number of activities per worker based on the expected resource requirements for the activity. This could lead to the scale controller to quickly scale out to further nodes.
To have manual control over the number of initial nodes, you will have to use the Premium Tier where you can define the number of warmed instances to be readily available. The code that you've shared for the ScaleMonitor is also only applicable when running on the Premium Tier, though currently there is no way to configure it.
Finally, you could also consider trying out the netherite storage provider which helps increase overall throughput but used Event Hubs which could be more costlier, but depending on your use case, could work it better for the same cost even.