Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-61914

Add launch method to start/stop existing EC2 instance

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major Major
    • ec2-plugin
    • None
    • Jenkins 2.222.1

      The ec2-plugin currently allow to spawn on demand nodes when the load is increasing and to stop or terminate them when not needed anymore. These instances are spawned by providing an AMI in the cloud node feature.

       

      In the case that you would like to use existing EC2 instances as regular nodes (not through cloud nodes) there is no option to delegate the ec2 start/shutdown of these instances to the Jenkins master.

       

      Adding a new launch method "ec2 controlled" with the ID of the instance(s) as a parameter would allow us to get rid of the AMI config and only provide existing IDs as Ec2 slave nodes.

      This is useful when you have instances with lots of enterprise tools config on it which can't be automatically integrated in the enterprise global installed base for example.

       

      Basically this feature is just to add a launch method that would be able to start or stop ec2 instance when required or idle (instead of just stopping the jenkins agent process and let the instance in a running state).

          [JENKINS-61914] Add launch method to start/stop existing EC2 instance

          Michal Turecki added a comment - - edited

          larkoie, Have you found a solution to the problem which would be solved by the proposed feature? I must say I assumed it was possible to start an existing EC2 instance instead of launching AMI to i.e. run build or tests, especially since I need to use Windows instance which is costly to orchestrate from the image due to EBS device size, even with the new option to optimize start.

          Maybe there is a way to hook into jenkins node demand request and run a command there (using a plugin) and similarily hook into a node no longer in use notification, to shut it down?

          Michal Turecki added a comment - - edited larkoie , Have you found a solution to the problem which would be solved by the proposed feature? I must say I assumed it was possible to start an existing EC2 instance instead of launching AMI to i.e. run build or tests, especially since I need to use Windows instance which is costly to orchestrate from the image due to EBS device size, even with the new option to optimize start. Maybe there is a way to hook into jenkins node demand request and run a command there (using a plugin) and similarily hook into a node no longer in use notification, to shut it down?

          Luiz added a comment -

          Is there any update on this topic? This must be very useful.

          Luiz added a comment - Is there any update on this topic? This must be very useful.

            thoulen FABRIZIO MANFREDI
            larkoie Larkoie
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: