All-Hands-AI / OpenHands

🙌 OpenHands: Code Less, Make More
https://all-hands.dev
MIT License
37.37k stars 4.23k forks source link

feat(runtime): Set server process to run with highest system priority #5206

Closed xingyaoww closed 2 days ago

xingyaoww commented 3 days ago

This PR modifies the server startup command to:

This ensures the server process runs with maximum priority and is one of the last processes to be killed by the OOM killer.


To run this PR locally, use the following command:

docker run -it --rm   -p 3000:3000   -v /var/run/docker.sock:/var/run/docker.sock   --add-host host.docker.internal:host-gateway   -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:7bd12a9-nikolaik   --name openhands-app-7bd12a9   docker.all-hands.dev/all-hands-ai/openhands:7bd12a9