# Cpu\_quota in dockercompose.yml is missing after creating stack through Rancher API

**URL:** <https://forums.suse.com/t/cpu-quota-in-dockercompose-yml-is-missing-after-creating-stack-through-rancher-api/3008>\
**Category:** Rancher 1.x\
**Created:** [June 3, 2016, 12:37am UTC](https://forums.suse.com/t/cpu-quota-in-dockercompose-yml-is-missing-after-creating-stack-through-rancher-api/3008 "2016-06-03T00:37:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![masterid](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/masterid/32/1396_2.png) [@masterid](https://forums.suse.com/u/masterid)\
**Post date:** [June 3, 2016, 12:37am UTC](https://forums.suse.com/t/cpu-quota-in-dockercompose-yml-is-missing-after-creating-stack-through-rancher-api/3008/1 "2016-06-03T00:37:54Z")

</div>

In my dockercompose.yml, I specified:  
`mem_limit: 256000000 memswap_limit: 1000000000 cpu_quota: 20000`  
After I create the stack, only `mem_limit: 256000000` left. All of the other setups are missing.

Why? A bug?

---

<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 6, 2016, 11:28pm UTC](https://forums.suse.com/t/cpu-quota-in-dockercompose-yml-is-missing-after-creating-stack-through-rancher-api/3008/2 "2016-06-06T23:28:01Z")

</div>

It is definitely a bug.

For the `memswap_limit`, it’s set in the API but it’s not being exported in the yaml.

For the `cpu_quota`, it doesn’t look like it’s in the API as something that can be set for a service/container. The `cpu_quota` is already covered in this Github issue as something that needs to be added.

> <https://github.com/rancher/rancher/issues/4708>
