# Regarding Sanic workers

**URL:** <https://forum.rasa.com/t/regarding-sanic-workers/29358>\
**Category:** Rasa Open Source\
**Created:** [May 27, 2020, 5:49am UTC](https://forum.rasa.com/t/regarding-sanic-workers/29358 "2020-05-27T05:49:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Beherasaptami](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/beherasaptami/32/8005_2.png) [@Beherasaptami](https://forum.rasa.com/u/Beherasaptami)\
**Post date:** [May 27, 2020, 5:49am UTC](https://forum.rasa.com/t/regarding-sanic-workers/29358/1 "2020-05-27T05:49:46Z")

</div>

Hello there , I have some doubts like what is [sanic workers](https://rasa.com/docs/rasa/user-guide/configuring-http-api/) and where we need to do customization

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/1/15a8313f58fe117c7b41e2c876ea68d097ea0af1.png)as you can see the above screenshot what does it exactly means and how can i achieve that …

---

<div class="post-metadata">

**Author:** ![Juste](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/juste/32/15_2.png) [@Juste](https://forum.rasa.com/u/Juste)\
**Post date:** [May 28, 2020, 9:05am UTC](https://forum.rasa.com/t/regarding-sanic-workers/29358/2 "2020-05-28T09:05:59Z")

</div>

Hi @Beherasaptami. By default sanic will listen to the process using only 1 CPU. By increasing the number of workers you can enable your application to use more CPUs and therefore work faster.

You can configure this parameter by setting the environmental variable `SANIC_WORKERS` to a different number than 1. For example, to set it to 2 you can run in your command line:

`export SANIC_WORKERS=2`

---

<div class="post-metadata">

**Author:** ![Serge](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/serge/32/10491_2.png) [@Serge](https://forum.rasa.com/u/Serge)\
**Post date:** [August 18, 2020, 2:10am UTC](https://forum.rasa.com/t/regarding-sanic-workers/29358/3 "2020-08-18T02:10:08Z")

</div>

Hey @Juste Does that comment apply to websocket channel or only to http api?

---

<div class="post-metadata">

**Author:** ![Serge](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/serge/32/10491_2.png) [@Serge](https://forum.rasa.com/u/Serge)\
**Post date:** [November 21, 2020, 12:35pm UTC](https://forum.rasa.com/t/regarding-sanic-workers/29358/4 "2020-11-21T12:35:07Z")

</div>

@juste_petr on the above - should this number be tuned up for production and load testing?

Does it apply to all channels? Websocket, http, slack, twillio, etc?

---

<div class="post-metadata">

**Author:** ![akshayagrawal927](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akshayagrawal927/32/20034_2.png) [@akshayagrawal927](https://forum.rasa.com/u/akshayagrawal927)\
**Post date:** [October 26, 2022, 5:34am UTC](https://forum.rasa.com/t/regarding-sanic-workers/29358/5 "2022-10-26T05:34:19Z")

</div>

hi @Beherasaptami , could you please help me in how to set the number of sanic workers ?
