Ive built a temporal app in TypeScript, with some workflows.
I’m using kubernetes autoscaling and metrics, so that more workers are deployed when the scheduleToStart metric increases.
However, when there is heavy load with clients calling for many workflows to be run, the startToClose metric increases and the scheduleToStart metric stays near 0. Which is the opposite of what I would expect, and means that no new workers are deployed to handle the load.
How can I make it so that scheduleToStart metric increases under load? Alternatively, should I be using a different metric to determine autoscaling?