# Containers per stack limit

**URL:** <https://forums.suse.com/t/containers-per-stack-limit/7911>\
**Category:** Rancher 1.x\
**Created:** [November 28, 2017, 1:05pm UTC](https://forums.suse.com/t/containers-per-stack-limit/7911 "2017-11-28T13:05:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhemrg](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/mhemrg/32/3084_2.png) [@mhemrg](https://forums.suse.com/u/mhemrg)\
**Post date:** [November 28, 2017, 1:05pm UTC](https://forums.suse.com/t/containers-per-stack-limit/7911/1 "2017-11-28T13:05:24Z")

</div>

Hi, thanks for a great product 🙂  
How many containers can I add into a stack? Is there any limit? Like adding 10,000 containers to a single stack.

---

<div class="post-metadata">

**Author:** ![mhemrg](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/mhemrg/32/3084_2.png) [@mhemrg](https://forums.suse.com/u/mhemrg)\
**Post date:** [November 30, 2017, 8:07pm UTC](https://forums.suse.com/t/containers-per-stack-limit/7911/2 "2017-11-30T20:07:49Z")

</div>

I really need the answer.

---

<div class="post-metadata">

**Author:** ![egnoriega](https://avatars.discourse-cdn.com/v4/letter/e/4491bb/32.png) [@egnoriega](https://forums.suse.com/u/egnoriega)\
**Post date:** [November 30, 2017, 9:46pm UTC](https://forums.suse.com/t/containers-per-stack-limit/7911/3 "2017-11-30T21:46:21Z")

</div>

I don’t have the answer you’re looking for but I also don’t quite get the question. Stacks are a set of services. Are you asking the total number of services in a stack (so number of containers each a service), or are you asking about total number of instantiated containers (a couple of services scaled to 10K)?

The latter should work assuming that you have enough resources to run everything.

---

<div class="post-metadata">

**Author:** ![mhemrg](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/mhemrg/32/3084_2.png) [@mhemrg](https://forums.suse.com/u/mhemrg)\
**Post date:** [December 1, 2017, 5:28am UTC](https://forums.suse.com/t/containers-per-stack-limit/7911/4 "2017-12-01T05:28:14Z")

</div>

@egnoriega Thank you for your reply.  
Imagine 10K services that each service scaled to 100. All services are assigned to `managed` network and are on the same stack. Also, imagine I have enough resources. Could Rancher scale enough in this situation?

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [December 1, 2017, 6:46am UTC](https://forums.suse.com/t/containers-per-stack-limit/7911/5 "2017-12-01T06:46:48Z")

</div>

No, no product is going to handle anywhere near a million containers in one environment/cluster/whatever. Docker starts exploding at hundreds per host. K8s defaults to 110 pods per host. Our managed network is a /16 or environment (= 65535 containers), etc.

---

<div class="post-metadata">

**Author:** ![mhemrg](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/mhemrg/32/3084_2.png) [@mhemrg](https://forums.suse.com/u/mhemrg)\
**Post date:** [December 1, 2017, 8:38am UTC](https://forums.suse.com/t/containers-per-stack-limit/7911/6 "2017-12-01T08:38:13Z")

</div>

So what should I do instead? Should I spread the containers between environments? How can I proxy a request to its related service when services and the proxy are on the different networks?
