# Spin up additional sidekiq workers

**URL:** <https://meta.discourse.org/t/spin-up-additional-sidekiq-workers/81707>\
**Category:** Product Support\
**Created:** [February 27, 2018, 8:23pm UTC](https://meta.discourse.org/t/spin-up-additional-sidekiq-workers/81707 "2018-02-27T20:23:07Z")\
**Posts on this page:** 5\
**Page:** 1

## AI-generated summary

[Tomasz136472](/t/-/81707/1) asks for guidance on spinning up additional Sidekiq workers to clear a queue, noting that previous advice is outdated. [sam](/t/-/81707/2) suggests the simplest method is rebuilding Discourse with the environment variable `UNICORN_SIDEKIQS` set to the desired number of workers (e.g., 8). He warns against adding a second `env` section to `app.yml`, advising users to add the line to the existing section instead.

[Tomasz136472](/t/-/81707/3) replies that he has resized his droplet to 16GB RAM with 6 CPUs and increased the number of Sidekiq workers to 12. Although he observes some improvement, he notes that `top` shows only 3 to 5 workers are busy. He shares a screenshot and asks if this level of activity is normal.

<div class="post-metadata">

**Author:** ![Tomasz136472](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tomasz136472/32/85114_2.png) [@Tomasz136472](https://meta.discourse.org/u/Tomasz136472)\
**Post date:** [February 27, 2018, 8:23pm UTC](https://meta.discourse.org/t/spin-up-additional-sidekiq-workers/81707/1 "2018-02-27T20:23:07Z")

</div>

Hi!

Can someone explain to me how to spin up additional workers to clean up a sidekiq queue, please?

I have found an old topic but it does not work with current discourse distribution.

Thank you!

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [February 28, 2018, 2:12am UTC](https://meta.discourse.org/t/spin-up-additional-sidekiq-workers/81707/2 "2018-02-28T02:12:14Z")

</div>

Simplest way is rebuilding Discourse with

```plaintext
env:
   UNICORN_SIDEKIQS: 8 

```

⚠ this will start 8 sidekiqs

🔴 Don’t add 2 `env` sections to your `app.yml` just add the line to existing section.

---

<div class="post-metadata">

**Author:** ![Tomasz136472](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tomasz136472/32/85114_2.png) [@Tomasz136472](https://meta.discourse.org/u/Tomasz136472)\
**Post date:** [February 28, 2018, 4:43pm UTC](https://meta.discourse.org/t/spin-up-additional-sidekiq-workers/81707/3 "2018-02-28T16:43:36Z")

</div>

Thank you for your answer. I have resized my droplet to 16GB 6 CPU, and increased number of sidekiqs to 12. I see improvement but my top shows that only 3 are 5 of 5 busy:

 ![28](https://global.discourse-cdn.com/meta/original/3X/6/6/66edbfb468fff7f87343a62021637a8b67ec140a.png)

Or is it the way it should look like?

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [June 18, 2020, 5:50am UTC](https://meta.discourse.org/t/spin-up-additional-sidekiq-workers/81707/4 "2020-06-18T05:50:18Z")

</div>

Automatically bumped on June 18, 2020, 5:50am UTC



---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [July 18, 2020, 5:50am UTC](https://meta.discourse.org/t/spin-up-additional-sidekiq-workers/81707/5 "2020-07-18T05:50:19Z")

</div>

Closed on July 18, 2020, 5:50am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
