【Ray使用环境】生产/测试/POC
测试DEMO
#include<ray/api.h>
int Plus(int x, int y) {return x + y;}
RAY_REMOTE(Plus);
int main()
{
ray::init();
auto object = ray::Plus(100);
auto put_get = *(ray::Get(object));
std::cout << "put_get = " << put_get << std::endl;
ray::Shutdowm();
return 0;
}
出现问题:
terminal 信息:
logging.cc:361: ***** SIGABRT received at time=1675389650 on cpu 120 ***
gcs_server.out 信息:
Reporting worker exit, exit_type = SYSTEM_ERROR, exit_detail = Worker unexpectedly exits with a connection error code 2. End of file. There are some potential root causes.(1)The process is killed by SIGKILL by OOM killer due to high memory usage. (2) ray stop --force is called.(3) The worker is crashed unexpectedly due to SIGSEGV or other unexpected errors…
free -h 信息:
total used free shared buff/cache available
Mem: 1.0Ti 4.9Gi 996Gi 2.1Gi 3.2Gi 993Gi
Swap: 4.0Gi 0B 4.0Gi