Is there a way to reuse one of the EC2 instances already running or specify resources for the head instance?
Attiq ur-Rehman
Asked on Oct 10, 2023
For managed spot runs, you can specify the resources requirement of the controller in ~/.sky/config.yaml
file. You can set the number of CPUs required for the controller by adding the following configuration:
controller:
resources:
cpus: 4```
To make the configuration take effect, you need to stop the current controller using `sky down sky-spot-controller-<hash>` and then launch it again using `sky spot launch` command. The controller name can be found in the output of `sky status` command.
Additionally, for multiple managed spot jobs, they will reuse the same controller node, so the cost for it is amortized.