# How to schedule containers with multi AZ High Availability?

**URL:** <https://forums.suse.com/t/how-to-schedule-containers-with-multi-az-high-availability/2670>\
**Category:** Rancher 1.x\
**Created:** [May 3, 2016, 9:47am UTC](https://forums.suse.com/t/how-to-schedule-containers-with-multi-az-high-availability/2670 "2016-05-03T09:47:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashish\_Gupta](https://avatars.discourse-cdn.com/v4/letter/a/eb9ed0/32.png) [@Ashish\_Gupta](https://forums.suse.com/u/Ashish_Gupta)\
**Post date:** [May 3, 2016, 9:47am UTC](https://forums.suse.com/t/how-to-schedule-containers-with-multi-az-high-availability/2670/1 "2016-05-03T09:47:05Z")

</div>

I have 6 instances running on AWS with 2 instances on each availability zone, so I have 6 hosts in my rancher Dashboard, with labels:  
**az:us-west-2a** (key:value) - 2 instances  
**az:us-west-ab** (key:value) - 2 instances  
**az:us-west-2c** (key:value) - 2 instances

**My use case is** , I am running a service with 3 containers and I want to schedule it in such a way that at least one container should run on each availability zone i.e.

one container should run on one of the instance having label **az:us-west-2a** (key:value)  
one container should run on one of the instance having label **az:us-west-2b** (key:value)  
one container should run on one of the instance having label **az:us-west-2c** (key:value)

---

<div class="post-metadata">

**Author:** ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)\
**Post date:** [May 5, 2016, 11:27pm UTC](https://forums.suse.com/t/how-to-schedule-containers-with-multi-az-high-availability/2670/2 "2016-05-05T23:27:36Z")

</div>

At this time, I don’t believe this is possible.

You can make sure that not all 3 containers are scheduled onto the same host, but with our existing scheduling rules, I can’t think of a way to distribute between the 3 zones.

You could create an issue for Github for this use case.

---

<div class="post-metadata">

**Author:** ![Ashish\_Gupta](https://avatars.discourse-cdn.com/v4/letter/a/eb9ed0/32.png) [@Ashish\_Gupta](https://forums.suse.com/u/Ashish_Gupta)\
**Post date:** [May 6, 2016, 2:28am UTC](https://forums.suse.com/t/how-to-schedule-containers-with-multi-az-high-availability/2670/3 "2016-05-06T02:28:44Z")

</div>

Thanks for your reply Denise, Here is the github issue link for reference: [https://github.com/rancher/os/issues/913](https://github.com/rancher/os/issues/913)

---

<div class="post-metadata">

**Author:** ![Matt\_Welch](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Matt\_Welch](https://forums.suse.com/u/Matt_Welch)\
**Post date:** [May 11, 2016, 6:08pm UTC](https://forums.suse.com/t/how-to-schedule-containers-with-multi-az-high-availability/2670/4 "2016-05-11T18:08:05Z")

</div>

This is unfortunate. Are there any manual workarounds?

---

<div class="post-metadata">

**Author:** ![Yan\_Yin](https://avatars.discourse-cdn.com/v4/letter/y/5f8ce5/32.png) [@Yan\_Yin](https://forums.suse.com/u/Yan_Yin)\
**Post date:** [June 28, 2016, 8:30am UTC](https://forums.suse.com/t/how-to-schedule-containers-with-multi-az-high-availability/2670/5 "2016-06-28T08:30:21Z")

</div>

this is a deadly needed feature in production AWS environment, would like to see it implemented as soon as possible.

---

<div class="post-metadata">

**Author:** ![alex88](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/alex88/32/105_2.png) [@alex88](https://forums.suse.com/u/alex88)\
**Post date:** [July 12, 2016, 5:13pm UTC](https://forums.suse.com/t/how-to-schedule-containers-with-multi-az-high-availability/2670/6 "2016-07-12T17:13:14Z")

</div>

how can you do that? (make sure they’re not scheduled on the same host?)
