'After applying Auto scale, fail to get object from django restframework model

I deploying Django Restframework API using Github to Azure app service.
One of my view get object from django model and show it as json format. It worked well before applying Auto scale.

Since my app service uses a lot of CPU, I applied Auto scale.
After that it seems my view returned empty json sometimes even though there are records in model.

Anyone know why it is happening and how to fix it?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source