In a Multi-container Docker environment in Elasticbeanstalk, defining the memory is mandatory in the Dockerrun.aws.json and I would like to know what are the best practices to to deal with the hardcoded values of the memory.
Especially when we need to adjust the instance type we need to adjust the memory values as well.
Is there a way to specify a sort of percentage instead of exact numbers ?? Maybe a suggestion for @aws
This is a Dockerrun.aws template example:
{
"AWSEBDockerrunVersion": 2,
"containerDefinitions": [
{
"name": "container-1",
"image": "image-1.com/image-xxxxxx",
"memory": 512
},
{
"name": "container-2",
"image": "image-2.com/image-xxxxxx",
"memory": 256
},
{
"name": "container-3",
"image": "image-3.com/image-xxxxxx",
"memory": 256
}
]
}