I have a very small website that almost do nothing by now, and we are implementing webjobs to do sometime-heavy background things like loading and processing information that needs to be filtered and prepared to then be showed at the web.
Everything is perfect when running in debug mode from our machine. The same code also run perfect and with high performance if I put the same code in an app and then run from an Azure Virtual Machine.
But, when playing with Azure Webjobs the Webjob process never uses more than 5% of the CPU available. No matter what I do. I already try to change the job configuration, by modifying batch size and NewBatchThreshold but nothing change. The problem is not on the way Azure interacts with the queue but on some processing restrictions after that.
My ideal escenario for CPU usage in the future would be:
- 10% assigned to the website
- 90% divided into two separate webjobs
The problem that scenario now looks impossible as I'm being restricted to something like from 3.5% to 5% of CPU usage on the webjob.
Any ideas?
Thanks!