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

EC2 Plugin using Spot Instances fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: ec2-plugin
    • Labels:
    • Environment:
      Jenkins ver. 2.150.3
      Ubuntu 18.04 Host
      Amazon EC2 plugin 1.42
    • Similar Issues:

      Description

      Hey.

       

      The plugin works perfectly without Spot instances!

      I've tried to use the `Amazon EC2 plugin` with Spot Instances ( m5d.12xlarge ).

      The AMI image was configured correctly as of https://wiki.jenkins.io/display/JENKINS/Amazon+EC2+Plugin steps.

      My jobs needs one Instance based on Label ( linux ).

      The Instance Count Limit is set to 4/this instance and 4/Global.

       

      The problem starts to happen when Jenkins is trying to create a Spot Instance to serve my builds queue.

      In AWS i get around 7-8 Spot Instances created at an interval of 3~30 seconds when i only need one ...

      Jenkins only sees only one Agent online, doesn't even see the others as offline ...

       

       

      Am i missing something? Did I do something wrong ? 

       

      Thanks!

       

        Attachments

          Activity

          Hide
          thoulen FABRIZIO MANFREDI added a comment - - edited

          Do you have spike in the load ? and how much is your boot time of the machine ? 

          The algorithm to raise node is quite aggressive

          Show
          thoulen FABRIZIO MANFREDI added a comment - - edited Do you have spike in the load ? and how much is your boot time of the machine ?  The algorithm to raise node is quite aggressive
          Hide
          serban_nicusor Serban Nicusor added a comment -

          I had Jenkins on an old mac machine.

          Switched to new machine of Ubuntu 18.04 with a fresh install of Jenkins LTS, everything is working smooth now.

          Show
          serban_nicusor Serban Nicusor added a comment - I had Jenkins on an old mac machine. Switched to new machine of Ubuntu 18.04 with a fresh install of Jenkins LTS, everything is working smooth now.

            People

            • Assignee:
              thoulen FABRIZIO MANFREDI
              Reporter:
              serban_nicusor Serban Nicusor
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: