templates/ecs-cluster.rb in ciinabox-ecs-0.3.1 vs templates/ecs-cluster.rb in ciinabox-ecs-0.3.2.alpha.1622701697
- old
+ new
@@ -188,9 +188,11 @@
"#!/bin/bash\n",
"echo ECS_CLUSTER=", Ref('ECSCluster'), " >> /etc/ecs/ecs.config\n",
"echo ECS_ENABLE_TASK_CPU_MEM_LIMIT=false >> /etc/ecs/ecs.config\n",
"INSTANCE_ID=$(echo `/opt/aws/bin/ec2-metadata -i | cut -f2 -d:`)\n",
"PRIVATE_IP=`/opt/aws/bin/ec2-metadata -o | cut -f2 -d: | cut -f2 -d-`\n",
+ "echo 'vm.max_map_count=262144' >> /etc/sysctl.conf\n",
+ "sysctl -p\n",
"hostname ciinabox-ecs-xx\n",
"#{proxy_config_userdata}",
"yum install -y python-pip\n",
"aws --region ", Ref("AWS::Region"), " ec2 attach-volume --volume-id ", Ref(volume_name), " --instance-id ${INSTANCE_ID} --device /dev/sdf\n",
"echo 'waiting for ECS Data volume to attach' && sleep 20\n",