Patent attributes
One embodiment provides a computer implemented method, including: receiving an application to be deployed on a container-based environment; obtaining a specification for the application including information regarding a portion of the application contained within a given container; extracting portion information corresponding to connections between different portions of the application and interferences between different portions of the application; identifying affinity indicators and anti-affinity indicators for the portions of the application, wherein the affinity indicators are based upon the connections between different portions of the application and wherein the anti-affinity indicators are based upon the interferences between different portions of the application; and constructing affinity rules and anti-affinity rules for the containers by combining the affinity indicators to construct affinity rules and combining the anti-affinity indicators to construct anti-affinity rules.