Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/297.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 无法将ray actor部署到heroku上的flask应用程序_Python_Heroku_Ray - Fatal编程技术网

Python 无法将ray actor部署到heroku上的flask应用程序

Python 无法将ray actor部署到heroku上的flask应用程序,python,heroku,ray,Python,Heroku,Ray,尝试使用flask将ray actor部署到heroku时(本地部署工作正常),我收到以下错误消息: ValueError: After taking into account object store and redis memory usage, the amount of memory on this node available for tasks and actors (-25.38 GB) is less than -4727% of total. You can adjust t

尝试使用flask将ray actor部署到heroku时(本地部署工作正常),我收到以下错误消息:

 ValueError: After taking into account object store and redis memory usage, the amount of memory on this node available for tasks and actors (-25.38 GB) is less than -4727% of total. You can adjust these settings with ray.init(memory=<bytes>, object_store_memory=<bytes>).
ValueError:在考虑对象存储和redis内存使用情况后,此节点上可用于任务和参与者的内存量(-25.38 GB)小于总内存量的-4727%。您可以使用ray.init(memory=,object\u store\u memory=)调整这些设置。

我在任何地方都没有看到这个错误,有人知道解决方案是什么吗?=

Hmm Ray会自动检测机器内存,并检查可用内存是否足以运行Ray。看起来Heroku的内存检测逻辑似乎无法正常工作(它说,出于某种原因,您的机器中有-25GB内存?)。你能给我看一下你的ray.init或ray.start命令吗?'ray.init(忽略\u reinit\u error=True,log\u to\u driver=False)'返回:'--启动ray时,工人可用的内存为1.56 GiB,对象最多为0.8 GiB。您可以使用ray.init(内存=,对象存储\内存=)调整这些设置