简体   繁体   中英

Azure WebApp and docker-compose in Linux

I have a WebApp that runs in Linux Service Plan as docker-compose. My config is:

version: '3'
networks:
  my-network:
    driver: bridge
services:
  web-site:
    image: server.azurecr.io/site/site-production:latest
    container_name: web-site
    networks:
      - my-network
  nginx:
    image: server.azurecr.io/nginx/nginx-production:latest
    container_name: nginx
    ports:
      - "8080:8080"
    networks:
      - my-network

And I realize that my app is sometimes freezing for a while (usually less than 1 minute) and when I get to check on Diagnose (Linux - Number of Running Containers per Host) I can see this:

容器

How could it be possible to have 20+ containers running?

Thanks.

I've created a new service plan (P2v2) for my app (and nothing else) and my app (which has just two containers - .net 3.1 and nginx) and it shows 4 containers... but this is not a problem for me... at all...

The problem I've found in Application Insigths was about a method that retrieves a blob to serve an image... blobs are really fast for uploads and downloads but they are terrible for search... my method was checking if the blob exists before sending it to api and this (assync) proccess was blocking my api responses... I just removed the check and my app is running as desired (all under 1sec - almost all under 250ms reponse).

Thanks for you help.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM