# How to change the number of unicorns?

**URL:** <https://meta.discourse.org/t/how-to-change-the-number-of-unicorns/211732>\
**Category:** Self-hosting\
**Created:** [December 10, 2021, 1:51pm UTC](https://meta.discourse.org/t/how-to-change-the-number-of-unicorns/211732 "2021-12-10T13:51:24Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [December 10, 2021, 6:58pm UTC](https://meta.discourse.org/t/how-to-change-the-number-of-unicorns/211732/3 "2021-12-10T18:58:56Z")

</div>

> [@Steven](#):
>
> then you indeed have to rebuild discourse to use the new settings,

I think, but I haven’t tested, that the `UNICORN_WORKERS` is set in an env and not in any config file, so you don’t need to rebuild but can just

```
 ./launcher destroy app;./launcher start app

```

I’m pretty sure (but haven’t looked) that changes to `db_shared_buffers` to require a rebuild (or you could go an edit the corresponding settings file inside the container and then restart it).

---

_[View the full topic](https://meta.discourse.org/t/how-to-change-the-number-of-unicorns/211732)._
