I am using the AWS EC2 task defintions to run a docker container on a aws ecs cluster. The issue i am having is that i would like to set the vm.nr_hugepages value to 1280 for the host system.
AWS has included to option to add system controls to the task definition thus letting you change certain system values. https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#container_definition_systemcontrols
I have succeeded in adding the system controls to the task definition but AWS returns the following error when i try to create the task.
Unable to create Task Definition The 'systemControls' namespace vm.nr_hugepages must start with ipc prefix 'fs.mqueue.' or network prefix 'net.' or be one of: [kernel.msgmax, kernel.msgmnb, kernel.msgmni, kernel.sem, kernel.shmall, kernel.shmmax, kernel.shmmni, kernel.shm_rmid_forced]'. Change the value and try again.
I am not very familiar with the linux kernel settings so i am unsure if i am doing something wrong or if this just not possible, does anyone know?
I am using a custom docker image based on alpine 3.7