Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
895 views
in Technique[技术] by (71.8m points)

multiple containers deployment in azure container group

I want to deploy multiple containers inside the azure container instances. I checked the limit for Number of containers per container group 60 but the compute and storage limits are as follows:

for example in Japan east max cpu 2 and max memory is 8GB

how can we deploy multiple containers in a container group with such limits on cpu and memory?

question from:https://stackoverflow.com/questions/66058652/multiple-containers-deployment-in-azure-container-group

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I have checked here and yes, that's right:

https://docs.microsoft.com/en-us/azure/container-instances/container-instances-region-availability

Have a try how the containers work asynchronously and what the requirements of a container instance are. Describe these inside the docker-compose.yaml under deploy section and try deploying to the group. Note that containers are designed for minimal units or services. You should monitor the performance once deployed - use Azure Monitor to get the exact usage metrics. I believe the deployments will fail if there are not enough resources available for the next containers deployed:

deploy: resources: limits: memory: 4g


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...