Forum Discussion
ananthuraj
Jun 07, 2023Copper Contributor
Python Flask app for ChatBot not working Properly in Azure Webapp
I have created a python flask framework app which creates a basic chatbot using azure openai llm and embeddings. This uses an index.html template and the site loads and the chat responses work as exp...
ananthuraj
Jun 08, 2023Copper Contributor
azharamir13 Thanks for the response.
Update : I did try out some of the options you mentioned and the app worked with the chat feature.
But now the issue is, the site will only work for somw time and then it becomes unresponsive. When i go to azure portal and restart the app service it works but thats also not garunteed all the time. Im still using the B1 resource for the app service.
Is there anything that can be done to improve the availability and reliability of the deployed website ?
azharamir13
Jun 08, 2023Brass Contributor
Mark answer as like if it helps
Upgrade the App Service Plan: Consider upgrading your App Service Plan to a higher tier with more resources, such as CPU, memory, and network bandwidth. The B1 resource may have limited resources, which could be causing the unresponsiveness. Scaling up to a higher tier can provide more capacity for your application to handle increased traffic or resource demands.
Enable Application Insights: Application Insights is an Azure service that helps monitor and diagnose issues in your web application. Enable Application Insights for your Azure Web App to gain insights into the performance, availability, and usage of your application. It can provide telemetry data, metrics, and logs to help troubleshoot and identify any performance bottlenecks or errors.
Implement Caching: Utilize caching mechanisms, such as in-memory caching or distributed caching, to reduce the load on your backend services and improve response times. Caching can help store frequently accessed data or expensive computations, reducing the need to retrieve or compute them repeatedly.
Upgrade the App Service Plan: Consider upgrading your App Service Plan to a higher tier with more resources, such as CPU, memory, and network bandwidth. The B1 resource may have limited resources, which could be causing the unresponsiveness. Scaling up to a higher tier can provide more capacity for your application to handle increased traffic or resource demands.
Enable Application Insights: Application Insights is an Azure service that helps monitor and diagnose issues in your web application. Enable Application Insights for your Azure Web App to gain insights into the performance, availability, and usage of your application. It can provide telemetry data, metrics, and logs to help troubleshoot and identify any performance bottlenecks or errors.
Implement Caching: Utilize caching mechanisms, such as in-memory caching or distributed caching, to reduce the load on your backend services and improve response times. Caching can help store frequently accessed data or expensive computations, reducing the need to retrieve or compute them repeatedly.
- ananthurajJun 13, 2023Copper ContributorI did try out all the methods and still the same issue persists. The site works at times and when its left to idle it wont work again.
- azharamir13Jun 15, 2023Brass Contributoris there any error you have noticed, any logs, please share
- ananthurajJun 16, 2023Copper Contributor
azharamir13 It seems to be orginating from network configuration/routing issues. This is shown when the chat fucntionality is attempted on the deployed site.
- ananthurajJun 08, 2023Copper ContributorI ll try these out and update.