SOLVED
Home

Container Instance CPU setting

%3CLINGO-SUB%20id%3D%22lingo-sub-143512%22%20slang%3D%22en-US%22%3EContainer%20Instance%20CPU%20setting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-143512%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECan%20the%20number%20of%20CPU%20cores%20for%20a%20container%20be%20a%20decimal%20value%2C%20for%20instance%200.1%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWerner.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-143512%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ECompute%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EContainers%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ECPU%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-148662%22%20slang%3D%22en-US%22%3ERe%3A%20RE%3A%20Container%20Instance%20CPU%20setting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-148662%22%20slang%3D%22en-US%22%3E%3CP%3EGot%20your%20point!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYes%2C%20for%20your%20scenario%2C%20it%20sound%20better%20to%20run%20it%20in%20some%20sort%20of%20downscaled%20VM%20environment.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAzure%20Container%20Instance%20is%20also%20billed%20for%20each%20second%20it%20runs%2C%20so%20if%20you%20need%20something%20that%20lays%20around%20and%20process%20data%20constantly%2C%20it%20would%20get%20rather%20costly%20compared%20with%20the%20cheapest%20VMs.%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fpricing%2Fdetails%2Fcontainer-instances%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fpricing%2Fdetails%2Fcontainer-instances%2F%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EA%20quick%20guestimate%20would%20look%20like%20this%20for%201%20CPU%20and%201%20GB%20RAM%20(24hrs)%3C%2FP%3E%0A%3CP%3EACI%3A%20%242.16%3C%2FP%3E%0A%3CP%3EVM%20(B1S)%3A%20%240.312%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fpricing%2F%23explore-cost%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fpricing%2F%23explore-cost%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EEdit%3A%20Tried%20to%20fix%20some%20formating%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-148655%22%20slang%3D%22en-US%22%3ERE%3A%20Container%20Instance%20CPU%20setting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-148655%22%20slang%3D%22en-US%22%3EHi%20Anders%2C%20Thanks%20for%20your%20reply.%20I%20think%20you%20can%20run%20more%20applications%20in%20Docker%20containers%20on%20a%20system%20than%20there%20are%20cores%2C%20especially%20when%20those%20applications%20are%20microservices.%20At%20the%20moment%20I%20run%20Mesos%2FMarathon%20on%20a%20VM%20with%204%20cores%20on%20Azure.%20It%20runs%2025%20Docker%20containers%2C%20which%20each%20use%200.1%20CPUs.%20That%20works%20fine%2C%20because%20CPUs%20can%20run%20a%20lot%20of%20processes.%20This%20would%20require%2025%20cores.%20I%20conclude%20that%20this%20service%20is%20not%20for%20small%20set-ups%2C%20because%20they%20can't%20saturate%20the%20CPU%20cores%20sufficiently.%20Best%20regards%2C%20Werner.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-148625%22%20slang%3D%22en-US%22%3ERe%3A%20Container%20Instance%20CPU%20setting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-148625%22%20slang%3D%22en-US%22%3EHi%20Werner!%3CBR%20%2F%3E%3CBR%20%2F%3EYou%20cannot%20use%20decimal%20values%20when%20defining%20the%20number%20of%20CPUs%20on%20a%20Azure%20Container%20Instance.%3CBR%20%2F%3E%3CBR%20%2F%3ECan%20I%20ask%20why%20you%20would%20want%20to%20use%20only%20one%20tenth%20of%20a%20CPU%20core%3F%3CBR%20%2F%3E%3CBR%20%2F%3E%2FAnders%3CBR%20%2F%3E%3CBR%20%2F%3E%2FAnders%20Eide%3C%2FLINGO-BODY%3E
Highlighted
Werner Donné
New Contributor

Hello,

 

Can the number of CPU cores for a container be a decimal value, for instance 0.1?

 

Best regards,

 

Werner.

3 Replies
Highlighted
Hi Werner!

You cannot use decimal values when defining the number of CPUs on a Azure Container Instance.

Can I ask why you would want to use only one tenth of a CPU core?

/Anders

/Anders Eide
Highlighted
Hi Anders, Thanks for your reply. I think you can run more applications in Docker containers on a system than there are cores, especially when those applications are microservices. At the moment I run Mesos/Marathon on a VM with 4 cores on Azure. It runs 25 Docker containers, which each use 0.1 CPUs. That works fine, because CPUs can run a lot of processes. This would require 25 cores. I conclude that this service is not for small set-ups, because they can't saturate the CPU cores sufficiently. Best regards, Werner.
Highlighted
Solution

Got your point!

 

Yes, for your scenario, it sound better to run it in some sort of downscaled VM environment.

 

Azure Container Instance is also billed for each second it runs, so if you need something that lays around and process data constantly, it would get rather costly compared with the cheapest VMs. https://azure.microsoft.com/en-us/pricing/details/container-instances/

 

A quick guestimate would look like this for 1 CPU and 1 GB RAM (24hrs)

ACI: $2.16

VM (B1S): $0.312

 

https://azure.microsoft.com/en-us/pricing/#explore-cost

 

Edit: Tried to fix some formating

Related Conversations