I have an application installed on a GPU compute EC2 node that does a lot of heavy calculation. I would like to set it up to do the following:
- Send request to GPU EC2 node to run a process.
- If GPU EC2 node is already started, and running a process, wait until that process is finished and run the process from this new request.
- Else Start the GPU EC2 node and run process from new request.
- Once all processing has finished, Stop EC2 node.
I've gotten this working partially by starting/stopping instances through Lambda. I am curious, is there a more automatic, built-in, functionality in AWS to accomplish this?