i'm trying set docker container aws' ecs service. reserve ports 30000 - 60000 on host machine , map ports 30000 - 60000 on container. aws documentation, however, states 100 ports may reserved on host:
http://docs.aws.amazon.com/amazonecs/latest/developerguide/task_definition_parameters.html
can explain why there's limit/suggest workarounds?
i'm pretty sure 100 port limit due the way docker maps ports.
docker launches go process per mapped port use 4-6mb of private memory. @ 100 ports, docker processes consuming around 500mb of memory.
if try , map 30000 - 60000 port container need ~ 150gb of memory. 300gb if want both udp , tcp.
if have use many ports need start looking @ using --net=host
, bridging or mapping interfaces directly container. unlikely supported ecs (on ec2, had take "real" mac address vpc interface , put on containers interface).
Comments
Post a Comment