# Global scheduling?

**URL:** <https://forums.suse.com/t/global-scheduling/5785>\
**Category:** General\
**Created:** [March 8, 2017, 6:11pm UTC](https://forums.suse.com/t/global-scheduling/5785 "2017-03-08T18:11:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![stormerider](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/stormerider/32/1784_2.png) [@stormerider](https://forums.suse.com/u/stormerider)\
**Post date:** [March 8, 2017, 6:11pm UTC](https://forums.suse.com/t/global-scheduling/5785/1 "2017-03-08T18:11:43Z")

</div>

Is there a way to specify that a normal service (user stack) can be scheduled as a global service (ie, one on each host)? When I had tcp port mappings in place this was the behavior, but when I removed that I’ve seen some cases where a scale of 3 actually landed all of the containers on the same host, which doesn’t help for high availability. (Especially considering that that host is the Rancher server, so if it goes down, there’s no mechanism that will spin it up on another host.) I also noticed that my loadbalancer stack has 2 containers on one host and 1 on another instead of 1 on each of the 3 nodes.

---

<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:** [March 8, 2017, 8:25pm UTC](https://forums.suse.com/t/global-scheduling/5785/2 "2017-03-08T20:25:10Z")

</div>

![](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/d/d1bfd626797bb54adb3dfa0e7619b6a6f4694efc.png)

You can limit that to ones that meet other requirements in the Scheduling tab below there.

---

<div class="post-metadata">

**Author:** ![sjiveson](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/sjiveson/32/966_2.png) [@sjiveson](https://forums.suse.com/u/sjiveson)\
**Post date:** [March 8, 2017, 8:36pm UTC](https://forums.suse.com/t/global-scheduling/5785/3 "2017-03-08T20:36:12Z")

</div>

If you’re using compose, use this label;

```
service_name:
  labels:
    io.rancher.scheduler.global: 'true'

```

More info here: [https://docs.rancher.com/rancher/v1.4/en/cattle/scheduling/](https://docs.rancher.com/rancher/v1.4/en/cattle/scheduling/)

---

<div class="post-metadata">

**Author:** ![stormerider](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/stormerider/32/1784_2.png) [@stormerider](https://forums.suse.com/u/stormerider)\
**Post date:** [March 8, 2017, 10:14pm UTC](https://forums.suse.com/t/global-scheduling/5785/4 "2017-03-08T22:14:52Z")

</div>

Ok, so that needs to be done at service creation, then, it’s not an option available when upgrading?

---

<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:** [March 9, 2017, 3:27am UTC](https://forums.suse.com/t/global-scheduling/5785/5 "2017-03-09T03:27:10Z")

</div>

Correct, you cannot change the global-ness of an existing service (for some technically good reason that I can’t think of right now).
