Scheduled Jobs always running on same computer

Hi.

I have two Powershell Universal servers running version 5.12, which I’ve clustered using the SQL database method.

Its working great for redundancy, if I shut one of the servers down the jobs are picked up by the alternate server without any issues.

However all the jobs in my schedule seem to run on the same server, I understood that a random server should be chosen so if I have a number of servers set up the running should balance itself between them. Is there any specual setup I need to do to achieve this?

Hangfire will just pick up a job as soon as a worker is available and there isn’t much logic besides that. That said, 5.4 introduces a least busy load balancer to evenly distribute.

Thanks! Looks like there is something strange going on with Hangfire as it always sends the jobs to one server.

The least busy load balancer looks very interesting though - I’ll download the nightly to our dev environment and see if its worth waiting for.