<p>Im new to docker and am wanting to accomplish something but I am unsure on how to Orchestrate my docker containers to do this.</p>

<p>What I want to do:</p>

<p>I have an API that in simple does a calculation from a requested file. It loads the file (around 80mb) from disk to memory then keep it in memory for 2 hours (caching). </p>

<p>Im wanting to have an architecture where for example when the container gets overwhelmed with requests a new one fires up, and when the original container frees its memory and the requests slow down then the container shuts down.</p>

<p>Is Memory and CPU Container Orchestration possible? </p>

<p>Thank You,</p>

<p>/Jeremy</p>

Jeremy Ruffell
<p>Docker itself is <strong>not dedicated to the orchestration</strong> multiple containers. You need to use some container orchestration environment. The most popular are <strong>Kubernetes</strong>, <strong>Docker Swarm</strong>, and <strong>Apache Mesos</strong>. Or if you want to run in the Cloud, then some vendor-specific, like <strong>AWS ECS</strong>.</p>

<p><a href="https://devopscube.com/docker-container-clustering-tools/" rel="nofollow noreferrer">Here</a>'s a good list of container clustering toolkit.</p>

<p>In <strong>all these environments</strong> it's possible to configure what you described. If you're completely new to the topic, then I recommend installing <strong>Docker-for-Desktop</strong> which comes with built-in Kubernetes and play with that in your local.</p>
