Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How to calculate number of total containers?

avatar
Explorer

How to calculate number of total containers in cluster?

Does it depend on Memory? or VCores ? How can I get the exact number of containers which are available in my cluster.?


1 REPLY 1

avatar
Cloudera Employee

Hi Madhura,

 

The following link may be usefull for your question

https://docs.cloudera.com/HDPDocuments/HDP2/HDP-2.0.6.0/bk_installing_manually_book/content/rpm-chap...

 

For calculating  maximum number of containers allowed per node. The following formula can be used:

# of containers = min (2*CORES, 1.8*DISKS, (Total available RAM) / MIN_CONTAINER_SIZE)

Where MIN_CONTAINER_SIZE is the minimum container size (in RAM). This value is dependent on the amount of RAM available -- in smaller memory nodes, the minimum container size should also be smaller

 

Thanks

AKR