# API question : Service upgrade strategy

**URL:** <https://forums.suse.com/t/api-question-service-upgrade-strategy/2770>\
**Category:** Rancher 1.x\
**Created:** [May 12, 2016, 11:04am UTC](https://forums.suse.com/t/api-question-service-upgrade-strategy/2770 "2016-05-12T11:04:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sylvain\_Revereault](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/sylvain_revereault/32/1320_2.png) [@Sylvain\_Revereault](https://forums.suse.com/u/Sylvain_Revereault)\
**Post date:** [May 12, 2016, 11:04am UTC](https://forums.suse.com/t/api-question-service-upgrade-strategy/2770/1 "2016-05-12T11:04:52Z")

</div>

Hi all,

Can anybody tell me the difference between inServiceUpgradeStrategy and toServiceUpgradeStrategy while performing a Service Upgrade through API? Even after reading the API documentation this is not clear to me…

Thanks.

---

<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:** [June 2, 2016, 6:34pm UTC](https://forums.suse.com/t/api-question-service-upgrade-strategy/2770/2 "2016-06-02T18:34:22Z")

</div>

`inServiceUpgradeStrategy` means that you would be creating new containers under the same service name where as `toServiceUpgradeStrategy` would be creating a new service with new containers.

We have some documentation on how it works with rancher-compose, that may help outline the difference. In-service upgrade = `inServiceUpgradeStrategy` and Rolling upgrade = `toServiceUpgradeStrategy`

[http://docs.rancher.com/rancher/v1.2/en/cattle/rancher-compose/upgrading/](http://docs.rancher.com/rancher/v1.2/en/cattle/rancher-compose/upgrading/)

---

<div class="post-metadata">

**Author:** ![Robert\_Lachner](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/robert_lachner/32/1704_2.png) [@Robert\_Lachner](https://forums.suse.com/u/Robert_Lachner)\
**Post date:** [October 14, 2016, 9:27am UTC](https://forums.suse.com/t/api-question-service-upgrade-strategy/2770/3 "2016-10-14T09:27:06Z")

</div>

Unfortunately the link to the docs is dead - 404, maybe it moved ?

---

<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:** [October 14, 2016, 2:37pm UTC](https://forums.suse.com/t/api-question-service-upgrade-strategy/2770/4 "2016-10-14T14:37:28Z")

</div>

@Robert_Lachner I’ve updated the docs link.

Also, included the new one here: [http://docs.rancher.com/rancher/v1.2/en/cattle/rancher-compose/upgrading/](http://docs.rancher.com/rancher/v1.2/en/cattle/rancher-compose/upgrading/)

---

<div class="post-metadata">

**Author:** ![nimboya](https://avatars.discourse-cdn.com/v4/letter/n/839c29/32.png) [@nimboya](https://forums.suse.com/u/nimboya)\
**Post date:** [January 26, 2018, 9:19pm UTC](https://forums.suse.com/t/api-question-service-upgrade-strategy/2770/5 "2018-01-26T21:19:44Z")

</div>

This link still does not work
