Replies: 4 comments 6 replies
-
Hello, looks like you are needed a EC2LatentWorker, not a GenericLatentMachine most of the infrastructure is there for authentication and stuff That said, I am not sure if reusing the instance will really matter actually even for Mac instances. I would tweak the latent worker build wait timeout in order to keep the machine alive for 24 hours This means the machine will stay up until there is 24 hours of inactivity. |
Beta Was this translation helpful? Give feedback.
-
As I read the EC2 documentation, every new Mac instance needs to run for at least 24 hours to meet the license conditions. So if I want to run a nightly build I would have instances running permanently. But I could reuse the same instance forever and keep it suspended when not in use. Hence my question, can I use the code for a latent machine and is there any documentation/example? Alternatively I might use a Mac on premises but I would like to wake it up when required. The latent machine code hints at this approach too. |
Beta Was this translation helpful? Give feedback.
-
Are there any concrete examples of using the LocalWakeAction, LocalWOLAction, RemoteSshWakeAction etc that are defined in machine/generic.py? There's an IMachineAction interface that these classes implement but no consumers of them that I see. |
Beta Was this translation helpful? Give feedback.
-
Would it be possible to have a simple latent worker that took a shell command to run to start and stop the worker? With that one could wake another machine and ssh in to start/stop a service, or start a VM or use the awscli to start/stop an existing ec2 instance etc. |
Beta Was this translation helpful? Give feedback.
-
I would like to have a worker running on a machine which is suspended and resumed on demand. I see there is some code from @p12tic in machine/ which looks relevant, like
GenericLatentMachine
, but I couldn't find any documentation or concrete examples of how to use it.What I'd actually like to do is have an EC2 instance which is suspended and resumed as required. The latent workers provided with Buildbot all create new instances from a template (eg EC2 AMI) each time they start, but this doesn't suit an AWS EC2 Mac instance, which has a minimum runtime of 24 hours. So I would like to create an EC2 instance myself but have it shutdown when not required to save costs.
Beta Was this translation helpful? Give feedback.
All reactions