# What is the minimum compute (CPU/RAM) requirement for mediasoup?

**URL:** https://mediasoup.discourse.group/t/what-is-the-minimum-compute-cpu-ram-requirement-for-mediasoup/2554
**Category:** Deployment & Scalability
**Created:** [March 10, 2021, 3:11pm UTC](https://mediasoup.discourse.group/t/what-is-the-minimum-compute-cpu-ram-requirement-for-mediasoup/2554 "2021-03-10T15:11:42Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Daajust](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/daajust/32/822_2.png) [@Daajust](https://mediasoup.discourse.group/u/Daajust)
#### Post date: [March 10, 2021, 3:11pm UTC](https://mediasoup.discourse.group/t/what-is-the-minimum-compute-cpu-ram-requirement-for-mediasoup/2554/1 "2021-03-10T15:11:43Z")

</div>

Given this [this shortage of memory issue](https://mediasoup.discourse.group/t/make-fails-on-aws-lightsail/236/5), I’m curious what is the least memory required to successfully make and run a mediasoup server.

---

<div class="post-metadata">

### Author: ![nazar-pc](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/nazar-pc/32/369_2.png) [@nazar-pc](https://mediasoup.discourse.group/u/nazar-pc)
#### Post date: [March 10, 2021, 11:23pm UTC](https://mediasoup.discourse.group/t/what-is-the-minimum-compute-cpu-ram-requirement-for-mediasoup/2554/2 "2021-03-10T23:23:02Z")

</div>

You can totally run it with 512M of RAM, as for building, does it matter much?  
Your build environment will most probably not be the same as production environment where you run the thing, so having 1G or more of RAM in build environment is not a luxury.

---

<div class="post-metadata">

### Author: ![Daajust](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/daajust/32/822_2.png) [@Daajust](https://mediasoup.discourse.group/u/Daajust)
#### Post date: [March 11, 2021, 5:41am UTC](https://mediasoup.discourse.group/t/what-is-the-minimum-compute-cpu-ram-requirement-for-mediasoup/2554/3 "2021-03-11T05:41:58Z")

</div>

Thanks for the response Nazar.

> [@nazar-pc](#):
>
> Your build environment will most probably not be the same as production environment where you run the thing

I’m not sure how to achieve building and running in separate environments. I thought all the C/C++ stuff need to be present on the running machine. Do you mean somehow bundling the entire node\_modules to production (ec2 for example)? Or maybe I just don’t understand it.

---

<div class="post-metadata">

### Author: ![savsoft](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@savsoft](https://mediasoup.discourse.group/u/savsoft)
#### Post date: [March 11, 2021, 1:06pm UTC](https://mediasoup.discourse.group/t/what-is-the-minimum-compute-cpu-ram-requirement-for-mediasoup/2554/4 "2021-03-11T13:06:08Z")

</div>

I am running mediasoup v2 for broadcasting to 270 users.  
Sharing server stats:  
Application hosted on digitalocean server (cpu optimized type server) with 4 vCore and 8 GB RAM.  
CPU and RAM is not consuming more than 50%.  
In broadcasting, i am facing issue of outbound bandwidth.  
Digitalocean provides max stable outbound bandwidth is 300 Mbps which restricts me to upto 270 users.  
Publishing 1280x720 video - vp8.
