Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I've deployed my python flask application on azure container instance with docker compose. I managed to deploy it successfully but I'm observing the performance of the application is super slow and it's taking 4-5 seconds every api is responding. When I deployed this application on a VM it is working as expected but on ACI, I don't know why it's so slow and how to tune the performance.
Following is my docker compose file for my application

What I have tried:

version: '3'
services:
  api:
    image: xyz.azurecr.io/xyzapi # image from azure container registry
    container_name: xyzapi
    domainname: service 
     
    build:
      context: .
      dockerfile: Dockerfile
    ports:
      - "80:80"
    command: sh start_prod.sh
    # assigning 4 core cpu and 8gb RAM to the container instance
    deploy:
      resources:
        reservations:
          cpus: '4'
          memory: 8G


Any help really appreciated.
Thanks
Posted
Updated 3-Jan-22 0:09am
v2
Comments
[no name] 3-Jan-22 11:37am    
MS gives you the ability to configure your own VM; for better or for worse.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900