screen spot
I am running a script in a
screen
in a Spot instance. If the instance stops, when it gets available again, is there a way to make the script run again?2 Replies
Also, how long are Spot instance usually be down for?
1. Don't use spot instances unless you have very short running tasks. GPU demand is too high and you will lose your spot instance very quickly so I don't recommend using them at all.
2. They will be down forever if someone outbids you. You have to put in another bid to outbid the other person to get it back again.
3. There is no way to make the script run again when you put in a new bid to get the pod back again unless you build it into your Docker image or override the docker start command.