Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How many CPU cores has a heroku dyno?

I'm using Django with Celery 3.0.17 and now trying to figure out how many celery workers are run by default.

From this link I understand that (not having modified this config) the number of workers must be currently equal to the number of CPU cores. And that's why I need the former. I wasn't able to find an official answer by googling or searching Heroku's dev center. I think it's 4 cores as I'm seeing 4 concurrent connections to my AMQP server, but I wanted to confirm that.

like image 277
jcatalan Avatar asked Apr 09 '13 19:04

jcatalan


People also ask

How much RAM does a heroku dyno have?

Heroku memory limitsfree , hobby , and standard-1X dynos can use 512 MB of memory, while standard-2X dynos have access to 1 GB. performance-M and performance-L dynos provide 2.5 and 14 GB of memory.

What is CPU share in heroku?

“CPU Share” is the differentiator between standard-1x and standard-2x. I believe multiple standard-1x and standard-2x instances are shared on one instance that has 8 CPUs total and 62.91 GB (according to /proc/meminfo ). By looking at /proc/meminfo and /proc/cpuinfo we can find corresponding AWS instances.

How much RAM does heroku have?

Comes with 2.5GB RAM.

Is one dyno enough for heroku?

Heroku provides enough free hours to run a single dyno continuously for a month, but if we need a worker dyno for background processing (most apps do), we will not have enough free dyno hours. Free dynos are for great for demos, experimentation, and perhaps a staging app.


1 Answers

The number of CPUs is not published and is subject to change, but you can find out at runtime by running grep -c processor /proc/cpuinfo.

like image 93
ryanbrainard Avatar answered Oct 16 '22 16:10

ryanbrainard