Posted On: Aug 17, 2023
Amazon Fargate now supports Process ID (PID) namespace sharing and kernel parameter configuration (sysctl) for applications orchestrated by Amazon ECS in the Amazon Web Services China (Beijing)Region, operated by Sinnet, and in the Amazon Web Services China (Ningxia) Region, operated by NWCD. You can now configure the pidMode and the sysctl parameters in your ECS task definition for tasks running on Fargate.
pidMode allows you to share PID namespace with other containers in the task. Only pidMode=task is supported on Fargate. When process namespace sharing is enabled, cooperating containers, such as monitoring sidecars, can access information about other containers running in the same task.
Sysctl configuration allows you to have fine grained control on your application's kernel parameters. This enables you to optimize the kernel's behavior to your application's specific needs. The list of configurable sysctls include: net.*, fs.mqueue.*, kernel.msgmax, kernel.msgmnb, kernel.msgmni, kernel.sem, kernel.shmall, kernel.shmmax, kernel.shmmni, and kernel.shm_rmid_forced. For instance, you can now configure net.ipv4.tcp_keepalive_time setting to maintain longer lived connections for an application running on Fargate.
To learn more, visit the Amazon ECS Task Definition Parameters documentation. To learn more about Amazon ECS, visit our product page.