# Cant scale up service

**URL:** <https://forums.suse.com/t/cant-scale-up-service/1469>\
**Category:** Rancher 1.x\
**Created:** [January 14, 2016, 7:47pm UTC](https://forums.suse.com/t/cant-scale-up-service/1469 "2016-01-14T19:47:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![oyemike](https://avatars.discourse-cdn.com/v4/letter/o/e79b87/32.png) [@oyemike](https://forums.suse.com/u/oyemike)\
**Post date:** [January 14, 2016, 7:47pm UTC](https://forums.suse.com/t/cant-scale-up-service/1469/1 "2016-01-14T19:47:09Z")

</div>

Updated rancher to the 0.51.0 from 0.47.0 with the UI changes, I cant seem to be able to scale up my services. Previously in the old UI, you could just hit the scale up button. Is this still possible via rancher?

---

<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:** [January 14, 2016, 8:11pm UTC](https://forums.suse.com/t/cant-scale-up-service/1469/2 "2016-01-14T20:11:40Z")

</div>

![](https://us1.discourse-cdn.com/flex022/uploads/suse/original/1X/62dc2b3adc5d54e8006d28f0ae24ad261aed61eb.png)

,

 ![](https://us1.discourse-cdn.com/flex022/uploads/suse/original/1X/3df026e061c79ac7bb4f15674ae419ab35d6a965.png)

or

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

---

<div class="post-metadata">

**Author:** ![oyemike](https://avatars.discourse-cdn.com/v4/letter/o/e79b87/32.png) [@oyemike](https://forums.suse.com/u/oyemike)\
**Post date:** [January 15, 2016, 5:16am UTC](https://forums.suse.com/t/cant-scale-up-service/1469/3 "2016-01-15T05:16:14Z")

</div>

Right, looks like the way scaling works has changed. I had my web container scheduled to global and I previously was able to scale up as I pleased. That does not work anymore. This is my configuration below.

`redis:  
labels:  
io.rancher.scheduler.affinity: web  
image: redis:2.8  
privileged: true  
cron-web:  
ports:  
- 443/tcp  
- 80/tcp  
- 8080/tcp  
environment:  
SOME\_ENV\_DETAILS: value  
labels:  
io.rancher.scheduler.affinity:container\_label: co.seeddigital.type=web  
io.rancher.container.pull\_image: always  
command:  
- /run\_cron.sh  
image: seed/myapp\_web:latest  
links:  
- redis:myredis  
privileged: true  
web:  
ports:

- 443/tcp
- 80/tcp
- 8080/tcp  
environment:  
SOME\_ENV\_DETAILS: value  
labels:  
io.rancher.scheduler.global: 'true’  
io.rancher.container.pull\_image: always  
io.rancher.scheduler.affinity:host\_label: env=production  
co.seeddigital.type: web  
image: seed/myapp\_web:latest  
links:
  - redis:myredis  
privileged: true  
lb:  
ports:
  - ‘80’
  - 443:8080  
labels:  
io.rancher.scheduler.global: 'true’  
io.rancher.loadbalancer.ssl.ports: '443’  
image: rancher/load-balancer-service  
links:
  - web:web`

Now I don’t get the ± signs to scale, all I get is `Scale:Global`  
@vincent any help would be much appreciated. Cheers,

---

<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:** [January 15, 2016, 7:52am UTC](https://forums.suse.com/t/cant-scale-up-service/1469/4 "2016-01-15T07:52:53Z")

</div>

Maybe there was some build where they were incorrectly shown or something, but this has never been intentionally true. Global means “run one container on each host that matches the scheduling labels”. If you want more than one per host then you want regular scale with a soft anti-affinity rule to itself (“should not have a container with the label ${stack\_name}/${service\_name}”).

---

<div class="post-metadata">

**Author:** ![oyemike](https://avatars.discourse-cdn.com/v4/letter/o/e79b87/32.png) [@oyemike](https://forums.suse.com/u/oyemike)\
**Post date:** [January 15, 2016, 8:12am UTC](https://forums.suse.com/t/cant-scale-up-service/1469/5 "2016-01-15T08:12:30Z")

</div>

Sorry mate, I don’t get what I am supposed to do here. Change the scheduling rule ?

---

<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:** [January 19, 2016, 4:11am UTC](https://forums.suse.com/t/cant-scale-up-service/1469/6 "2016-01-19T04:11:03Z")

</div>

Yes, you’ll need to change your scheduling rule.

A global scale is meant to launch 1 container on every host. If you add a scheduling rule, we anticipate it to be a hard scheduling rule. There is no concept of using the global scheduling rule to launch containers onto a host that might not have your host label.

If you are looking to spread out your containers in a service across hosts, you’ll have to specify your scale and then use the label that @vincent suggested.

```auto
web:
  labels:
    io.rancher.scheduler.affinity:container_label_soft_ne: io.rancher.stack_service.name=$${stack_name}/$${service_name}

```

---

<div class="post-metadata">

**Author:** ![oyemike](https://avatars.discourse-cdn.com/v4/letter/o/e79b87/32.png) [@oyemike](https://forums.suse.com/u/oyemike)\
**Post date:** [January 20, 2016, 7:21am UTC](https://forums.suse.com/t/cant-scale-up-service/1469/7 "2016-01-20T07:21:47Z")

</div>

Awesome thanks for the info @denise turns out the reason it wasn’t working was we where using `ports` instead of `expose` for our services. Using `ports` meant that web containers where trying to bind to the same port causing conflict.

Thanks guys
