BACKGROUND

The present invention relates generally to the field of containers, and more particularly to dynamic container grouping.

A container is a standard unit of software that packages up code and all its dependencies so that an application runs quickly and reliably from one computing environment to another. Containers isolate software from its environment and ensure that it works uniformly despite differences for instance between development and staging.

Container orchestration platforms allow users to configure specific rulesets around how containers are scheduled and placed on underlying worker nodes. These rules require prior knowledge of the relationships between various applications.

SUMMARY

Aspects of an embodiment of the present invention disclose a method, computer program product, and computer system for dynamic container grouping. A processor passively monitors a set of parameters for a set of containers within a network. A processor records the set of parameters for each container of the set of containers. A processor deploys a k-nearest neighbor neural network (KNN) to determine a first set of groupings of the set of containers based on the set of parameters. A processor simulates the network having grouped containers based on the first set of groupings of the set of containers output by the KNN. A processor simulates an action on the set of containers. A processor updates a reward function based on the action. A processor determines whether a maximum value of the reward function is reached.

