amazon web services - AWS ECS running a task that requires many cores -


i conceptually trying understand how use aws ecs run "cluster" jobs.

i have scientific software inside docker container, natively takes advantage of many cores underlying instance has offer.

my question in case is, can use aws ecs "increase" number of "visible" cores task running inside docker container. instance, "cluster" limited single instance? or "cluster" expandable multiple instances?

i haven't been able find answers looking through aws docs.

i had similar situation moving python app used script spawn copies of based on number of cores. answer isn't ecs problem docker best practice... should strive use 1 process per container. (see https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/)

how ended implementing using dockerfile run each process , used essential ecs tasks reload if task died.

your cluster collection of ec2 instances ecs service running. each instance has number of cpu 'units' (typically 1024 units === 1 core) , ram. profiled app @ peak load , tweaked mix until got liked it. if app can use more cpu that, try giving 2048 cpu or other amount , see how performs. used meros (https://meros.io/) profile app.

hope helps!


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -