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.
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.
“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.
Comes with 2.5GB RAM.
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.
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With