heroku dyno有多少个CPU内核? [英] How many CPU cores has a heroku dyno?

查看:78
本文介绍了heroku dyno有多少个CPU内核?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Django与Celery 3.0.17结合使用,现在试图找出默认情况下运行了多少个芹菜工人。

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

来自此链接我了解(未修改此配置)当前必须有多少工人等于CPU核心数。这就是为什么我需要前者。我无法通过谷歌搜索或搜索 heroku的开发中心来找到正式答案。我认为这是4个核心,因为我看到与AMQP服务器有4个并发连接,但是我想确认一下。

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.

谢谢,

J

推荐答案

CPU的数量尚未发布,可能会有变化,但是您可以找到通过运行 grep -c处理器/ proc / cpuinfo 在运行时退出。

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.

这篇关于heroku dyno有多少个CPU内核?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆