Giter VIP home page Giter VIP logo

@VackarAfzal . In my case Target capacity and min size works weirdly or please correct me if my understanding is wrong . When I keep the Target capacity in jenkins as 2 and min size as 0 . It immediately sets the target capacity to two in the spot fleet when there is a job which does not require that much . is it supposed to create just one and scale up based on demand ??? about ec2-fleet-plugin HOT 3 CLOSED

jenkinsci avatar jenkinsci commented on August 27, 2024
@VackarAfzal . In my case Target capacity and min size works weirdly or please correct me if my understanding is wrong . When I keep the Target capacity in jenkins as 2 and min size as 0 . It immediately sets the target capacity to two in the spot fleet when there is a job which does not require that much . is it supposed to create just one and scale up based on demand ???

from ec2-fleet-plugin.

Comments (3)

ebalakumar avatar ebalakumar commented on August 27, 2024

Jenkins :
Executors: 6
Target capacity : 2
Min size : 0
Max size : 2

Spot Fleet : (m4.large , m5.large) When a job is scheduled in jenkins 2 instances are created . But that job may not require two instance . I am confused about this behavior .

  1. Is is supposed to spin just 1 instance at first and scale up/down based on demand. ?
  2. Does it has to do with Executor set to 6 ?

from ec2-fleet-plugin.

terma avatar terma commented on August 27, 2024

hi @ebalakumar

Below logic to scale up, code here

  1. jenkins job scheduled
  2. jenkins requests plugin for X executors (depends on jenkins not plugin, you probably can check if you have multi/parallel job which could require more then one executor)
  3. plugin calculates amount of additional nodes, as requested number of executors devided by executors setting
  4. plugin updates fleet targetCapacity
  5. create required amount of nodes in jenkins

Based on that and your numbers, and assume jenkins requrested <7, it should request only one node

You can check jenkins logs for Provisioning nodes. Excess workload what plugin decided internally

from ec2-fleet-plugin.

imuqtadir avatar imuqtadir commented on August 27, 2024

I am assuming your question was answered. If not, please let us know.

from ec2-fleet-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.