-
Notifications
You must be signed in to change notification settings - Fork 220
Dev: New deployment for new Server #226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…Retry error handling
|
Changing from WIP to ready for review. Additional commits are aimed at the following:
@AlbertoCasasOrtiz I know you worked on some of this, but there are enough changes that I think you could still test and review, so I'm adding you as a reviewer. If you think you'd like a different person to review, we could ping Antoine. @antoinefalisse Tagging you here as an FYI for the changes here. If you'd like to give a review since both Alberto and I worked on it, please feel free to do so and add yourself, but no worries if you don't think it's necessary. |
|
Now, it is possible to deploy multiple instances of OpenCap-Core in the same machine by doing:
make run INSTANCE_ID=<id-instance> CPU_SET=<cpu-set>Where:
<id-instance>: An integer number from 0 to max_gpu. Assigns a specific GPU for this instance.<cpu-set>: Set of CPU threads assigned to this instance in the format n-m (e.g., 0-13).Added some helper scripts:
./start-script.sh <n-instances>: Starts n opencap instances, each with 1 GPU assigned and 14 threads (can be changed in code). If an instance is already running, it will not modify it../stop-script.sh <instance-id>: Stops a specific opencap instance./stop-all-script.sh: Stops all instances of opencap.I am working in not doing these parameters mandatory, so if we want to just do
make run, it will automatically assign 1 GPU and no limit on CPU threads.